* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar {
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-logo h2 {
    color: white;
    font-size: 1.8rem;
    font-weight: bold;
}

.nav-logo .tagline {
    color: #e0e0e0;
    font-size: 0.8rem;
    display: block;
    margin-top: -5px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #ffd700;
}

.login-btn {
    background: rgba(255,255,255,0.2);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    backdrop-filter: blur(10px);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
    transition: 0.3s;
}

/* Mobile Navigation Styles */
.nav-menu.mobile-active {
    display: flex !important;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 1rem 0;
}

.nav-menu.mobile-active .nav-link {
    padding: 0.75rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Mobile Media Query for Navigation */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%; /* Changed from 70px to 100% for better positioning */
        left: 0;
        width: 100%;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        flex-direction: column;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); /* Enhanced shadow */
        z-index: 1000;
        border-radius: 0 0 15px 15px; /* Rounded bottom corners */
        overflow: hidden;
    }
    
    .nav-menu.mobile-active {
        display: flex !important;
        animation: slideDown 0.3s ease-out; /* Added animation */
    }
    
    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-menu li:last-child {
        border-bottom: none;
    }
    
    .nav-link {
        padding: 1rem 1.5rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        display: block;
        width: 100%;
        transition: background-color 0.3s ease; /* Added hover transition */
    }
    
    .nav-link:hover {
        background-color: rgba(255, 255, 255, 0.1); /* Added hover effect */
    }
    
    .nav-link:last-child {
        border-bottom: none;
    }
    
    /* Login button mobile styling */
    .login-btn {
        background: rgba(255, 255, 255, 0.2) !important;
        margin: 0.5rem 1.5rem;
        text-align: center;
        border-radius: 25px;
    }
}

/* Animation for mobile menu */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 60px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><circle cx="500" cy="500" r="300" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="2"/><circle cx="500" cy="500" r="200" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="2"/><circle cx="500" cy="500" r="100" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="2"/></svg>') center/cover;
    z-index: 1;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 3.5rem;
    color: white;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.highlight {
    color: #ffd700;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.hero-content p {
    font-size: 1.2rem;
    color: #e0e0e0;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.cta-btn {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.floating-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(20px);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.2);
    text-align: center;
    color: white;
    animation: float 3s ease-in-out infinite;
}

.floating-card i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #ffd700;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Enhanced Mobile Responsiveness for Hero Section */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-image {
        order: -1;
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: 80vh;
        padding-top: 80px;
    }
    
    .hero-container {
        padding: 0 15px;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }
    
    .hero-content p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        padding: 0 10px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .cta-btn {
        width: 100%;
        max-width: 280px;
        padding: 1rem;
        font-size: 1rem;
        justify-content: center;
    }
    
    .floating-card {
        padding: 1.5rem;
        margin: 0 20px;
    }
    
    .floating-card i {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 0.9rem;
    }
    
    .floating-card {
        padding: 1rem;
    }
}

/* Features Section */
.features {
    padding: 5rem 0;
    background: #f8f9fa;
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon i {
    font-size: 2rem;
    color: white;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* Enhanced Mobile Responsiveness for Features Section */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .features {
        padding: 3rem 0;
    }
    
    .features h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
        padding: 0 20px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 20px;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .feature-card h3 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }
    
    .feature-card p {
        font-size: 0.9rem;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
    }
    
    .feature-icon i {
        font-size: 1.5rem;
    }
}

/* Test Series Section */
.test-series {
    padding: 5rem 0;
    background: white;
}

.test-series h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
}

.test-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.test-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    position: relative;
}

.test-card:hover {
    transform: translateY(-5px);
}

.test-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #ff6b6b;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

.test-content {
    padding: 2rem;
}

.test-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.price {
    margin-bottom: 1rem;
}

.original-price {
    color: #999;
    text-decoration: line-through;
    margin-right: 0.5rem;
}

