/* CSS untuk Aplikasi Bible Quiz Sekolah Minggu */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial Rounded MT Bold', 'Arial', sans-serif;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    min-height: 100vh;
    color: #333;
    padding: 20px;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    background-color: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    min-height: 70vh;
}

.container-wide {
    max-width: 1200px;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 3px solid #FFD700;
}

.header h1 {
    color: #2575fc;
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 0 #FFD700;
}

.header p {
    color: #666;
    font-size: 1.1rem;
}

/* Card */
.card {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
    border: 2px solid #e9ecef;
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.card-title {
    color: #2575fc;
    font-size: 1.5rem;
    margin-bottom: 15px;
    border-left: 5px solid #FFD700;
    padding-left: 10px;
}

/* Form Elements */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #495057;
    font-weight: bold;
    font-size: 1.1rem;
}

.form-control {
    width: 100%;
    padding: 15px;
    border: 2px solid #ced4da;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: #2575fc;
    box-shadow: 0 0 0 3px rgba(37, 117, 252, 0.1);
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 15px 30px;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(90deg, #2575fc 0%, #6a11cb 100%);
    color: white;
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(37, 117, 252, 0.4);
}

.btn-success {
    background: linear-gradient(90deg, #28a745 0%, #20c997 100%);
    color: white;
}

.btn-danger {
    background: linear-gradient(90deg, #dc3545 0%, #fd7e14 100%);
    color: white;
}

.btn-warning {
    background: linear-gradient(90deg, #ffc107 0%, #ff9800 100%);
    color: white;
}

.btn-large {
    padding: 20px 40px;
    font-size: 1.3rem;
    margin: 10px;
}

/* Question Styles */
.question-box {
    background: white;
    border: 3px solid #2575fc;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
}

.question-text {
    font-size: 1.4rem;
    color: #212529;
    margin-bottom: 25px;
    line-height: 1.5;
}

.options-container {
    display: grid;
    gap: 15px;
}

.option {
    display: flex;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border: 2px solid #ced4da;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.option:hover {
    background: #e9ecef;
    border-color: #2575fc;
}

.option input {
    margin-right: 15px;
    transform: scale(1.3);
}

.option-label {
    font-weight: bold;
    color: #2575fc;
    margin-right: 10px;
    min-width: 30px;
}

.option-text {
    font-size: 1.1rem;
    color: #495057;
}

/* Result Styles */
.result-box {
    text-align: center;
    padding: 40px;
}

.result-score {
    font-size: 4rem;
    color: #2575fc;
    font-weight: bold;
    margin: 20px 0;
}

.result-text {
    font-size: 1.5rem;
    margin-bottom: 30px;
}

.result-details {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
}

/* Alert Styles */
.alert {
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 2px solid transparent;
}

.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.alert-warning {
    background-color: #fff3cd;
    border-color: #ffeaa7;
    color: #856404;
}

.alert-info {
    background-color: #d1ecf1;
    border-color: #bee5eb;
    color: #0c5460;
}

/* Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(90deg, #2575fc 0%, #6a11cb 100%);
    padding: 15px 30px;
    border-radius: 15px;
    margin-bottom: 30px;
}

.navbar-brand {
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
}

.navbar-menu {
    display: flex;
    gap: 20px;
}

.navbar-menu a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 8px;
    transition: background 0.3s;
}

.navbar-menu a:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Progress Bar */
.progress {
    height: 20px;
    background-color: #e9ecef;
    border-radius: 10px;
    margin: 20px 0;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #2575fc 0%, #6a11cb 100%);
    border-radius: 10px;
    transition: width 0.5s ease-in-out;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 20px;
        margin: 10px;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .navbar {
        flex-direction: column;
        gap: 15px;
    }
    
    .navbar-menu {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .btn-large {
        padding: 15px 25px;
        font-size: 1.1rem;
    }
}

/* Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* Age Selection */
.age-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.age-option {
    padding: 30px;
    text-align: center;
    background: #f8f9fa;
    border: 3px solid #ced4da;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s;
}

.age-option:hover {
    border-color: #2575fc;
    background: #e7f3ff;
    transform: scale(1.05);
}

.age-option.selected {
    border-color: #2575fc;
    background: #d4edff;
}

.age-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #2575fc;
}

/* Category Selection */
.category-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.category-option {
    padding: 20px;
    text-align: center;
    background: #f8f9fa;
    border: 2px solid #ced4da;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.category-option:hover {
    border-color: #2575fc;
    background: #e7f3ff;
}

.category-option.selected {
    border-color: #2575fc;
    background: #d4edff;
}

.category-icon {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #2575fc;
}

/* Admin Styles */
.table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    min-width: 800px;
}

.table th, .table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
    word-wrap: break-word;
    max-width: 300px;
}

.table th {
    background-color: #f8f9fa;
    font-weight: bold;
    color: #495057;
    white-space: nowrap;
}

.table tr:hover {
    background-color: #f8f9fa;
}

.table-actions {
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.table-actions .btn-sm {
    padding: 6px 12px;
    font-size: 0.85rem;
    min-width: 70px;
}

.table-responsive {
    overflow-x: auto;
    width: 100%;
    margin-bottom: 20px;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    padding: 10px;
}

.table-responsive table {
    margin-bottom: 0;
}

/* Responsive table */
@media (max-width: 768px) {
    .table-actions {
        flex-direction: column;
        gap: 5px;
    }
    
    .table-actions .btn-sm {
        width: 100%;
        text-align: center;
    }
    
    .table th, .table td {
        padding: 8px;
        font-size: 0.9rem;
    }
}

/* Login Page */
.login-container {
    max-width: 400px;
    margin: 100px auto;
}

.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.login-form {
    padding: 40px;
}