/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background-color: #0f1419;
    color: #fff;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, rgba(15,20,25,0.95) 0%, transparent 100%);
    transition: background-color 0.3s ease;
    padding: 1rem 0;
    backdrop-filter: blur(10px);
}

.header.scrolled {
    background-color: rgba(15,20,25,0.98);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo {
    flex-shrink: 0;
}

.company-logo {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(45deg, #4CAF50, #2196F3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-image {
    height: 40px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(76, 175, 80, 0.5));
}

.nav-menu {
    display: flex;
    gap: 2rem;
    margin-left: 2rem;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

.nav-link:hover,
.nav-link.active {
    color: #4CAF50;
    background: rgba(76, 175, 80, 0.1);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.user-stats {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255,255,255,0.1);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    backdrop-filter: blur(10px);
}

.points-display {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #FFD700;
    font-weight: 600;
}

.level-display {
    color: #4CAF50;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.search-container {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 25px;
    padding: 0.5rem 1rem;
    backdrop-filter: blur(10px);
}

.search-input {
    background: transparent;
    border: none;
    color: #fff;
    padding: 0.25rem 0.5rem;
    font-size: 0.9rem;
    width: 250px;
}

.search-input::placeholder {
    color: rgba(255,255,255,0.7);
}

.search-input:focus {
    outline: none;
}

.search-btn {
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 0.25rem;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 25px;
    transition: background-color 0.3s ease;
}

.user-menu:hover {
    background: rgba(255,255,255,0.1);
}

.profile-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 3px solid #4CAF50;
    background: #2a2a2a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #4CAF50;
    font-weight: 600;
    overflow: hidden;
    flex-shrink: 0;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.profile-avatar span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 1.1rem;
    font-weight: 600;
    color: #4CAF50;
}

.user-dropdown {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.user-name {
    font-size: 0.9rem;
    font-weight: 600;
}

.user-role {
    font-size: 0.8rem;
    color: #4CAF50;
}

.user-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 0.5rem 0;
    min-width: 150px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.2);
    display: none;
    z-index: 1000;
}

