/* ====================================
   CCLP - منصة التقييم القيادي الشاملة
   Global Stylesheet
   ==================================== */

/* ====================================
   1. CSS Variables (المتغيرات)
   ==================================== */
:root {
    /* الألوان الأساسية */
    --primary-color: #400f1a;
    --primary-dark: #2d0a12;
    --primary-light: #5a1525;

    --secondary-color: #e5332e;
    --secondary-dark: #c42920;
    --secondary-light: #f04d48;

    --accent-color: #10b981;
    --accent-dark: #059669;
    --accent-light: #34d399;

    --dark-color: #1e293b;
    --light-bg: #f8fafc;
    --card-shadow: 0 10px 30px rgba(0,0,0,0.1);

    /* ألوان إضافية */
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;

    /* الخطوط */
    --font-family: 'Tajawal', sans-serif;
    --font-size-base: 16px;
    --line-height-base: 1.6;

    /* الظلال */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.07);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px rgba(0,0,0,0.15);

    /* الانتقالات */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* الزوايا */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 50%;
}

/* ====================================
   2. Global Styles (الأنماط العامة)
   ==================================== */
* {
    font-family: var(--font-family);
    box-sizing: border-box;
}

html {
    font-size: var(--font-size-base);
    scroll-behavior: smooth;
}

body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px 0;
    margin: 0;
    line-height: var(--line-height-base);
    color: var(--dark-color);
}

/* ====================================
   3. Main Container
   ==================================== */
.main-container {
    background: white;
    border-radius: 25px;
    box-shadow: var(--card-shadow);
    overflow: hidden;
    margin: 0 auto;
    max-width: 1400px;
}

/* ====================================
   4. Sidebar
   ==================================== */
.sidebar {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    min-height: 100vh;
    padding: 30px;
    display: flex;
    flex-direction: column;
}

.logo-section {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.logo-section h3 {
    margin: 15px 0 5px;
    font-weight: 700;
}

.logo-section p {
    margin: 0;
    opacity: 0.9;
    font-size: 14px;
}

.test-sections {
    list-style: none;
    padding: 0;
    margin: 0;
}

.test-sections li {
    background: rgba(255,255,255,0.1);
    margin-bottom: 15px;
    padding: 15px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.test-sections li:hover {
    background: rgba(255,255,255,0.2);
    transform: translateX(-5px);
}

.test-sections li.active {
    background: white;
    color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.test-sections li.completed::before {
    content: '✓';
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--accent-color);
    color: white;
    width: 25px;
    height: 25px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.test-sections li.completed {
    padding-left: 50px;
}

.test-sections li small.text-muted {
    font-size: 0.7rem;
    opacity: 0.6;
    font-weight: normal;
}

.test-sections li:has(small.text-muted) {
    opacity: 0.6;
    cursor: not-allowed;
}

.test-sections li:has(small.text-muted):hover {
    background: transparent;
    transform: none;
}

/* ====================================
   5. Content Area
   ==================================== */
.content-area {
    padding: 40px;
    background: var(--light-bg);
    min-height: 100vh;
}

/* ====================================
   6. Cards
   ==================================== */
.card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 25px;
    transition: all var(--transition-base);
}

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

.test-card {
    background: white;
    padding: 25px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.test-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.test-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.test-card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.test-card-icon i {
    color: white;
    font-size: 28px;
}

/* ====================================
   7. Buttons
   ==================================== */
.btn-custom {
    padding: 12px 35px;
    border-radius: var(--radius-md);
    font-weight: 500;
    transition: all var(--transition-base);
    border: none;
    cursor: pointer;
}

.btn-primary-custom {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(107, 70, 193, 0.3);
}

.btn-secondary-custom {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary-custom:hover {
    background: var(--primary-color);
    color: white;
}

.btn-success-custom {
    background: var(--accent-color);
    color: white;
}

.btn-success-custom:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
}

/* ====================================
   8. Forms
   ==================================== */
.form-control {
    padding: 12px 20px;
    border-radius: var(--radius-md);
    border: 2px solid #e5e7eb;
    transition: all var(--transition-base);
    font-size: 15px;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(64, 15, 26, 0.1);
    outline: none;
}

.form-label {
    font-weight: 500;
    color: var(--dark-color);
    margin-bottom: 8px;
    display: block;
}

/* ====================================
   9. Progress & Timer
   ==================================== */
.progress {
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #e5e7eb;
}

.progress-bar {
    transition: width var(--transition-slow);
}

.timer {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-weight: 600;
}

.timer.warning {
    background: linear-gradient(135deg, var(--warning), var(--danger));
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

/* ====================================
   10. Questions & Answers
   ==================================== */
.question-section {
    background: white;
    padding: 35px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--light-bg);
}

.question-counter {
    background: var(--light-bg);
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-weight: 500;
}

.question-text {
    font-size: 18px;
    color: var(--dark-color);
    margin-bottom: 25px;
    line-height: 1.8;
    font-weight: 500;
}

.answer-options {
    list-style: none;
    padding: 0;
    margin: 0;
}

.answer-option {
    background: var(--light-bg);
    padding: 20px;
    margin-bottom: 15px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-base);
    border: 2px solid transparent;
    display: flex;
    align-items: center;
}

.answer-option:hover {
    background: white;
    border-color: var(--primary-color);
    transform: translateX(-5px);
}

.answer-option.selected {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-color: var(--primary-color);
}

.answer-option input[type="radio"] {
    margin-left: 15px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.answer-option label {
    cursor: pointer;
    flex: 1;
    margin: 0;
}

/* ====================================
   11. Results & Charts
   ==================================== */
.result-card {
    background: white;
    padding: 35px;
    border-radius: var(--radius-xl);
    text-align: center;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-base);
}

.result-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.result-score {
    font-size: 52px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 15px 0;
}

.leadership-style-badge {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-dark));
    color: white;
    padding: 15px 30px;
    border-radius: var(--radius-lg);
    display: inline-block;
    margin-top: 15px;
    font-size: 18px;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.3);
}