.current-price {
    color: #ff6b6b;
    font-size: 1.5rem;
    font-weight: bold;
}

.test-content p {
    color: #666;
    margin-bottom: 1.5rem;
}

.enroll-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.enroll-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Enhanced Mobile Responsiveness for Test Series Section */
@media (max-width: 1024px) {
    .test-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .test-series {
        padding: 3rem 0;
    }
    
    .test-series h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
        padding: 0 20px;
    }
    
    .test-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 20px;
    }
    
    .test-content {
        padding: 1.5rem;
    }
    
    .test-content h3 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }
    
    .test-content p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .enroll-btn {
        padding: 1rem;
        font-size: 1rem;
    }
    
    .test-badge {
        top: 0.5rem;
        right: 0.5rem;
        padding: 0.3rem 0.8rem;
        font-size: 0.7rem;
    }
}

/* Success Stories Section */
.success-stories {
    padding: 5rem 0;
    background: #f8f9fa;
}

.success-stories h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
}

.testimonials {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.testimonial-content p {
    font-style: italic;
    margin-bottom: 1rem;
    color: #666;
    line-height: 1.6;
}

.testimonial-author strong {
    color: #333;
    display: block;
    margin-bottom: 0.5rem;
}

.testimonial-author span {
    color: #667eea;
    font-size: 0.9rem;
}

/* Enhanced Mobile Responsiveness for Success Stories Section */
@media (max-width: 1024px) {
    .testimonials {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .success-stories {
        padding: 3rem 0;
    }
    
    .success-stories h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
        padding: 0 20px;
    }
    
    .testimonials {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 20px;
    }
    
    .testimonial {
        padding: 1.5rem;
    }
    
    .testimonial-content p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .testimonial-author strong {
        font-size: 1rem;
    }
    
    .testimonial-author span {
        font-size: 0.8rem;
    }
}

/* Downloads Section */
.downloads {
    padding: 5rem 0;
    background: white;
}

.downloads h2,
.downloads .section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
    position: relative;
    display: block;
}

.downloads h2::before,
.downloads .section-title::before {
    display: none !important;
}

.downloads h2::after,
.downloads .section-title::after {
    display: none !important;
}

.downloads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.download-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    border: 2px solid #f0f0f0;
}

.download-card:hover {
    transform: translateY(-5px);
    border-color: #667eea;
}

.download-icon {
    margin-bottom: 1rem;
}

.download-icon i {
    font-size: 3rem;
    color: #ff6b6b;
}

.download-card h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #333;
}

.download-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* CTA Section */
.cta-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    text-align: center;
    color: white;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3, .footer-section h4 {
    margin-bottom: 1rem;
    color: #ffd700;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #bbb;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #ffd700;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: #34495e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #ffd700;
    color: #2c3e50;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #34495e;
    color: #bbb;
}

/* Enhanced Mobile Responsiveness for Footer */
@media (max-width: 768px) {
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
        padding: 0 20px;
    }
    
    .footer-section h3, .footer-section h4 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }
    
    .footer-section p,
    .footer-section li {
        font-size: 0.9rem;
    }
    
    .social-links {
        justify-content: center;
        gap: 1rem;
        margin-top: 1rem;
    }
    
    .social-links a {
        width: 45px;
        height: 45px;
    }
    
    .footer-bottom {
        text-align: center;
        padding: 1rem 20px;
        font-size: 0.8rem;
        margin-top: 1rem;
    }
}

/* Dashboard Styles */
.dashboard-container {
    display: flex;
    min-height: 100vh;
    margin-top: 80px;
}

.sidebar {
    width: 250px;
    background: #2c3e50;
    color: white;
    padding: 2rem 0;
    position: fixed;
    height: calc(100vh - 80px);
    overflow-y: auto;
}

.sidebar h3 {
    padding: 0 1.5rem;
    margin-bottom: 1rem;
    color: #ffd700;
}

.sidebar ul {
    list-style: none;
}