.dropdown-item {
    padding: 0.75rem 1rem;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dropdown-item:hover {
    background: rgba(255,255,255,0.1);
}

.dropdown-item i {
    color: #4CAF50;
}

/* Main Content */
.main-content {
    margin-top: 0;
}

/* Hero Banner */
.hero-banner {
    position: relative;
    height: 70vh;
    min-height: 500px;
    background: linear-gradient(135deg, #0f1419 0%, #1a2332 50%, #0f1419 100%);
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #4CAF50, #2196F3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.2rem;
    max-width: 600px;
    margin-bottom: 2rem;
    color: #e5e5e5;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    margin-bottom: 2rem;
}

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

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #4CAF50;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: #ccc;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(45deg, #4CAF50, #45a049);
    color: #fff;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.btn-secondary {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

/* Quick Stats */
.quick-stats {
    padding: 2rem 0;
    background: rgba(255,255,255,0.02);
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255,255,255,0.05);
    padding: 1.5rem;
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card i {
    font-size: 2rem;
    color: #4CAF50;
    width: 50px;
    text-align: center;
}

.stat-info {
    flex: 1;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.9rem;
    color: #ccc;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Content Sections */
.content-sections {
    padding: 2rem 0;
}

.content-row {
    margin-bottom: 2rem;
    overflow: visible;
}

.row-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding: 0 2rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.row-title i {
    color: #4CAF50;
    font-size: 1.2rem;
}

.department-progress {
    margin-left: auto;
    font-size: 0.9rem;
    color: #4CAF50;
    background: rgba(76, 175, 80, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
}

.content-slider {
    display: flex;
    gap: 1rem;
    padding: 20px 2rem;
    max-width: 1400px;
    margin: 0 auto;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    overflow-y: visible;
}

.content-slider::-webkit-scrollbar {
    display: none;
}

/* Content Cards */
.content-card {
    flex-shrink: 0;
    width: 280px;
    height: 200px;
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, z-index 0.3s ease;
    border: 2px solid transparent;
}

.content-card:hover {
    transform: scale(1.05);
    z-index: 10;
    border-color: #4CAF50;
}

.course-card {
    min-width: 300px;
    height: auto !important;
    min-height: 400px;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: visible;
    padding: 10px;
    margin: 10px;
    position: relative;
}

.course-card::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    background: transparent;
    border-radius: 15px;
    z-index: -1;
    transition: all 0.3s ease;
    opacity: 0;
}

.course-card:hover::before {
    opacity: 1;
    box-shadow: 
        0 0 30px rgba(76, 175, 80, 0.5),
        0 0 60px rgba(76, 175, 80, 0.3),
        0 0 90px rgba(76, 175, 80, 0.2);
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(76, 175, 80, 0.3);
    border-color: #4CAF50;
}

.course-card:hover img {
    transform: scale(1.02);
}

.course-card img {
    width: 100%;
    height: auto;
    object-fit: contain;
    background: #000;
    display: block;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.course-card .card-overlay {
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.8) 50%, rgba(0,0,0,0.95) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
}

.course-card:hover .card-overlay {
    opacity: 1;
}

.course-info {
    text-align: center;
}

.course-info .card-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

/* Coming Soon Course Styles */
.coming-soon {
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.coming-soon:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 193, 7, 0.3);
    border-color: #FFC107;
}

.coming-soon:hover::before {
    opacity: 1;
    box-shadow: 
        0 0 30px rgba(255, 193, 7, 0.5),
        0 0 60px rgba(255, 193, 7, 0.3),
        0 0 90px rgba(255, 193, 7, 0.2);
}

.coming-soon-image {
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.coming-soon:hover .coming-soon-image {
    filter: grayscale(0%);
}

.coming-soon-badge {
    background: linear-gradient(45deg, #FFC107, #FF9800);
    color: #000;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 1rem;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 20px rgba(255, 193, 7, 0.5);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
    }
}

.coming-soon .card-overlay {
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.9) 50%, rgba(0,0,0,0.95) 100%);
}

.coming-soon:hover .card-overlay {
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.8) 50%, rgba(0,0,0,0.95) 100%);
}

/* Locked Game Styles */
.game-card {
    position: relative;
    width: 300px;
    height: 450px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #1a1a1a;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.game-card .game-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.game-card.locked {
    opacity: 0.6;
    filter: grayscale(100%);
    cursor: not-allowed;
}

.game-card.locked .card-overlay {
    background: rgba(0, 0, 0, 0.8);
}

.game-card.locked .locked-badge {
    background: rgba(108, 117, 125, 0.9);
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    margin-top: 15px;
    display: inline-block;
}

.game-card.unlocked {
    opacity: 1;
    filter: none;
    cursor: pointer;
}

.game-card.unlocked .locked-badge {
    display: none;
}

.game-card.unlocked .card-overlay {
    background: rgba(0, 0, 0, 0.7);
}

.game-card.unlocked:hover .card-overlay {
    background: rgba(0, 0, 0, 0.8);
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}

.game-card:hover .game-image {
    transform: scale(1.05);
}

.course-info .card-description {
    font-size: 0.9rem;
    color: #e5e5e5;
    margin-bottom: 1rem;
    line-height: 1.4;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

.course-info .card-meta {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    color: #ccc;
    font-size: 0.85rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

.course-info .btn {
    align-self: center;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 600;
}

.content-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.9) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
}

.content-card:hover .card-overlay {
    opacity: 1;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #fff;
}

.card-info {
    font-size: 0.9rem;
    color: #ccc;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.card-duration {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.card-points {
    color: #FFD700;
    font-weight: 600;
}

.card-buttons {
    display: flex;
    gap: 0.75rem;
}

.card-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.7);
    background: rgba(0,0,0,0.7);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.card-btn:hover {
    background: #4CAF50;
    color: #fff;
    border-color: #4CAF50;
    transform: scale(1.1);
}

