:root {
    --primary: #2E8B57;
    --primary-light: rgba(46, 139, 87, 0.1);
    --secondary: #FF6B35;
    --dark: #1C1E2A;
    --darker: #171822;
    --light-text: #f8f9fa;
    --accent: #FFD700;
    --bengali-green: #006A4E;
    --bengali-red: #F42A41;
    --speaking-blue: #4A90E2;
}

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

body {
    font-family: 'Noto Sans Bengali', 'Inter', sans-serif;
    background-color: var(--dark);
    color: var(--light-text);
    line-height: 1.6;
    background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
}

.app-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 80px;
    background: linear-gradient(180deg, var(--darker), rgba(28, 30, 42, 0.95));
    padding: 24px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: fixed;
    height: 100vh;
    z-index: 10;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 4px 0 15px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.logo {
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--speaking-blue), var(--primary));
    border-radius: 12px;
    color: white;
    font-weight: bold;
    font-size: 1.4rem;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
    transition: all 0.3s ease;
}

.logo:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4);
}

.nav-item {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-item:hover {
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.2), rgba(46, 139, 87, 0.1));
    color: white;
    transform: translateY(-2px);
    border-color: rgba(74, 144, 226, 0.3);
}

.nav-item.active {
    background: linear-gradient(135deg, var(--speaking-blue), var(--primary));
    color: white;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
}

.nav-item.active::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background: var(--speaking-blue);
    border-radius: 0 4px 4px 0;
}

.nav-item i {
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.nav-item:hover i {
    transform: scale(1.1);
}

/* Add a subtle hover effect for the tooltip */
.nav-item::after {
    content: attr(title);
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    margin-left: 10px;
}

.nav-item:hover::after {
    opacity: 1;
    visibility: visible;
    margin-left: 15px;
}

/* Main content */
.main-content {
    flex: 1;
    margin-left: 70px;
    padding: 20px;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand span {
    font-size: 1.8rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--speaking-blue), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Make brand text bigger on desktop */
@media (min-width: 769px) {
    .brand span {
        font-size: 2.8rem;
    }
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 15px;
}

.points-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.points-badge {
    background-color: rgba(255, 215, 0, 0.1);
    border: 1px solid var(--accent);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--accent);
    font-weight: 600;
}

.points-badge.overall {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 215, 0, 0.05));
    border-color: var(--accent);
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.2);
}

.points-details {
    display: flex;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 10px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.point-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    padding: 2px 6px;
    border-radius: 8px;
    transition: all 0.2s;
}

.point-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.point-item i {
    font-size: 0.7rem;
    opacity: 0.8;
}

/* Responsive points section */
@media (max-width: 768px) {
    .points-section {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }
    
    /* Hide the detailed points breakdown in mobile view */
    .points-details {
        display: none !important;
    }
    
    .point-item {
        display: none !important;
        font-size: 0.75rem;
    }
}

.user-dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Noto Sans Bengali', sans-serif;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.dropbtn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background-color: #252836;
    min-width: 200px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 9999;
}

/* CSS-only dropdown */
.user-dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    color: white;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.dropdown-content a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.15), rgba(46, 139, 87, 0.1));
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 40px;
    border: 1px solid rgba(74, 144, 226, 0.2);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><text y="50" font-size="40" fill="rgba(255,255,255,0.03)">🎤</text></svg>') repeat;
    animation: float 20s infinite linear;
    z-index: 0;
}

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

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

.hero-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 10px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    border: none;
    font-family: 'Noto Sans Bengali', sans-serif;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--speaking-blue), var(--primary));
    color: white;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Features Section */
.section-heading {
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    text-align: center;
}

.section-subheading {
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.1rem;
}

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

.feature-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border-radius: 16px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--speaking-blue), var(--primary), var(--accent));
    opacity: 0;
    transition: opacity 0.3s;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    border-color: rgba(74, 144, 226, 0.3);
}

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

.feature-icon {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
    position: relative;
}

.feature-1 .feature-icon {
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.2), rgba(74, 144, 226, 0.1));
    color: var(--speaking-blue);
}

.feature-2 .feature-icon {
    background: linear-gradient(135deg, rgba(46, 139, 87, 0.2), rgba(46, 139, 87, 0.1));
    color: var(--primary);
}

.feature-3 .feature-icon {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.2), rgba(255, 107, 53, 0.1));
    color: var(--secondary);
}

.feature-4 .feature-icon {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 215, 0, 0.1));
    color: var(--accent);
}

.feature-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.feature-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    line-height: 1.6;
}

.feature-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    color: var(--speaking-blue);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
}

.feature-link:hover {
    color: var(--accent);
    transform: translateX(5px);
}

/* Speaking Focus Section */
.speaking-focus-section {
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.1), rgba(0, 106, 78, 0.05));
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 50px;
    border: 1px solid rgba(74, 144, 226, 0.2);
    text-align: center;
}

.speaking-focus-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--speaking-blue);
}

.speaking-focus-text {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 700px;
    margin: 0 auto;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-content {
        margin-left: 0;
        padding: 15px;
    }
    
    .sidebar {
        display: none;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    /* Compact header - everything in one line */
    .header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 6px;
        background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
        border: 1px solid rgba(255,255,255,0.12);
        border-radius: 10px;
        padding: 6px 8px;
        margin-bottom: 15px;
    }
    
    .brand { 
        justify-content: flex-start;
        flex-shrink: 0;
    }
    
    .brand span { 
        font-size: 0.75rem;
        white-space: nowrap;
    }

    .user-menu { 
        flex-direction: row;
        align-items: center;
        gap: 4px;
        flex: 1;
        justify-content: flex-end;
        width: auto;
    }
    
    .points-section { 
        flex-direction: row;
        align-items: center;
        gap: 3px;
        flex-shrink: 0;
    }
    
    .points-badge { 
        padding: 3px 6px;
        font-size: 0.65rem;
        flex-shrink: 0;
        white-space: nowrap;
    }
    
    /* Hide the detailed points breakdown in mobile view */
    .points-details { 
        display: none !important;
    }
    
    .point-item {
        display: none !important;
        padding: 1px 3px;
        font-size: 0.6rem;
        white-space: nowrap;
    }
    
    .point-item i {
        font-size: 0.55rem;
        display: none; /* Hide icons to save space */
    }
    
    .dropbtn { 
        padding: 4px 8px;
        font-size: 0.7rem;
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    .dropdown-content {
        right: 0;
        left: auto;
        min-width: 180px;
    }
}

/* Very small screens - even more compact */
@media (max-width: 480px) {
    .brand span { 
        font-size: 0.7rem; 
    }
    
    .dropbtn { 
        font-size: 0.65rem; 
        padding: 3px 6px; 
    }
    
    .points-badge { 
        padding: 2px 5px;
        font-size: 0.6rem;
    }
    
    /* Ensure points details stay hidden */
    .points-details { 
        display: none !important;
    }
    
    .point-item {
        display: none !important;
        font-size: 0.55rem;
        padding: 1px 2px;
    }
}

.auth-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.auth-buttons .btn {
    padding: 8px 16px;
    font-size: 0.9rem;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s;
}