.sidebar li {
    padding: 0.8rem 1.5rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.sidebar li:hover, .sidebar li.active {
    background: #34495e;
    border-left: 4px solid #ffd700;
}

.main-content {
    margin-left: 250px;
    padding: 2rem;
    flex: 1;
}

.tabs {
    display: flex;
    margin-bottom: 2rem;
    border-bottom: 2px solid #eee;
}

.tab {
    padding: 1rem 2rem;
    cursor: pointer;
    border: none;
    background: none;
    font-size: 1rem;
    color: #666;
    transition: all 0.3s ease;
}

.tab.active {
    color: #667eea;
    border-bottom: 2px solid #667eea;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.test-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.test-item {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.test-item:hover {
    transform: translateY(-5px);
}

.test-meta {
    display: flex;
    justify-content: space-between;
    margin: 1rem 0;
    color: #666;
    font-size: 0.9rem;
}

.start-test-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.start-test-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Test Attempt Styles */
.test-container {
    max-width: 1000px;
    margin: 100px auto 2rem;
    padding: 0 20px;
}

.test-header {
    background: white;
    padding: 1rem 2rem;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.timer {
    background: #ff6b6b;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: bold;
}

.question-area {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.question-number {
    color: #667eea;
    font-weight: bold;
    margin-bottom: 1rem;
}

.question-text {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.options {
    list-style: none;
}

.option {
    margin-bottom: 1rem;
}

.option label {
    display: flex;
    align-items: center;
    padding: 1rem;
    border: 2px solid #eee;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.option input[type="radio"] {
    margin-right: 1rem;
}

.option label:hover {
    border-color: #667eea;
    background: #f8f9ff;
}

.option input[type="radio"]:checked + label {
    border-color: #667eea;
    background: #f8f9ff;
}

.navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 1rem 2rem;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.nav-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background: #5a67d8;
}

.nav-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.submit-btn {
    background: #ff6b6b;
}

.submit-btn:hover {
    background: #e55656;
}

/* Result Styles */
.result-container {
    max-width: 800px;
    margin: 100px auto 2rem;
    padding: 0 20px;
}

.result-header {
    background: white;
    padding: 3rem 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    text-align: center;
    margin-bottom: 2rem;
}

.result-header h1 {
    color: #333;
    margin-bottom: 1rem;
}

.score-display {
    font-size: 4rem;
    color: #667eea;
    font-weight: bold;
    margin: 1rem 0;
}

.score-percentage {
    font-size: 1.5rem;
    color: #666;
    margin-bottom: 2rem;
}

.result-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.stat-item.correct {
    border-color: #2ecc71;
    background: #d5f4e6;
}

.stat-item.wrong {
    border-color: #e74c3c;
    background: #fadbd8;
}

.stat-item.unattempted {
    border-color: #f39c12;
    background: #fdeaa7;
}

.stat-item.time {
    border-color: #667eea;
    background: #e8ecff;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: #333;
    display: block;
}

.stat-label {
    color: #666;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.performance-analysis {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.performance-analysis h3 {
    color: #333;
    margin-bottom: 2rem;
    text-align: center;
}

.analysis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.analysis-card {
    text-align: center;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.analysis-card:hover {
    transform: translateY(-5px);
}

.analysis-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.analysis-icon i {
    color: white;
    font-size: 1.5rem;
}

.analysis-card h4 {
    color: #333;
    margin-bottom: 0.5rem;
}

.analysis-value {
    font-size: 1.8rem;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 0.5rem;
}

.analysis-card p {
    color: #666;
    font-size: 0.9rem;
}

.leaderboard {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.leaderboard h3 {
    color: #333;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.leaderboard h3 i {
    color: #ffd700;
}

.leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.leaderboard-item {
    display: grid;
    grid-template-columns: 60px 1fr auto auto;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.leaderboard-item:hover {
    background: #e8ecff;
}

.leaderboard-item.current-user {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border: 2px solid #667eea;
}

.rank {
    width: 40px;
    height: 40px;
    background: #667eea;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.rank.gold {
    background: #ffd700;
    color: #333;
}

.rank.silver {
    background: #c0c0c0;
    color: #333;
}

.rank.bronze {
    background: #cd7f32;
    color: white;
}

.student-info {
    display: flex;
    flex-direction: column;
}

.student-info .name {
    font-weight: bold;
    color: #333;
}

.student-info .location {
    color: #666;
    font-size: 0.9rem;
}

.score {
    font-weight: bold;
    color: #667eea;
}

.time {
    color: #666;
    font-size: 0.9rem;
}

.subject-analysis {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.subject-analysis h3 {
    color: #333;
    margin-bottom: 2rem;
    text-align: center;
}

.topic-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.topic-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
}

.topic-name {
    font-weight: bold;
    color: #333;
}

.topic-progress {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    margin-left: 2rem;
}

.progress-bar {
    flex: 1;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-text {
    font-weight: bold;
    color: #667eea;
    min-width: 40px;
}

.result-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

/* About Page Styles */
.about-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 8rem 0 5rem;
    text-align: center;
    color: white;
    margin-top: 80px;
}

.about-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.about-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.mission {
    padding: 5rem 0;
    background: white;
}

.mission-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: center;
}

.mission-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #333;
}

.mission-text p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.mission-text ul {
    list-style: none;
    padding: 0;
}

.mission-text li {
    padding: 0.5rem 0;
    color: #666;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mission-text li i {
    color: #2ecc71;
    font-size: 1.2rem;
}

.mission-card {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.mission-icon {
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.mission-icon i {
    font-size: 2rem;
}

.mission-card h3 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.who-we-are {
    padding: 5rem 0;
    background: #f8f9fa;
}

.who-we-are h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.about-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.about-card:hover {
    transform: translateY(-10px);
}

.about-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-icon i {
    font-size: 2rem;
    color: white;
}

.about-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.our-story {
    padding: 5rem 0;
    background: white;
}

.our-story h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
}

.story-timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.story-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #667eea;
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    margin-bottom: 3rem;
    position: relative;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-year {
    background: #667eea;
    color: white;
    padding: 1rem;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.timeline-content {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    width: 45%;
    margin-left: 5%;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: 0;
    margin-right: 5%;
}

.timeline-content h3 {
    color: #333;
    margin-bottom: 1rem;
}

.timeline-content p {
    color: #666;
    line-height: 1.6;
}

.our-team {
    padding: 5rem 0;
    background: #f8f9fa;
}

.our-team h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
}

.team-members {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.team-member {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.team-member:hover {
    transform: translateY(-10px);
}

.member-photo {
    margin-bottom: 1rem;
}

.member-photo i {
    font-size: 4rem;
    color: #667eea;
}

.team-member h3 {
    color: #333;
    margin-bottom: 0.5rem;
}

.member-role {
    color: #667eea;
    font-weight: bold;
    margin-bottom: 1rem;
}

.member-bio {
    color: #666;
    line-height: 1.6;
    font-size: 0.9rem;
}

.values {
    padding: 5rem 0;
    background: white;
}

.values h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.value-item {
    text-align: center;
    padding: 2rem;
}

.value-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.value-icon i {
    font-size: 2rem;
    color: white;
}

.value-item h3 {
    color: #333;
    margin-bottom: 1rem;
}

.value-item p {
    color: #666;
    line-height: 1.6;
}

.about-cta {
    padding: 5rem 0;
    background: linear-gradient(135deg, #667eea, #764ba2 100%);
    text-align: center;
    color: white;
}

.about-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.about-cta p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* About CTA Buttons */
.about-cta .cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .about-cta .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .about-cta .cta-btn {
        width: 100%;
        max-width: 280px;
    }
}

/* Result Page Specific Styles */
.result-container {
    max-width: 1000px;
    margin: 100px auto 2rem;
    padding: 0 20px;
}

.result-header {
    background: white;
    padding: 3rem 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    text-align: center;
    margin-bottom: 2rem;
}

.result-header h1 {
    color: #333;
    margin-bottom: 1rem;
}

.score-display {
    font-size: 4rem;
    color: #667eea;
    font-weight: bold;
    margin: 1rem 0;
}

.score-percentage {
    font-size: 1.5rem;
    color: #666;
    margin-bottom: 2rem;
}

.result-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.stat-item.correct {
    border-color: #2ecc71;
    background: #d5f4e6;
}

.stat-item.wrong {
    border-color: #e74c3c;
    background: #fadbd8;
}

.stat-item.unattempted {
    border-color: #f39c12;
    background: #fdeaa7;
}

.stat-item.time {
    border-color: #667eea;
    background: #e8ecff;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: #333;
    display: block;
}

.stat-label {
    color: #666;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.performance-analysis {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.performance-analysis h3 {
    color: #333;
    margin-bottom: 2rem;
    text-align: center;
}

.analysis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.analysis-card {
    text-align: center;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.analysis-card:hover {
    transform: translateY(-5px);
}

.analysis-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.analysis-icon i {
    color: white;
    font-size: 1.5rem;
}

.analysis-card h4 {
    color: #333;
    margin-bottom: 0.5rem;
}

.analysis-value {
    font-size: 1.8rem;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 0.5rem;
}

.analysis-card p {
    color: #666;
    font-size: 0.9rem;
}

.leaderboard {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.leaderboard h3 {
    color: #333;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.leaderboard h3 i {
    color: #ffd700;
}

.leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.leaderboard-item {
    display: grid;
    grid-template-columns: 60px 1fr auto auto;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.leaderboard-item:hover {
    background: #e8ecff;
}

.leaderboard-item.current-user {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border: 2px solid #667eea;
}

.rank {
    width: 40px;
    height: 40px;
    background: #667eea;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.rank.gold {
    background: #ffd700;
    color: #333;
}

.rank.silver {
    background: #c0c0c0;
    color: #333;
}

.rank.bronze {
    background: #cd7f32;
    color: white;
}

.student-info {
    display: flex;
    flex-direction: column;
}

.student-info .name {
    font-weight: bold;
    color: #333;
}

.student-info .location {
    color: #666;
    font-size: 0.9rem;
}

.score {
    font-weight: bold;
    color: #667eea;
}

.time {
    color: #666;
    font-size: 0.9rem;
}

.subject-analysis {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.subject-analysis h3 {
    color: #333;
    margin-bottom: 2rem;
    text-align: center;
}

.topic-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.topic-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
}

.topic-name {
    font-weight: bold;
    color: #333;
}

.topic-progress {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    margin-left: 2rem;
}

.progress-bar {
    flex: 1;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-text {
    font-weight: bold;
    color: #667eea;
    min-width: 40px;
}

.result-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

/* =============================================
   LOGIN MODAL & AUTHENTICATION STYLES
   ============================================= */

/* Modal Overlay */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease-in-out;
}

.modal-content {
    background: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    position: relative;
    animation: slideInDown 0.3s ease-in-out;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 2rem 1rem 2rem;
    border-bottom: 1px solid #eee;
}

.modal-header h2 {
    margin: 0;
    color: #333;
    font-size: 1.5rem;
    font-weight: 600;
}

.close-btn {
    font-size: 2rem;
    color: #999;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: #333;
}

.modal-body {
    padding: 2rem;
}

/* Authentication Forms */
.auth-form {
    width: 100%;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.remember-me, .terms-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.remember-me input, .terms-check input {
    width: auto;
    margin: 0;
}

.forgot-password {
    color: #3b82f6;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: #2563eb;
}

.auth-btn {
    width: 100%;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    border: none;
    padding: 0.9rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.auth-btn:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.auth-btn:active {
    transform: translateY(0);
}

/* Social Login */
.auth-divider {
    text-align: center;
    margin: 1.5rem 0;
    position: relative;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e1e5e9;
}

.auth-divider span {
    background: white;
    padding: 0 1rem;
    color: #6b7280;
    font-size: 0.9rem;
}

.social-login {
    margin-bottom: 1.5rem;
}

.social-btn {
    width: 100%;
    background: white;
    border: 2px solid #e1e5e9;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    color: #374151;
    font-weight: 500;
}

.social-btn:hover {
    border-color: #d1d5db;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.google-btn i {
    color: #db4437;
}

.auth-switch {
    text-align: center;
    margin-top: 1rem;
}

.auth-switch p {
    margin: 0;
    color: #6b7280;
}

.auth-switch a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
}

.auth-switch a:hover {
    color: #2563eb;
}

.form-description {
    color: #6b7280;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

/* User Profile Button - Premium Glass Design */
.user-profile-btn {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 10px 18px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.user-profile-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.user-profile-btn i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.user-profile-btn:hover i {
    transform: scale(1.1);
}

/* Profile Dropdown - Premium Design */
.profile-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15),
                0 0 0 1px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    min-width: 260px;
    overflow: hidden;
    animation: dropdownSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: top right;
}

@keyframes dropdownSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.dropdown-content {
    padding: 8px;
    display: flex;
    flex-direction: column;
}

.dropdown-header {
    padding: 16px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: 12px;
    margin-bottom: 8px;
    border: 1px solid rgba(102, 126, 234, 0.1);
    transition: all 0.3s ease;
}

.dropdown-header:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
    transform: translateY(-1px);
}

.user-avatar {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    transition: transform 0.3s ease;
}

.dropdown-header:hover .user-avatar {
    transform: scale(1.05) rotate(-5deg);
}

.user-info {
    flex: 1;
    min-width: 0;
}

.user-name {
    display: block;
    font-weight: 600;
    font-size: 15px;
    color: #1a1a1a !important;
    margin: 0 0 4px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -0.2px;
}

.user-email {
    display: block;
    font-size: 12px;
    color: #667eea !important;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
}

.dropdown-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.08), transparent);
    margin: 8px 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #4a5568;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    box-sizing: border-box;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.dropdown-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transform: translateX(-3px);
    transition: transform 0.2s ease;
}

.dropdown-item:hover::before {
    transform: translateX(0);
}

.dropdown-item:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%);
    color: #667eea;
    transform: translateX(4px);
    padding-left: 20px;
}

.dropdown-item i {
    font-size: 16px;
    width: 20px;
    text-align: center;
    color: #9ca3af;
    transition: all 0.2s ease;
}

.dropdown-item:hover i {
    color: #667eea;
    transform: scale(1.1);
}

.dropdown-item.logout-btn {
    color: #ef4444;
    margin-top: 4px;
    background: rgba(239, 68, 68, 0.05);
    border: 1px solid rgba(239, 68, 68, 0.1);
}

.dropdown-item.logout-btn::before {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.dropdown-item.logout-btn:hover {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(220, 38, 38, 0.1) 100%);
    color: #dc2626;
    border-color: rgba(239, 68, 68, 0.2);
}

.dropdown-item.logout-btn i {
    color: #ef4444;
}

.dropdown-item.logout-btn:hover i {
    color: #dc2626;
    transform: scale(1.1) rotate(10deg);
}

/* Legacy support for old dropdown structure - Premium Design */
.profile-header {
    padding: 16px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: 12px;
    margin: 8px;
    margin-bottom: 8px;
    border: 1px solid rgba(102, 126, 234, 0.1);
    transition: all 0.3s ease;
}

.profile-header:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
    transform: translateY(-1px);
}

.profile-avatar {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    transition: transform 0.3s ease;
}

.profile-header:hover .profile-avatar {
    transform: scale(1.05) rotate(-5deg);
}

.profile-info {
    flex: 1;
    min-width: 0;
}

.profile-name {
    display: block;
    font-weight: 600;
    font-size: 15px;
    color: #1a1a1a !important;
    margin-bottom: 4px;
    letter-spacing: -0.2px;
}

.profile-email {
    display: block;
    font-size: 12px;
    color: #667eea !important;
    font-weight: 500;
}

.profile-menu {
    padding: 8px;
    display: flex;
    flex-direction: column;
}

.profile-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #4a5568;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    box-sizing: border-box;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.profile-menu-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transform: translateX(-3px);
    transition: transform 0.2s ease;
}

.profile-menu-item:hover::before {
    transform: translateX(0);
}

.profile-menu-item:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%);
    color: #667eea;
    transform: translateX(4px);
    padding-left: 20px;
}

.profile-menu-item i {
    font-size: 16px;
    width: 20px;
    text-align: center;
    color: #9ca3af;
    transition: all 0.2s ease;
}

.profile-menu-item:hover i {
    color: #667eea;
    transform: scale(1.1);
}

.profile-menu-item.logout {
    color: #ef4444;
    margin-top: 4px;
    background: rgba(239, 68, 68, 0.05);
    border: 1px solid rgba(239, 68, 68, 0.1);
}

.profile-menu-item.logout::before {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.profile-menu-item.logout:hover {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(220, 38, 38, 0.1) 100%);
    color: #dc2626;
    border-color: rgba(239, 68, 68, 0.2);
}

.profile-menu-item.logout i {
    color: #ef4444;
}

.profile-menu-item.logout:hover i {
    color: #dc2626;
    transform: scale(1.1) rotate(10deg);
}

.profile-menu-item.logout:hover {
    background-color: #fef2f2;
    color: #b91c1c;
}

.profile-menu-item.logout i {
    color: #dc2626;
}

.profile-menu-item.logout:hover i {
    color: #b91c1c;
}

.profile-divider {
    height: 1px;
    background: #f0f0f0;
    margin: 0;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Success/Error Messages */
.auth-message {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.auth-message.success {
    background-color: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.auth-message.error {
    background-color: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

/* Loading State */
.auth-btn.loading {
    position: relative;
    color: transparent;
}

.auth-btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive Design for Auth Modal */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .modal-header, .modal-body {
        padding: 1.5rem;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .profile-dropdown {
        width: 260px;
        right: -50px;
    }
}

@media (max-width: 480px) {
    .modal-content {
        margin: 5% auto;
    }
    
    .modal-header, .modal-body {
        padding: 1rem;
    }
    
    .profile-dropdown {
        width: 240px;
        right: -80px;
    }
}

/* =============================================
   NOTIFICATION SYSTEM STYLES
   ============================================= */

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 10001;
    min-width: 300px;
    max-width: 500px;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
    border-left: 4px solid #3b82f6;
}

.notification.show {
    opacity: 1;
    transform: translateX(0);
}

.notification.success {
    border-left-color: #10b981;
}

.notification.error {
    border-left-color: #ef4444;
}

.notification.warning {
    border-left-color: #f59e0b;
}

.notification-content {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    gap: 0.75rem;
}

.notification-icon {
    font-size: 1.25rem;
    color: #3b82f6;
}

.notification.success .notification-icon {
    color: #10b981;
}

.notification.error .notification-icon {
    color: #ef4444;
}

.notification.warning .notification-icon {
    color: #f59e0b;
}

.notification-message {
    flex: 1;
    color: #374151;
    font-weight: 500;
}

.notification-close {
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    font-size: 1rem;
    padding: 0.25rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.notification-close:hover {
    color: #6b7280;
    background: #f3f4f6;
}

/* Mobile responsive notifications */
@media (max-width: 768px) {
    .notification {
        right: 10px;
        left: 10px;
        min-width: auto;
        max-width: none;
    }
}