.card-btn.completed {
    background: #4CAF50;
    border-color: #4CAF50;
}

.card-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.card-btn:disabled:hover {
    transform: none;
    background: rgba(0,0,0,0.7);
    border-color: rgba(255,255,255,0.7);
}

/* Video Modal */
.video-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.95);
    backdrop-filter: blur(10px);
}

.modal-content {
    position: relative;
    width: 95%;
    max-width: 1200px;
    height: 90%;
    margin: 2.5% auto;
    background: #1a2332;
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: #fff;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    background: rgba(0,0,0,0.7);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.close-modal:hover {
    background: rgba(255,255,255,0.2);
}

.video-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: rgba(0,0,0,0.3);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.video-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.video-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: #ccc;
}

.video-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.video-progress {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 200px;
}

.progress-bar {
    flex: 1;
    height: 8px;
    background: rgba(255,255,255,0.2);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #45a049);
    width: 0%;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 0.9rem;
    color: #4CAF50;
    font-weight: 600;
    min-width: 40px;
}

.video-container {
    width: 100%;
    height: calc(100% - 140px);
    background: #000;
}

.video-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: rgba(0,0,0,0.3);
    border-top: 1px solid rgba(255,255,255,0.1);
}

.video-actions {
    display: flex;
    gap: 1rem;
}

.completion-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #ccc;
}

.completion-status.completed {
    color: #4CAF50;
}

/* Quiz Modal */
.quiz-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.95);
    backdrop-filter: blur(10px);
}

.quiz-content {
    position: relative;
    width: 90%;
    max-width: 800px;
    height: 80%;
    margin: 5% auto;
    background: #1a2332;
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
}

.quiz-header {
    padding: 2rem;
    background: rgba(0,0,0,0.3);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    text-align: center;
}

.quiz-header h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #fff;
}

.quiz-progress {
    font-size: 1rem;
    color: #4CAF50;
    font-weight: 600;
}

.quiz-body {
    padding: 2rem;
    height: calc(100% - 200px);
    overflow-y: auto;
}

.quiz-question {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #fff;
    line-height: 1.6;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.quiz-option {
    padding: 1rem 1.5rem;
    background: rgba(255,255,255,0.05);
    border: 2px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    color: #fff;
}

.quiz-option:hover {
    background: rgba(76, 175, 80, 0.1);
    border-color: #4CAF50;
}

.quiz-option.selected {
    background: rgba(76, 175, 80, 0.2);
    border-color: #4CAF50;
}

.quiz-option.correct {
    background: rgba(76, 175, 80, 0.3);
    border-color: #4CAF50;
}

.quiz-option.incorrect {
    background: rgba(244, 67, 54, 0.3);
    border-color: #f44336;
}

.quiz-footer {
    display: flex;
    justify-content: space-between;
    padding: 2rem;
    background: rgba(0,0,0,0.3);
    border-top: 1px solid rgba(255,255,255,0.1);
}

.quiz-results {
    text-align: center;
}

.quiz-results h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #fff;
}

.result-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

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

.result-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #4CAF50;
    margin-bottom: 0.5rem;
}

.result-label {
    font-size: 1rem;
    color: #ccc;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.result-message {
    font-size: 1.2rem;
    color: #fff;
    font-weight: 600;
}

/* Progress Modal */
.progress-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.95);
    backdrop-filter: blur(10px);
}

.progress-content {
    position: relative;
    width: 90%;
    max-width: 1000px;
    height: 80%;
    margin: 5% auto;
    background: #1a2332;
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
}

.progress-header {
    padding: 2rem;
    background: rgba(0,0,0,0.3);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    text-align: center;
}

.progress-header h3 {
    font-size: 1.8rem;
    color: #fff;
}

.progress-body {
    padding: 2rem;
    height: calc(100% - 100px);
    overflow-y: auto;
}

.overall-progress {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
}