.competency-chart {
    background: white;
    padding: 35px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    margin-bottom: 30px;
}

.competency-bar-fill {
    height: 30px;
    border-radius: var(--radius-lg);
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 15px;
    color: white;
    font-weight: 600;
    transition: width 1s ease;
}

/* ====================================
   12. Alerts & Badges
   ==================================== */
.alert {
    padding: 15px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.alert-danger {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.alert-warning {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.alert-info {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #93c5fd;
}

.badge {
    padding: 5px 15px;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 500;
}

.time-badge {
    background: var(--light-bg);
    padding: 5px 12px;
    border-radius: var(--radius-full);
    font-size: 14px;
    color: var(--dark-color);
}

/* ====================================
   13. Utilities
   ==================================== */
.text-primary { color: var(--primary-color) !important; }
.text-secondary { color: var(--secondary-color) !important; }
.text-accent { color: var(--accent-color) !important; }
.text-muted { color: #6b7280 !important; }

.bg-primary { background-color: var(--primary-color) !important; }
.bg-secondary { background-color: var(--secondary-color) !important; }
.bg-accent { background-color: var(--accent-color) !important; }
.bg-light { background-color: var(--light-bg) !important; }

.shadow-sm { box-shadow: var(--shadow-sm) !important; }
.shadow-md { box-shadow: var(--shadow-md) !important; }
.shadow-lg { box-shadow: var(--shadow-lg) !important; }
.shadow-xl { box-shadow: var(--shadow-xl) !important; }

.rounded-sm { border-radius: var(--radius-sm) !important; }
.rounded-md { border-radius: var(--radius-md) !important; }
.rounded-lg { border-radius: var(--radius-lg) !important; }
.rounded-xl { border-radius: var(--radius-xl) !important; }

/* ====================================
   14. Animations
   ==================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.fade-in {
    animation: fadeIn 0.5s ease;
}

.bounce {
    animation: bounce 1s;
}

.slide-in-right {
    animation: slideInRight 0.5s ease;
}

/* ====================================
   15. Responsive Design
   ==================================== */
@media (max-width: 1200px) {
    .main-container {
        max-width: 100%;
        border-radius: 15px;
    }
}

@media (max-width: 992px) {
    .content-area {
        padding: 30px;
    }

    .test-cards {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    body {
        padding: 10px 0;
    }

    .sidebar {
        display: none;
    }

    .content-area {
        padding: 20px;
    }

    .main-container {
        border-radius: 10px;
    }

    .question-header {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }

    .result-score {
        font-size: 40px;
    }
}

@media (max-width: 576px) {
    .test-card {
        padding: 20px;
    }

    .btn-custom {
        padding: 10px 25px;
        font-size: 14px;
    }

    .question-text {
        font-size: 16px;
    }
}

/* ====================================
   16. Print Styles
   ==================================== */
@media print {
    body {
        background: white;
        padding: 0;
    }

    .sidebar,
    .navigation-buttons,
    .btn-custom {
        display: none !important;
    }

    .main-container {
        box-shadow: none;
    }
}

/* ====================================
   17. Dark Mode Support (اختياري)
   ==================================== */
@media (prefers-color-scheme: dark) {
    /* يمكن إضافة دعم Dark Mode لاحقاً */
}

/* ====================================
   18. Custom Scrollbar
   ==================================== */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* ====================================
   19. Loading Spinner
   ==================================== */
.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid var(--light-bg);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

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

/* ====================================
   20. Floating Elements
   ==================================== */
.floating-help {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-dark));
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    transition: all var(--transition-base);
    z-index: 1000;
}

.floating-help:hover {
    transform: scale(1.1);
}

.floating-help i {
    color: white;
    font-size: 24px;
}

/* ====================================
   21. User Welcome & Logout Section
   ==================================== */
.user-welcome {
    font-size: 16px;
    padding: 10px 15px;
    background: linear-gradient(135deg, rgba(64,15,26,0.05), rgba(229,51,46,0.05));
    border-radius: var(--radius-md);
    border-right: 4px solid var(--primary-color);
}

.user-welcome strong {
    color: var(--primary-color);
    font-size: 18px;
}

.btn-outline-danger {
    border-radius: var(--radius-md) !important;
    transition: all var(--transition-base);
    font-weight: 500;
}

.btn-outline-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(239, 68, 68, 0.3);
}

.sidebar .btn-light {
    transition: all var(--transition-base);
    font-weight: 500;
    border: 2px solid rgba(255,255,255,0.3);
}

.sidebar .btn-light:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* ====================================
   22. Login Page Styles
   ==================================== */
/* Animated Background */
.login-page body::before,
body.login-bg::before {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: moveBackground 20s linear infinite;
    pointer-events: none;
}

@keyframes moveBackground {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* Back to Home Button */
.back-home {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 1000;
}

.back-home a {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all var(--transition-base);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.back-home a:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateX(5px);
}

/* Login Container */
.login-container {
    width: 100%;
    max-width: 1200px;
    position: relative;
    z-index: 1;
    padding: 20px;
}

.login-wrapper {
    background: white;
    border-radius: 30px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.3);
    overflow: hidden;
    animation: slideUp 0.6s ease-out;
}

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

/* Branding Panel */
.branding-panel {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.branding-panel::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    animation: rotateBg 30s linear infinite;
}

@keyframes rotateBg {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.branding-content {
    position: relative;
    z-index: 1;
}

.branding-logo {
    max-width: 150px;
    margin-bottom: 30px;
    filter: brightness(0) invert(1);
}

.branding-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.branding-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 40px;
}

.branding-features {
    list-style: none;
    padding: 0;
}

.branding-features li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.branding-features i {
    background: rgba(255, 255, 255, 0.2);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Form Panel */
.form-panel {
    padding: 60px 50px;
}

.form-header {
    text-align: center;
    margin-bottom: 40px;
}

.form-title {
    color: var(--primary-color);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.form-subtitle {
    color: var(--dark-color);
    opacity: 0.7;
}

/* Login Button */
.btn-login {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: var(--radius-md);
    padding: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.btn-login::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.btn-login:hover::before {
    left: 100%;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(64, 15, 26, 0.3);
}

/* Demo Section */
.demo-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px dashed #e5e7eb;
}

.demo-header {
    text-align: center;
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-weight: 600;
    color: var(--dark-color);
}

.demo-accounts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.demo-btn {
    background: linear-gradient(135deg, #f9fafb, #f3f4f6);
    border: 2px solid #e5e7eb;
    border-radius: var(--radius-md);
    padding: 15px 10px;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.demo-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity var(--transition-base);
}

.demo-btn:hover::before {
    opacity: 0.1;
}

.demo-btn:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.demo-btn i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 8px;
    display: block;
}

.demo-btn-title {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 5px;
}

.demo-btn-email {
    font-size: 0.85rem;
    color: #6b7280;
}

.password-hint {
    text-align: center;
    margin-top: 15px;
    padding: 10px;
    background: #fef3c7;
    border-radius: 8px;
    font-size: 0.9rem;
}

.password-hint code {
    background: #fbbf24;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
}

/* ====================================
   23. Landing Page Styles
   ==================================== */
/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: moveBackground 20s linear infinite;
}

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

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.cta-button {
    padding: 15px 40px;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 50px;
    background: white;
    color: var(--primary-color);
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: all var(--transition-base);
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
    background: var(--light-bg);
}

.hero-image {
    position: relative;
    animation: float 6s ease-in-out infinite;
}

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

/* Features Section */
.features-section {
    padding: 80px 0;
    background: var(--light-bg);
}

.feature-card {
    background: white;
    padding: 45px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    height: 100%;
    border-top: 4px solid var(--primary-color);
}

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

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.feature-icon i {
    font-size: 40px;
    color: white;
}

/* Stats Section */
.stats-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background: white;
}

.cta-box {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 60px;
    border-radius: var(--radius-lg);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    animation: rotateBackground 30s linear infinite;
}

@keyframes rotateBackground {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: white;
    padding: 40px 0 20px;
}

.footer a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color var(--transition-base);
}

.footer a:hover {
    color: white;
}

/* ====================================
   24. Dashboard Page Styles
   ==================================== */
.welcome-header {
    background: white;
    padding: 35px;
    border-radius: var(--radius-lg);
    margin-bottom: 30px;
    box-shadow: var(--shadow-md);
}

.welcome-header h1 {
    color: var(--dark-color);
    font-weight: 700;
    margin-bottom: 10px;
}

.progress-section {
    background: white;
    padding: 35px;
    border-radius: var(--radius-lg);
    margin-bottom: 30px;
    box-shadow: var(--shadow-md);
}

.progress-ring {
    width: 150px;
    height: 150px;
    margin: 0 auto;
}

.progress-ring circle {
    transition: stroke-dashoffset 0.5s ease;
}

.test-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

/* ====================================
   25. Assessment Page Styles
   ==================================== */
.question-section {
    background: white;
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--light-bg);
}

