/* CSS Modern untuk Form Pendaftaran Dealer */
:root {
    --primary: #5a5a5a;
    --primary-dark: #3a56d4;
    --secondary: #7209b7;
    --success: #06d6a0;
    --danger: #ef476f;
    --warning: #ffd166;
    --light: #f8f9fa;
    --dark: #212529;
    --gray: #6c757d;
    --light-gray: #e9ecef;
    --border-radius: 12px;
    --box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
    min-height: 100vh;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size:small;
}

.container1 {
    width: 30%;
    max-width: 30%;
    margin: 2rem auto;
    background: #fff;
    padding: 2.5rem;
   
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.container {
    width: 55%;
    max-width: 100%;
    margin: 2rem auto;
    background: #fff;
    padding: 2.5rem;
   
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.container:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.container1:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

h1, h2 {
    margin-bottom: 1.5rem;
    color: #676767;
    font-weight: 700;
    text-align: center;
}

h1 {
    font-size: 2.2rem;
    position: relative;
    padding-bottom: 0.5rem;
}

h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: #cacaca;
    border-radius: 2px;
}

.alert {
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
   
    font-weight: 500;
    display: flex;
    align-items: center;
    animation: slideIn 0.5s ease;
}

.alert.success {
    background-color: rgba(6, 214, 160, 0.15);
    color: #057a5c;
    border-left: 4px solid var(--success);
}

.alert.error {
    background-color: rgba(239, 71, 111, 0.15);
    color: #b71540;
    border-left: 4px solid var(--danger);
}

.alert::before {
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-right: 0.75rem;
    font-size: 1.2rem;
}

.alert.success::before {
    content: '\f058';
}

.alert.error::before {
    content: '\f06a';
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark);
    font-size: 0.95rem;
}

input[type="text"],
input[type="tel"],
input[type="email"],
input[type="password"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 2px solid var(--light-gray);
   
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: var(--transition);
    background-color: #fff;
}

input[type="text"]:focus,
input[type="tel"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
}

select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%236c757d' viewBox='0 0 16 16'%3E%3Cpath d='M8 12L2 6h12L8 12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 16px;
    padding-right: 2.5rem;
}

.form-group:focus-within label {
    color: var(--primary);
}

button, .button {
   /* display: inline-flex; */
    align-items: center;
    justify-content: center;
    background: #ffd200;
    color: #000;
    padding: 1rem 2rem;
    border: none;
    cursor: pointer;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    transition: var(--transition);
  
    margin-right: 1rem;
    margin-top: 0.5rem;
}

button:hover, .button:hover {
    transform: translateY(-2px);
     color: #fff;
    background: #767676;
}

button:active, .button:active {
    transform: translateY(0);
}

.filters {
    background: var(--light);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.filters h2 {
    font-size: 1.5rem;
    margin-bottom: 1.2rem;
}

.filters .form-group {
    display: inline-block;
    margin-right: 1rem;
    margin-bottom: 1rem;
    /*vertical-align: top;*/
    min-width: 200px;
}

.filters label {
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
}

.filters select {
    min-width: 180px;
}

.table-responsive {
    overflow-x: auto;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-top: 1.5rem;
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: var(--border-radius);
    overflow: hidden;
}

table th, table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--light-gray);
}

table th {
    background-color: var(--primary);
    color: white;
    font-weight: 600;
    position: sticky;
    top: 0;
}

table tr:last-child td {
    border-bottom: none;
}

table tr:nth-child(even) {
    background-color: #f8f9fa;
}

table tr:hover {
    background-color: rgba(67, 97, 238, 0.05);
}

table td a {
    color: var(--danger);
    text-decoration: none;
    font-weight: 500;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    transition: var(--transition);
}

table td a:hover {
    background-color: rgba(239, 71, 111, 0.1);
}

/* Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 992px) {
    .container {
        padding: 2rem;
    }
    
    .filters .form-group {
        display: block;
        width: 100%;
        margin-right: 0;
    }
    
    .filters select {
        width: 100%;
    }
    
      .container1 {
    width: 60%;
    max-width: 60%;
    margin: 2rem auto;
    background: #fff;
    padding: 2.5rem;
   
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}
}

@media (max-width: 768px) {
    body {
        padding: 1rem;
        background: #fff;
    }
    
    .container {
        width: 100%;
        padding: 1.5rem;
        margin: 0;
        box-shadow: none;
        border-radius: 0;
    }
    
     .container1 {
    width: 60%;
    max-width: 60%;
    margin: 2rem auto;
    background: #fff;
    padding: 2.5rem;
   
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}
    
    h1 {
        font-size: 1.8rem;
    }
    
    table {
        font-size: 0.9rem;
    }
    
    table th, table td {
        padding: 0.75rem;
    }
    
    button, .button {
        display: inline-flex;
        width: 100%;
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 1.5rem;
    }
    
    input[type="text"],
    input[type="tel"],
    input[type="email"],
    input[type="password"],
    input[type="number"],
    select,
    textarea {
        padding: 0.8rem;
    }
    
    .filters {
        padding: 1rem;
    }
    
    
    .container1 {
    width: 100%;
    max-width: 100%;
    margin: 2rem auto;
    background: #fff;
    padding: 2.5rem;
   
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

  button, .button {
        display: inline-flex;
        width: 100%;
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
}

/* Loading animation for AJAX requests */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin-right: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Custom checkbox and radio buttons */
input[type="checkbox"],
input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid var(--light-gray);
    border-radius: 4px;
    outline: none;
    transition: var(--transition);
    position: relative;
    margin-right: 10px;
    vertical-align: middle;
}

input[type="radio"] {
    border-radius: 50%;
}

input[type="checkbox"]:checked,
input[type="radio"]:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

input[type="checkbox"]:checked::before {
    content: '✓';
    position: absolute;
    color: white;
    font-size: 14px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

input[type="radio"]:checked::before {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background-color: white;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Floating labels effect */
.floating-label {
    position: relative;
    margin-bottom: 1.5rem;
}

.floating-label input,
.floating-label select,
.floating-label textarea {
    padding-top: 1.8rem;
    padding-bottom: 0.8rem;
}

.floating-label label {
    position: absolute;
    top: 1rem;
    left: 1.2rem;
    margin-bottom: 0;
    pointer-events: none;
    transition: var(--transition);
    color: var(--gray);
    font-weight: normal;
}

.floating-label input:focus ~ label,
.floating-label input:not(:placeholder-shown) ~ label,
.floating-label select:focus ~ label,
.floating-label select:not([value=""]) ~ label,
.floating-label textarea:focus ~ label,
.floating-label textarea:not(:placeholder-shown) ~ label {
    top: 0.4rem;
    left: 1.2rem;
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 600;
}


.merah {
    display: block;
    color: red;
    margin-top: 40px;
    
}
.hijau {
    display: block;
    color: green;

    
}

.kanan {
    float: right;

    
}
.putih {
      display: block;
  color: white;
  padding: 15px 25px;
  text-decoration: none;


    
}