/**
 * منصة الاختبارات النفسية - جامعة ميلة
 * ملف الأنماط المحسّن - تصميم عصري وأنيق
 */

/* ==================== Base Styles ==================== */
:root {
    /* Modern Color Palette */
    --primary-color: #2d7a6a;
    --primary-dark: #1f5a4f;
    --primary-light: #4a9b8a;
    --secondary-color: #f39c12;
    --secondary-dark: #d68910;
    --accent-color: #e74c3c;
    --success-color: #27ae60;
    --info-color: #3498db;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    --light-color: #f8f9fa;
    --dark-color: #2c3e50;
    --purple-color: #8e44ad;
    --pink-color: #e83e8c;
    --orange-color: #fd7e14;
    --teal-color: #1abc9c;
    
    /* Modern Gradients */
    --gradient-primary: linear-gradient(135deg, #2d7a6a 0%, #1f5a4f 100%);
    --gradient-primary-light: linear-gradient(135deg, #4a9b8a 0%, #2d7a6a 100%);
    --gradient-secondary: linear-gradient(135deg, #f39c12 0%, #d68910 100%);
    --gradient-success: linear-gradient(135deg, #27ae60 0%, #229954 100%);
    --gradient-danger: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    --gradient-warning: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    --gradient-info: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    --gradient-dark: linear-gradient(135deg, #2c3e50 0%, #1a252f 100%);
    --gradient-sunset: linear-gradient(135deg, #f39c12 0%, #e74c3c 100%);
    --gradient-cool: linear-gradient(135deg, #3498db 0%, #2d7a6a 100%);
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.08);
    --shadow: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.15);
    --shadow-xl: 0 16px 48px rgba(0,0,0,0.2);
    --shadow-inset: inset 0 2px 4px rgba(0,0,0,0.05);
    
    /* Border Radius */
    --border-radius: 12px;
    --border-radius-lg: 16px;
    --border-radius-xl: 24px;
    --border-radius-xxl: 32px;
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
    min-height: 100vh;
    color: var(--dark-color);
    overflow-x: hidden;
    line-height: 1.6;
}

/* ==================== Navbar ==================== */
#mainNavbar {
    background: var(--gradient-primary);
    padding: 0.75rem 0;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(45, 122, 106, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#mainNavbar .navbar-brand {
    font-size: 1.4rem;
    letter-spacing: -0.5px;
    font-weight: 800;
    color: white !important;
    transition: var(--transition);
}

#mainNavbar .navbar-brand:hover {
    transform: scale(1.05);
}

#mainNavbar .nav-link {
    font-weight: 600;
    padding: 0.6rem 1.2rem !important;
    border-radius: var(--border-radius);
    transition: var(--transition);
    margin: 0 0.2rem;
    color: rgba(255, 255, 255, 0.85) !important;
    position: relative;
}

#mainNavbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: width 0.3s ease;
}

#mainNavbar .nav-link:hover::after,
#mainNavbar .nav-link.active::after {
    width: 100%;
}

#mainNavbar .nav-link:hover,
#mainNavbar .nav-link.active {
    background: rgba(255, 255, 255, 0.15);
    color: white !important;
}

/* ==================== Hero Section ==================== */
.hero-section {
    background: var(--gradient-primary);
    padding: 5rem 0 6rem;
    position: relative;
    overflow: hidden;
    margin-top: 70px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    color: white;
    margin-bottom: 1.5rem;
}

.hero-title .text-warning {
    color: var(--secondary-color);
    text-shadow: 0 2px 10px rgba(243, 156, 18, 0.3);
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.95;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    margin-bottom: 2rem;
}

/* ==================== Cards ==================== */
.card {
    border: none;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    transition: var(--transition);
    overflow: hidden;
    background: white;
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px);
}

.card:hover::before {
    opacity: 1;
}