.progress-circle {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 200px;
    height: 200px;
    margin: 0 auto;
}

.progress-circle svg {
    transform: rotate(-90deg);
}

.progress-text {
    position: absolute;
    text-align: center;
}

.progress-percentage {
    font-size: 3rem;
    font-weight: 700;
    color: #4CAF50;
    margin-bottom: 0.5rem;
}

.progress-label {
    font-size: 1.2rem;
    color: #ccc;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.department-progress-list {
    display: grid;
    gap: 1rem;
}

.department-progress-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.1);
}

.department-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
}

.department-stats {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.department-completion {
    font-size: 0.9rem;
    color: #4CAF50;
}

.department-bar {
    width: 100px;
    height: 8px;
    background: rgba(255,255,255,0.2);
    border-radius: 4px;
    overflow: hidden;
}

.department-fill {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #45a049);
    transition: width 0.3s ease;
}

/* Leaderboard Modal */
.leaderboard-modal {
    display: block;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.95);
    backdrop-filter: blur(10px);
}

.leaderboard-content {
    position: relative;
    width: 90%;
    max-width: 800px;
    height: 80%;
    margin: 5% auto;
    background: #1a2332;
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
}

.leaderboard-header {
    padding: 2rem;
    background: rgba(0,0,0,0.3);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    text-align: center;
}

.leaderboard-header h3 {
    font-size: 1.8rem;
    color: #fff;
}

.leaderboard-body {
    padding: 2rem;
    height: calc(100% - 100px);
    overflow-y: auto;
}

.leaderboard-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem 1.5rem;
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.leaderboard-item:hover {
    background: rgba(255,255,255,0.1);
    transform: translateX(5px);
}

.leaderboard-item.current-user {
    background: rgba(76, 175, 80, 0.1);
    border-color: #4CAF50;
}

.rank {
    font-size: 1.5rem;
    font-weight: 700;
    color: #FFD700;
    min-width: 50px;
}

.user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255,255,255,0.2);
    flex-shrink: 0;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-avatar img:hover {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

.user-info {
    flex: 1;
}

.user-info .user-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.25rem;
}

.user-info .user-role {
    font-size: 0.9rem;
    color: #4CAF50;
}

.user-stats {
    text-align: right;
}

.user-stats .points {
    font-size: 1.2rem;
    font-weight: 700;
    color: #FFD700;
    margin-bottom: 0.25rem;
}

.user-stats .level {
    font-size: 0.9rem;
    color: #4CAF50;
}

.loading {
    text-align: center;
    color: #ccc;
    font-style: italic;
}

/* Achievement Notification */
.achievement-notification {
    position: fixed;
    top: 2rem;
    right: 2rem;
    background: linear-gradient(45deg, #4CAF50, #45a049);
    color: #fff;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(76, 175, 80, 0.3);
    z-index: 3000;
    transform: translateX(120%);
    transition: transform 0.5s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.achievement-notification.show {
    transform: translateX(0);
}

.achievement-content i {
    font-size: 2rem;
    color: #FFD700;
}

.achievement-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.achievement-description {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Loading Spinner */
.loading-spinner {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 3000;
    justify-content: center;
    align-items: center;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255,255,255,0.3);
    border-top: 4px solid #4CAF50;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        padding: 0 1rem;
    }
    
    .nav-menu {
        display: none;
    }
    
    .user-stats {
        display: none;
    }
    
    .search-input {
        width: 150px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .content-slider {
        padding: 0 1rem;
    }
    
    .content-card {
        width: 220px;
        height: 160px;
    }
    
    .modal-content,
    .quiz-content,
    .progress-content,
    .leaderboard-content {
        width: 95%;
        height: 90%;
        margin: 2.5% auto;
    }
    
    .result-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .leaderboard-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .user-stats {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .content-card {
        width: 180px;
        height: 130px;
    }
    
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .stats-container {
        grid-template-columns: 1fr;
    }
}

/* Utility Classes */
.hidden {
    display: none !important;
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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