.question-counter {
    background: var(--light-bg);
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 500;
}

.timer {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 10px 20px;
    border-radius: 10px;
}

.timer.warning {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.question-text {
    font-size: 18px;
    color: var(--dark-color);
    margin-bottom: 25px;
    line-height: 1.8;
}

/* ====================================
   26. Results Page Styles
   ==================================== */
.results-celebration {
    position: relative;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: var(--radius-lg);
    margin-bottom: 30px;
    overflow: hidden;
}

.celebration-icon {
    font-size: 80px;
    animation: bounce 2s infinite;
}

.result-card {
    background: white;
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.result-score-large {
    font-size: 72px;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.info-box {
    background: var(--light-bg);
    padding: 20px;
    border-radius: var(--radius-md);
    text-align: center;
}

.info-label {
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 5px;
}

.info-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* ====================================
   27. Admin Dashboard Styles
   ==================================== */
.admin-header {
    background: white;
    padding: 35px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.stat-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 25px;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all var(--transition-base);
}

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

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.stat-icon.bg-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.stat-icon.bg-success {
    background: linear-gradient(135deg, #10b981, #059669);
}

.stat-icon.bg-warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.stat-icon.bg-info {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.stat-details h3 {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--dark-color);
}

.stat-details p {
    margin: 0;
    color: #6b7280;
    font-size: 0.9rem;
}

.status-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 25px;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 15px;
    border-right: 4px solid;
    transition: all var(--transition-base);
}

.status-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.status-card.completed {
    border-color: #10b981;
}

.status-card.in-progress {
    border-color: #f59e0b;
}

.status-card.pending {
    border-color: #6b7280;
}

.status-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.status-card.completed .status-icon {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.status-card.in-progress .status-icon {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.status-card.pending .status-icon {
    background: rgba(107, 114, 128, 0.1);
    color: #6b7280;
}

.status-info h4 {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 700;
}

.status-info p {
    margin: 0;
    color: #6b7280;
    font-size: 0.9rem;
}

.card-custom {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.card-header {
    background: linear-gradient(135deg, #f9fafb, #f3f4f6);
    padding: 20px 25px;
    border-bottom: 1px solid #e5e7eb;
}

.card-header h5 {
    margin: 0;
    font-weight: 600;
    color: var(--dark-color);
}

.table th {
    background: var(--light-bg);
    font-weight: 600;
    color: var(--dark-color);
    border-bottom: 2px solid #e5e7eb;
}

.table td {
    vertical-align: middle;
}

.table-hover tbody tr:hover {
    background-color: rgba(64, 15, 26, 0.03);
}

.list-group-item {
    border: none;
    border-bottom: 1px solid #e5e7eb;
    padding: 20px;
}

.list-group-item:last-child {
    border-bottom: none;
}

.list-group-item-action:hover {
    background-color: rgba(64, 15, 26, 0.03);
}

.btn-group .btn {
    border-radius: 0;
}

.btn-group .btn:first-child {
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.btn-group .btn:last-child {
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* ====================================
   28. Admin Forms Styles
   ==================================== */
.required::after {
    content: ' *';
    color: var(--danger);
}

.form-label {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 8px;
}

.form-control, .form-select {
    border: 2px solid #e5e7eb;
    border-radius: var(--radius-md);
    padding: 10px 15px;
    transition: all var(--transition-base);
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(64, 15, 26, 0.1);
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* ====================================
   29. Responsive Utilities
   ==================================== */
@media (max-width: 991px) {
    .branding-panel {
        padding: 40px 30px;
    }

    .branding-title {
        font-size: 2rem;
    }

    .form-panel {
        padding: 40px 30px;
    }

    .hero-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 767px) {
    .branding-panel {
        display: none !important;
    }

    .demo-accounts-grid {
        grid-template-columns: 1fr;
    }

    .form-panel {
        padding: 30px 20px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .test-cards {
        grid-template-columns: 1fr;
    }

    .stat-card {
        flex-direction: column;
        text-align: center;
    }

    .admin-header {
        padding: 20px;
    }

    .admin-header .d-flex {
        flex-direction: column;
        gap: 15px;
    }
}

/* ============================================
   Section 30: Soft Background Colors
   ============================================ */
.bg-primary-soft {
    background-color: rgba(13, 110, 253, 0.1) !important;
}

.bg-info-soft {
    background-color: rgba(13, 202, 240, 0.1) !important;
}

.bg-success-soft {
    background-color: rgba(25, 135, 84, 0.1) !important;
}

.bg-warning-soft {
    background-color: rgba(255, 193, 7, 0.1) !important;
}

.bg-danger-soft {
    background-color: rgba(220, 53, 69, 0.1) !important;
}

/* ============================================
   Section 31: Additional Padding Adjustments
   ============================================ */
.competency-item {
    padding: 25px !important;
}

.sub-competencies {
    padding: 15px !important;
}

.sub-competency-item {
    padding: 12px 0 !important;
}

.strengths-list li,
.development-list li {
    padding: 20px !important;
}

.test-info {
    padding: 15px 0 !important;
}

.card-body {
    padding: 25px !important;
}

.answer-option {
    padding: 22px !important;
}

.demo-section {
    padding: 25px !important;
}

.branding-panel {
    padding: 65px 45px !important;
}

.form-panel {
    padding: 65px 55px !important;
}

.cta-box {
    padding: 65px !important;
}

@media (max-width: 991px) {
    .branding-panel {
        padding: 45px 35px !important;
    }

    .form-panel {
        padding: 45px 35px !important;
    }
}

@media (max-width: 767px) {
    .form-panel {
        padding: 35px 25px !important;
    }

    .admin-header {
        padding: 25px !important;
    }
}