.card-header {
    background: linear-gradient(135deg, rgba(45, 122, 106, 0.05) 0%, rgba(243, 156, 18, 0.05) 100%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding: 1.25rem 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Test Cards */
.test-card {
    position: relative;
    padding: 2rem 1.5rem;
    text-align: center;
    cursor: pointer;
    border: 2px dashed rgba(45, 122, 106, 0.2);
    border-radius: var(--border-radius-lg);
    transition: var(--transition);
}

.test-card:hover {
    border-color: var(--secondary-color);
    background: linear-gradient(135deg, rgba(45, 122, 106, 0.02) 0%, rgba(243, 156, 18, 0.02) 100%);
}

.test-card .test-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.5rem;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(45, 122, 106, 0.2);
}

.test-card .test-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: rotate(45deg);
    transition: var(--transition-slow);
}

.test-card:hover .test-icon::before {
    left: 100%;
}

.test-card .test-title {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: var(--dark-color);
}

.test-card .test-desc {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.test-card .test-meta {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    font-size: 0.8rem;
    color: #95a5a6;
    margin-bottom: 1.5rem;
}

/* ==================== Buttons ==================== */
.btn {
    border-radius: var(--border-radius);
    font-weight: 700;
    padding: 0.7rem 1.8rem;
    transition: var(--transition);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--gradient-primary);
    box-shadow: 0 4px 15px rgba(45, 122, 106, 0.3);
    color: white;
}

.btn-primary:hover {
    box-shadow: 0 6px 25px rgba(45, 122, 106, 0.4);
    transform: translateY(-3px);
    color: white;
}

.btn-success {
    background: var(--gradient-success);
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
}

.btn-success:hover {
    box-shadow: 0 6px 25px rgba(39, 174, 96, 0.4);
    transform: translateY(-3px);
}

.btn-danger {
    background: var(--gradient-danger);
    box-shadow: 0 4px 15px rgba(231, 74, 59, 0.3);
}

.btn-warning {
    background: var(--gradient-warning);
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3);
}

.btn-outline-light {
    border: 2px solid white;
    color: white;
    background: transparent;
}

.btn-outline-light:hover {
    background: white;
    color: var(--primary-color);
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    border-radius: var(--border-radius-lg);
}

/* ==================== Stats Bar ==================== */
.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, rgba(45, 122, 106, 0.1) 0%, rgba(243, 156, 18, 0.1) 100%);
    border-radius: 50%;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.stat-card:hover::before {
    top: -30%;
    right: -30%;
}

.stat-card .stat-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-card .stat-value {
    font-size: 2.2rem;
    font-weight: 900;
    margin-bottom: 0.25rem;
    color: var(--primary-color);
}

.stat-card .stat-label {
    font-size: 0.95rem;
    color: #7f8c8d;
    font-weight: 600;
}

/* ==================== Section Styles ==================== */
section {
    padding: 4rem 0;
}

section h2 {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
}

section > .container > .text-center > p {
    font-size: 1.1rem;
    color: #7f8c8d;
}

/* ==================== About Section ==================== */
.about-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #ecf0f1 100%);
}

.feature-card {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    border-top: 4px solid transparent;
}

.feature-card:nth-child(1) { border-top-color: var(--success-color); }
.feature-card:nth-child(2) { border-top-color: var(--info-color); }
.feature-card:nth-child(3) { border-top-color: var(--warning-color); }
.feature-card:nth-child(4) { border-top-color: var(--primary-color); }
.feature-card:nth-child(5) { border-top-color: var(--danger-color); }
.feature-card:nth-child(6) { border-top-color: var(--purple-color); }

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.feature-card .icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
    position: relative;
}

