/* Style Umum */
:root {
    --primary-color: #3498db;
    --secondary-color: #2c3e50;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

/* Header */
.header {
    background: linear-gradient(135deg, #3498db, #2c3e50);
    color: white;
    padding: 2rem 0;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.header h1 {
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.header p {
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Card */
.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
    margin-bottom: 1.5rem;
}

.card:hover {
    transform: translateY(-5px);
}

.card-header {
    background: linear-gradient(to right, #3498db, #2c3e50);
    color: white;
    border-radius: 15px 15px 0 0 !important;
    padding: 1rem 1.5rem;
    font-weight: 600;
}

/* Form Styles */
.form-control, .form-select {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: all 0.3s;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(52, 152, 219, 0.25);
}

.form-label {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

/* Checkbox Custom */
.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-check-label {
    cursor: pointer;
}

/* Button Styles */
.btn-primary {
    background: linear-gradient(to right, #3498db, #2980b9);
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-primary:hover {
    background: linear-gradient(to right, #2980b9, #1c5a7a);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.btn-success {
    background: linear-gradient(to right, #27ae60, #219653);
    border: none;
}

.btn-warning {
    background: linear-gradient(to right, #f39c12, #e67e22);
    border: none;
}

/* Alert */
.alert {
    border-radius: 10px;
    border: none;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

/* Table */
.table {
    border-radius: 10px;
    overflow: hidden;
}

.table thead th {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    padding: 1rem;
}

.table tbody tr:hover {
    background-color: rgba(52, 152, 219, 0.05);
}

/* Badge */
.badge {
    padding: 0.5em 1em;
    border-radius: 50px;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .header {
        padding: 1.5rem 0;
    }
    
    .header h1 {
        font-size: 1.8rem;
    }
    
    .card {
        margin: 1rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Loading Spinner */
.spinner-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

/* Kartu Ujian */
.kartu-ujian {
    border: 3px solid var(--primary-color);
    border-radius: 15px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    max-width: 600px;
    margin: 0 auto;
}

.kartu-header {
    background: linear-gradient(to right, #3498db, #2c3e50);
    color: white;
    padding: 1.5rem;
    border-radius: 12px 12px 0 0;
    text-align: center;
}

.kartu-body {
    padding: 2rem;
}

.kartu-footer {
    background-color: #f1f1f1;
    padding: 1rem;
    border-radius: 0 0 12px 12px;
    text-align: center;
}

/* Preview Bukti Bayar */
.preview-bukti {
    max-width: 300px;
    border: 2px solid #ddd;
    border-radius: 10px;
    padding: 10px;
    background: white;
}