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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.brand {
    text-align: center;
    margin-bottom: 30px;
}

.brand h1 {
    font-size: 32px;
    color: #333;
    margin-bottom: 8px;
}

.brand p {
    color: #666;
    font-size: 16px;
}

/* Form Input */
.input-group {
    display: flex;
    gap: 12px;
    margin: 20px 0;
}

.input-group input {
    flex: 1;
    padding: 14px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 18px;
    text-align: center;
    letter-spacing: 8px;
    font-weight: bold;
    transition: all 0.3s;
}

.input-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.btn-primary {
    padding: 14px 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.btn-danger {
    padding: 6px 16px;
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s;
}

.btn-danger:hover {
    background: #dc2626;
    transform: scale(0.95);
}

.hint {
    text-align: center;
    color: #888;
    font-size: 14px;
    margin-top: 8px;
}

/* Alert */
.alert {
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 500;
}

.alert.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert.success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

/* Admin Form */
.form-section {
    background: #f8fafc;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.form-section h3 {
    margin-bottom: 16px;
    color: #333;
}

.form-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.form-row input {
    flex: 1;
    min-width: 150px;
    padding: 10px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
}

.form-row input:focus {
    outline: none;
    border-color: #667eea;
}

/* Table */
.table-section {
    margin-top: 20px;
}

.table-section h3 {
    margin-bottom: 16px;
    color: #333;
}

.table-responsive {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

table thead {
    background: #f1f5f9;
}

table th {
    text-align: left;
    padding: 12px 14px;
    font-weight: 600;
    color: #475569;
}

table td {
    padding: 12px 14px;
    border-bottom: 1px solid #e2e8f0;
}

table tr:hover {
    background: #f8fafc;
}

.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.badge.active {
    background: #dcfce7;
    color: #166534;
}

.badge.inactive {
    background: #fee2e2;
    color: #991b1b;
}

.empty {
    text-align: center;
    color: #94a3b8;
    padding: 30px 0;
}

.footer {
    margin-top: 30px;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.footer a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.footer a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 640px) {
    .card {
        padding: 24px;
    }
    
    .brand h1 {
        font-size: 24px;
    }
    
    .input-group {
        flex-direction: column;
    }
    
    .input-group input {
        font-size: 16px;
        letter-spacing: 6px;
    }
    
    .btn-primary {
        width: 100%;
        justify-content: center;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .form-row input {
        min-width: unset;
    }
    
    table {
        font-size: 12px;
    }
    
    table th, table td {
        padding: 8px 10px;
    }
    
/* Tambahan untuk admin */

.admin-actions {
    margin-top: 15px;
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-logout {
    padding: 8px 20px;
    background: #ef4444;
    color: white;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-logout:hover {
    background: #dc2626;
    transform: scale(0.95);
}

.btn-back {
    padding: 8px 20px;
    background: #64748b;
    color: white;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-back:hover {
    background: #475569;
    transform: scale(0.95);
}

.form-group {
    flex: 1;
    min-width: 180px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.form-select {
    appearance: none;
    background: white;
    cursor: pointer;
}

.btn-secondary {
    padding: 10px 24px;
    background: #64748b;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: #475569;
    transform: translateY(-2px);
}

.action-buttons {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.btn-edit {
    padding: 6px 14px;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
}

.btn-edit:hover {
    background: #2563eb;
    transform: scale(0.95);
}

.link-cell {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Responsive untuk admin */
@media (max-width: 768px) {
    .form-group {
        min-width: 100%;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .btn-edit, .btn-danger {
        width: 100%;
        text-align: center;
    }
    
    .admin-actions {
        flex-direction: column;
        align-items: center;
    }

.footer-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 10px;
}

.btn-wa {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: #25D366;
    color: white;
    border-radius: 50px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-wa:hover {
    background: #128C7E;
    transform: scale(0.95);
}

.btn-admin {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: #1a237e;
    color: white;
    border-radius: 50px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-admin:hover {
    background: #0d145a;
    transform: scale(0.95);
}

/* Bagian Branding TVRI */
.tvri-brand {
    text-align: center;
    margin-bottom: 20px;
}

.tvri-logo {
    width: 200px;  /* Ubah sesuai kebutuhan */
    height: auto;
    display: block;
    margin: 0 auto 15px;
}

/* Responsive */
@media (max-width: 640px) {
    .tvri-logo {
        width: 140px;
    }

/* Perbaikan ukuran logo responsive */
.chhc-logo {
    width: 50%; /* Ukuran relatif terhadap container */
    max-width: 200px; /* Batas maksimal */
    min-width: 80px; /* Batas minimal */
    height: auto;
    display: block;
    margin: 0 auto 15px;
}

/* Untuk HP kecil */
@media (max-width: 480px) {
    .chhc-logo {
        width: 40%;
        min-width: 60px;
    }
}

/* Untuk HP sedang */
@media (min-width: 481px) and (max-width: 768px) {
    .chhc-logo {
        width: 35%;
        max-width: 150px;
    }
}

/* Untuk Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
    .chhc-logo {
        width: 25%;
        max-width: 180px;
    }
}

/* Untuk Desktop */
@media (min-width: 1025px) {
    .chhc-logo {
        width: 20%;
        max-width: 200px;
    }

/* Alert */
.alert {
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 500;
}

.alert.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert.success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

/* Form Section */
.form-section {
    background: #f8fafc;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.form-section h3 {
    margin-bottom: 16px;
    color: #333;
}

/* Table */
.table-section {
    margin-top: 20px;
}

.table-section h3 {
    margin-bottom: 16px;
    color: #333;
}

.table-responsive {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

table thead {
    background: #f1f5f9;
}

table th {
    text-align: left;
    padding: 12px 14px;
    font-weight: 600;
    color: #475569;
}

table td {
    padding: 12px 14px;
    border-bottom: 1px solid #e2e8f0;
}

table tr:hover {
    background: #f8fafc;
}

.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.badge.active {
    background: #dcfce7;
    color: #166534;
}

.badge.inactive {
    background: #fee2e2;
    color: #991b1b;
}

.empty {
    text-align: center;
    color: #94a3b8;
    padding: 30px 0;
}

/* Container */
.container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.card {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.brand {
    text-align: center;
    margin-bottom: 30px;
}

.brand h1 {
    font-size: 32px;
    color: #333;
    margin-bottom: 8px;
}

.brand p {
    color: #666;
    font-size: 16px;
}
}