.feature-card:nth-child(1) .icon-wrapper { background: linear-gradient(135deg, var(--success-color) 0%, #229954 100%); }
.feature-card:nth-child(2) .icon-wrapper { background: linear-gradient(135deg, var(--info-color) 0%, #2980b9 100%); }
.feature-card:nth-child(3) .icon-wrapper { background: linear-gradient(135deg, var(--warning-color) 0%, #e67e22 100%); }
.feature-card:nth-child(4) .icon-wrapper { background: var(--gradient-primary); }
.feature-card:nth-child(5) .icon-wrapper { background: linear-gradient(135deg, var(--danger-color) 0%, #c0392b 100%); }
.feature-card:nth-child(6) .icon-wrapper { background: linear-gradient(135deg, var(--purple-color) 0%, #6c3483 100%); }

.feature-card h5 {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.feature-card p {
    font-size: 0.95rem;
    color: #7f8c8d;
    line-height: 1.8;
}

/* ==================== How It Works Section ==================== */
.step-card {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    margin-top: 2rem;
}

.step-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.step-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.5rem;
    margin: -2rem auto 1.5rem;
    box-shadow: 0 4px 15px rgba(45, 122, 106, 0.3);
}

.step-card h5 {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.step-card p {
    font-size: 0.95rem;
    color: #7f8c8d;
    line-height: 1.8;
}

/* ==================== Emergency Banner ==================== */
.emergency-banner {
    background: var(--gradient-danger);
    color: white;
    padding: 1.5rem;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 6px 20px rgba(231, 74, 59, 0.3);
    border-left: 5px solid var(--secondary-color);
}

.emergency-banner h5 {
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.emergency-banner p {
    margin-bottom: 0;
    opacity: 0.95;
}

.emergency-banner .btn {
    background: white;
    color: var(--danger-color);
    font-weight: 800;
}

.emergency-banner .btn:hover {
    background: var(--secondary-color);
    color: white;
}

/* ==================== Question Cards ==================== */
.question-card {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-right: 5px solid var(--primary-color);
}

.question-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateX(-4px);
}

.question-number {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.1rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(45, 122, 106, 0.3);
}

.question-text {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--dark-color);
    line-height: 1.8;
}

/* Answer Options */
.answer-options {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
}

.answer-option {
    flex: 1;
    min-width: 120px;
}

.answer-option input[type="radio"] {
    display: none;
}

.answer-option label {
    display: block;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ecf0f1 100%);
    border: 2px solid transparent;
    border-radius: var(--border-radius);
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 700;
    color: #7f8c8d;
}

.answer-option label:hover {
    background: linear-gradient(135deg, #e8eaf6 0%, #f3e5f5 100%);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.answer-option input[type="radio"]:checked + label {
    background: var(--gradient-primary);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(45, 122, 106, 0.3);
    transform: scale(1.05);
}

/* Scale Options */
.scale-options {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.scale-option {
    flex: 1;
    text-align: center;
}

.scale-option input[type="radio"] {
    display: none;
}

.scale-option label {
    display: block;
    padding: 0.9rem 0.75rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ecf0f1 100%);
    border: 2px solid transparent;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
    font-weight: 700;
    color: #7f8c8d;
}

.scale-option label:hover {
    background: linear-gradient(135deg, #e8eaf6 0%, #f3e5f5 100%);
    border-color: var(--primary-color);
}

.scale-option input[type="radio"]:checked + label {
    background: var(--gradient-primary);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(45, 122, 106, 0.3);
}

/* ==================== Progress Bar ==================== */
.test-progress {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    z-index: 1000;
    background: white;
    padding: 1rem 0;
    box-shadow: var(--shadow);
}

.progress {
    height: 6px;
    border-radius: 10px;
    background: #e9ecef;
    overflow: hidden;
}

.progress-bar {
    background: var(--gradient-primary);
    border-radius: 10px;
    transition: width 0.5s ease;
    box-shadow: 0 2px 8px rgba(45, 122, 106, 0.3);
}

/* ==================== Results Page ==================== */
.result-hero {
    padding: 4rem 0;
    text-align: center;
    color: white;
    border-radius: 0 0 var(--border-radius-xl) var(--border-radius-xl);
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

.result-hero.success {
    background: var(--gradient-success);
}

.result-hero.warning {
    background: var(--gradient-warning);
}

.result-hero.danger {
    background: var(--gradient-danger);
}

.result-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.result-score-circle {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    border: 5px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.result-score-number {
    font-size: 3.5rem;
    font-weight: 900;
}

.result-level-badge {
    display: inline-block;
    padding: 0.75rem 2.5rem;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.result-recommendations {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
}

/* ==================== About Us / من نحن Section ==================== */
.about-us-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #ecf0f1 100%);
    padding: 5rem 0;
}

.about-us-intro {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow);
    margin-bottom: 3rem;
    border-left: 5px solid var(--primary-color);
}

.about-us-intro h3 {
    color: var(--primary-color);
    font-weight: 900;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.about-us-intro p {
    color: #7f8c8d;
    line-height: 1.9;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.about-us-subsection {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    border-top: 4px solid var(--secondary-color);
}

.about-us-subsection h4 {
    color: var(--primary-color);
    font-weight: 900;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.about-us-subsection h5 {
    color: var(--secondary-color);
    font-weight: 800;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.about-us-subsection ul {
    list-style: none;
    padding: 0;
}

.about-us-subsection li {
    padding: 0.75rem 0;
    padding-right: 2rem;
    color: #7f8c8d;
    position: relative;
    line-height: 1.8;
}

.about-us-subsection li::before {
    content: '✓';
    position: absolute;
    right: 0;
    color: var(--success-color);
    font-weight: 900;
    font-size: 1.2rem;
}

.about-us-table {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    overflow-x: auto;
}

.about-us-table table {
    width: 100%;
    margin: 0;
}

.about-us-table th {
    background: var(--gradient-primary);
    color: white;
    padding: 1.2rem;
    font-weight: 800;
    text-align: right;
    border: none;
}

.about-us-table td {
    padding: 1.2rem;
    border-bottom: 1px solid #ecf0f1;
    color: #7f8c8d;
}

.about-us-table tbody tr:hover {
    background: linear-gradient(135deg, rgba(45, 122, 106, 0.05) 0%, rgba(243, 156, 18, 0.05) 100%);
}

.about-us-table tbody tr:last-child td {
    border-bottom: none;
}

/* ==================== Tables ==================== */
.table-container {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.table {
    margin-bottom: 0;
}

.table thead th {
    background: var(--gradient-primary);
    color: white;
    font-weight: 800;
    border: none;
    padding: 1.2rem;
    text-align: right;
}

.table tbody td {
    padding: 1rem 1.2rem;
    vertical-align: middle;
    font-size: 0.95rem;
    color: #7f8c8d;
}

.table tbody tr:hover {
    background: linear-gradient(135deg, rgba(45, 122, 106, 0.05) 0%, rgba(243, 156, 18, 0.05) 100%);
}

/* ==================== Badges ==================== */
.badge-level {
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
}

/* ==================== Animations ==================== */
.fade-in {
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-up {
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* ==================== Loading ==================== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(45, 122, 106, 0.1);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* ==================== Print Styles ==================== */
@media print {
    .no-print, .navbar, .footer, .btn {
        display: none !important;
    }
    
    body {
        background: white !important;
    }
    
    .card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
}

/* ==================== Responsive ==================== */
@media (max-width: 991px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-section {
        padding: 3rem 0 4rem;
    }
    
    section {
        padding: 3rem 0;
    }
    
    section h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-section {
        padding: 2.5rem 0 3rem;
    }
    
    .question-card {
        padding: 1.5rem;
    }
    
    .answer-options {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .answer-option {
        min-width: 100%;
    }
    
    .scale-options {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .scale-option {
        min-width: calc(50% - 0.25rem);
    }
    
    .result-score-circle {
        width: 140px;
        height: 140px;
    }
    
    .result-score-number {
        font-size: 2.8rem;
    }
    
    .stat-card {
        margin-bottom: 1rem;
    }
    
    .feature-card,
    .step-card {
        margin-bottom: 1.5rem;
    }
    
    .about-us-table {
        padding: 1.5rem;
    }
    
    .about-us-table th,
    .about-us-table td {
        padding: 0.75rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    section h2 {
        font-size: 1.5rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    .test-card .test-icon {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }
}

/* ==================== Utility Classes ==================== */
.hover-primary:hover {
    color: var(--primary-color) !important;
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-secondary {
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient-primary { background: var(--gradient-primary) !important; }
.bg-gradient-secondary { background: var(--gradient-secondary) !important; }
.bg-gradient-success { background: var(--gradient-success) !important; }
.bg-gradient-danger { background: var(--gradient-danger) !important; }
.bg-gradient-warning { background: var(--gradient-warning) !important; }
.bg-gradient-info { background: var(--gradient-info) !important; }

.shadow-hover {
    transition: var(--transition);
}

.shadow-hover:hover {
    box-shadow: var(--shadow-lg) !important;
    transform: translateY(-4px);
}

.border-gradient {
    border: 2px solid transparent;
    background: linear-gradient(white, white) padding-box,
                var(--gradient-primary) border-box;
}

/* Warning Box */
.warning-box {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border-right: 4px solid var(--warning-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.info-box {
    background: linear-gradient(135deg, #d1ecf1 0%, #a8e6cf 100%);
    border-right: 4px solid var(--info-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Admin Sidebar */
.admin-sidebar {
    min-height: 100vh;
    background: var(--gradient-dark);
    color: white;
    position: fixed;
    right: 0;
    top: 0;
    width: 260px;
    z-index: 1040;
    overflow-y: auto;
    transition: var(--transition);
}

.admin-sidebar .sidebar-brand {
    padding: 1.5rem;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-sidebar .nav-link {
    color: rgba(255, 255, 255, 0.7);
    padding: 0.875rem 1.5rem;
    transition: var(--transition);
    border-right: 3px solid transparent;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    border-right-color: var(--secondary-color);
}

.admin-sidebar .nav-link i {
    width: 24px;
    text-align: center;
    margin-left: 0.5rem;
}

.admin-content {
    margin-right: 260px;
    padding: 2rem;
    min-height: 100vh;
}

@media (max-width: 991px) {
    .admin-sidebar {
        transform: translateX(100%);
    }
    
    .admin-sidebar.show {
        transform: translateX(0);
    }
    
    .admin-content {
        margin-right: 0;
    }
}

/* Charts Container */
.chart-container {
    position: relative;
    height: 300px;
    width: 100%;
}

/* Filters */
.filter-section {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
}

/* Page Header */
.page-header {
    background: var(--gradient-primary);
    color: white;
    padding: 2.5rem;
    border-radius: var(--border-radius-lg);
    margin-bottom: 2rem;
    box-shadow: 0 6px 20px rgba(45, 122, 106, 0.2);
}

.page-header h2 {
    font-weight: 900;
    margin: 0;
    font-size: 2rem;
}

/* Status Indicators */
.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    margin-left: 0.5rem;
    animation: pulse 2s infinite;
}

.status-active { background: var(--success-color); }
.status-pending { background: var(--warning-color); }
.status-danger { background: var(--danger-color); }

/* Privacy Badge */
.privacy-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 700;
}

/* Step Indicator */
.step-indicator {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.step {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #7f8c8d;
    position: relative;
    margin: 0 1rem;
}

.step.active {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(45, 122, 106, 0.3);
}

.step.completed {
    background: var(--gradient-success);
    color: white;
}

.step::after {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    width: 2rem;
    height: 2px;
    background: #e9ecef;
    transform: translateY(-50%);
}

.step:last-child::after {
    display: none;
}
