/*
Theme Name: LingoSurge Progress Tracker
Description: A comprehensive theme for tracking language C1 mastery progress with vocabulary, reading, speaking, alphabet, and grammar milestones.
Version: 3.1.2
Author: LingoSurge
*/

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
    min-height: 100vh;
    padding: 20px;
    color: #e2e8f0;
}

/* Overview Hero Section */
.overview-hero {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 40px;
    border: 1px solid rgba(148, 163, 184, 0.1);
    position: relative;
    overflow: hidden;
}

.overview-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #10b981, #f59e0b);
    opacity: 0.8;
}

.hero-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.hero-main {
    flex: 1;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.language-flag {
    font-size: 3rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #cbd5e1;
    margin-bottom: 30px;
    font-weight: 500;
}

.hero-stats {
    display: flex;
    gap: 30px;
    align-items: center;
}

.hero-stat-card {
    background: rgba(15, 23, 42, 0.6);
    border: 2px solid rgba(59, 130, 246, 0.3);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    position: relative;
    min-width: 120px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #3b82f6;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: #94a3b8;
    font-weight: 500;
}

.progress-ring {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 15px;
    background: conic-gradient(from 0deg, #3b82f6 0deg, #10b981 var(--progress, 0deg), transparent var(--progress, 0deg));
    z-index: -1;
    opacity: 0.3;
}

.ring-fill {
    width: 100%;
    height: 100%;
    border-radius: 15px;
    background: rgba(15, 23, 42, 0.9);
}

.hero-stat-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: rgba(15, 23, 42, 0.4);
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.1);
}

.stat-icon {
    font-size: 2rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #3b82f6, #1e40af);
    border-radius: 12px;
    flex-shrink: 0;
}

.stat-info {
    text-align: left;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 2px;
}

.stat-text {
    font-size: 0.85rem;
    color: #94a3b8;
    font-weight: 500;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex-shrink: 0;
}

.hero-action-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 25px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    min-width: 160px;
    justify-content: center;
}

.hero-action-btn.primary {
    background: linear-gradient(135deg, #3b82f6, #1e40af);
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.hero-action-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.hero-action-btn.secondary {
    background: rgba(15, 23, 42, 0.6);
    color: #f1f5f9;
    border-color: rgba(148, 163, 184, 0.3);
}

.hero-action-btn.secondary:hover {
    background: rgba(15, 23, 42, 0.8);
    border-color: rgba(59, 130, 246, 0.5);
    transform: translateY(-2px);
}

.btn-icon {
    font-size: 1.2rem;
}

.btn-text {
    font-size: 1rem;
}

@media (max-width: 768px) {
    .overview-hero {
        padding: 25px;
    }
    
    .hero-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .hero-title {
        font-size: 2rem;
        text-align: center;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 20px;
        width: 100%;
    }
    
    .hero-stat-item {
        width: 100%;
        justify-content: center;
    }
    
    .hero-actions {
        flex-direction: row;
        width: 100%;
    }
    
    .hero-action-btn {
        flex: 1;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.header {
    text-align: center;
    color: #f7fafc;
    margin-bottom: 30px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background: linear-gradient(135deg, rgba(15, 15, 35, 0.95) 0%, rgba(26, 26, 46, 0.95) 50%, rgba(22, 33, 62, 0.95) 100%);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(79, 70, 229, 0.2);
    z-index: 100;
    transition: all 0.3s ease;
    padding: 20px;
    min-height: 120px;
}

.header.scrolled {
    min-height: 60px;
    padding: 10px 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.header.scrolled h1 {
    font-size: 25px;
    margin-bottom: 5px;
}

.header.scrolled .user-info-desktop {
    font-size: 0.8rem;
}

.header.scrolled .user-avatar {
	width: 40px;
    height: 40px;
    font-size: 19px;
    margin-top: -9px;
}

.header.scrolled .hamburger-menu {
	top: 10px;
}

body {
    padding-top: 140px;
}

body.scrolled {
    padding-top: 100px;
}

.hamburger-menu {
    position: absolute;
    left: 20px;
    top: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.hamburger-menu span {
    display: block;
    width: 25px;
    height: 3px;
    background: #f1f5f9;
    margin: 5px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.hamburger-menu:hover span {
    background: #a855f7;
}

.user-info-desktop {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 0.9rem;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: rgba(168, 85, 247, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    border: 2px solid #a855f7;
    cursor: pointer;
    transition: all 0.3s ease;
}

.user-avatar:hover {
    background: rgba(168, 85, 247, 0.4);
    transform: scale(1.05);
}

.user-avatar-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #a855f7;
    cursor: pointer;
    transition: all 0.3s ease;
}

.user-avatar-img:hover {
    transform: scale(1.05);
    border-color: rgba(168, 85, 247, 0.8);
}

/* User Dropdown Styles */
.user-dropdown {
    position: relative;
    display: inline-block;
}

.user-avatar-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.user-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid rgba(100, 116, 139, 0.3);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(20px);
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    margin-top: 8px;
}

.user-dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-header {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(100, 116, 139, 0.2);
}

.dropdown-user-name {
    color: #f1f5f9;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.dropdown-user-type {
    color: #94a3b8;
    font-size: 0.8rem;
}

.dropdown-divider {
    height: 1px;
    background: rgba(100, 116, 139, 0.2);
    margin: 0;
}

.dropdown-menu-items {
    padding: 8px 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #f1f5f9;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    background: none;
    width: 100%;
    font-size: 0.9rem;
}

.dropdown-item:hover {
    background: rgba(168, 85, 247, 0.1);
    color: #c084fc;
}

.dropdown-icon {
    margin-right: 12px;
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.dropdown-item.logout-item:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
}

.dropdown-item.login-item:hover {
    background: rgba(16, 185, 129, 0.1);
    color: #34d399;
}

.header-subtitle {
    transition: opacity 0.3s ease;
}

.header.scrolled .header-subtitle {
    display: none !important;
}

/* Top Navigation (Desktop Only) */
.top-nav-desktop {
    position: fixed;
    top: 120px;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.95) 100%);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(79, 70, 229, 0.2);
    z-index: 99;
    transition: all 0.3s ease;
    display: none; /* Hidden on mobile */
}

.top-nav-desktop.scrolled {
    top: 60px;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
}

.nav-left {
    flex: 0 0 auto;
}

.nav-center {
    flex: 1;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.nav-right {
    flex: 0 0 auto;
}

.current-language-display {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 20px;
    color: #f1f5f9;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
}

.current-language-display:hover {
    background: rgba(168, 85, 247, 0.2);
    border-color: rgba(168, 85, 247, 0.5);
    transform: translateY(-1px);
}

.language-arrow {
    font-size: 0.7rem;
    opacity: 0.7;
    transition: transform 0.3s ease;
}

.current-language-display:hover .language-arrow {
    transform: translateY(1px);
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    color: #cbd5e1;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
}

.nav-link:hover {
    color: #f1f5f9;
    background: rgba(168, 85, 247, 0.1);
    transform: translateY(-1px);
}

.nav-link.active {
    color: #c084fc;
    background: rgba(168, 85, 247, 0.15);
}


.nav-icon {
    font-size: 16px;
}

.nav-text {
    font-weight: 500;
}

.nav-link.admin-link {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.nav-link.admin-link:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
}

/* Show top nav only on desktop */
@media (min-width: 769px) {
    .top-nav-desktop {
        display: block;
    }
    
    /* Adjust body padding to account for top nav */
    body {
        padding-top: 180px;
    }
    
    body.scrolled {
        padding-top: 120px;
    }
}

/* Mobile Sidebar */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-sidebar {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100%;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    z-index: 1001;
    transition: left 0.3s ease;
    overflow-y: auto;
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.3);
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* Internet Explorer 10+ */
}

.mobile-sidebar::-webkit-scrollbar {
    display: none; /* WebKit */
}

.mobile-sidebar.active {
    left: 0;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid rgba(100, 116, 139, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-header h3 {
    color: #f1f5f9;
    margin: 0;
    font-size: 1.2rem;
}

.close-sidebar {
    background: none;
    border: none;
    color: #f1f5f9;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.close-sidebar:hover {
    background: rgba(100, 116, 139, 0.3);
}

.sidebar-content {
    display: flex;
    flex-direction: column;
    height: calc(100% - 80px);
}

.user-info {
    padding: 20px;
    border-bottom: 1px solid rgba(100, 116, 139, 0.2);
    display: flex;
    align-items: center;
}

.user-avatar {
    width: 50px;
    height: 50px;
    background: rgba(168, 85, 247, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-right: 15px;
    border: 2px solid #a855f7;
}

.user-details {
    flex: 1;
}

.user-name {
    color: #f1f5f9;
    font-weight: bold;
    margin-bottom: 2px;
}

.user-type {
    color: #94a3b8;
    font-size: 0.9rem;
}

.user-profile-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    width: 100%;
    padding: 0;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.user-profile-link:hover {
    background: rgba(168, 85, 247, 0.1);
    transform: translateX(2px);
}

.user-profile-link:hover .user-avatar {
    background: rgba(168, 85, 247, 0.3);
    border-color: #c084fc;
    transform: scale(1.05);
}

.user-profile-link:hover .user-name {
    color: #c084fc;
}

.sidebar-nav {
    flex: 1;
    padding: 20px 0;
}

.current-language-info {
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgb(63 80 117);
    border-top: 2px solid rgb(14 20 34);
    padding: 10px 20px 15px 20px;
}

.nav-item {
    display: block;
    padding: 15px 20px;
    color: #e2e8f0;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.nav-item:hover {
    background: rgba(168, 85, 247, 0.1);
    border-left-color: #a855f7;
    color: #f1f5f9;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid rgba(100, 116, 139, 0.2);
}

.login-btn, .logout-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #a855f7, #3b82f6);
    color: white;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    display: block;
    text-align: center;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-btn:hover, .logout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(168, 85, 247, 0.4);
}

/* Login Modal */
.login-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
}

.login-modal.active {
    display: flex;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-radius: 20px;
    width: 90%;
    max-width: 400px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 1;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-header {
    padding: 20px 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    color: #f1f5f9;
    margin: 0;
}

.close-modal {
    background: none;
    border: none;
    color: #f1f5f9;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.close-modal:hover {
    background: rgba(100, 116, 139, 0.3);
}

.modal-body {
    padding: 20px;
}

.modal-body p {
    color: #e2e8f0;
    text-align: center;
    margin-bottom: 20px;
}

.modal-login-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.modal-login-form input[type="text"],
.modal-login-form input[type="password"] {
    padding: 12px;
    border: 2px solid rgba(100, 116, 139, 0.3);
    border-radius: 8px;
    background: rgba(30, 41, 59, 0.8);
    color: #f1f5f9;
    font-size: 16px;
}

.modal-login-form input[type="submit"] {
    padding: 12px;
    background: linear-gradient(135deg, #a855f7, #3b82f6);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-login-form input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(168, 85, 247, 0.4);
}

.remember-me {
    display: flex !important;
    align-items: center;
    cursor: pointer;
    margin: 10px 0 !important;
    color: #e2e8f0;
}

.remember-me input[type="checkbox"] {
    display: none;
}

.remember-me .checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #64748b;
    border-radius: 4px;
    margin-right: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    background: rgba(15, 23, 42, 0.8);
}

.remember-me input[type="checkbox"]:checked + .checkmark {
    background: linear-gradient(135deg, #a855f7, #3b82f6);
    border-color: #a855f7;
}

.remember-me input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    color: white;
    font-size: 10px;
    font-weight: bold;
}

.header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 8px rgba(79, 70, 229, 0.5);
    background: linear-gradient(135deg, #a855f7, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.total-progress {
    background: rgba(30, 41, 59, 0.95);
    border: 1px solid rgba(79, 70, 229, 0.3);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 
                0 0 20px rgba(79, 70, 229, 0.1);
    text-align: center;
    backdrop-filter: blur(10px);
}

.total-progress h2 {
    color: #f1f5f9;
    margin-bottom: 15px;
}

.progress-circle {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    position: relative;
}

.circle-bg {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(
        #374151 0deg, 
        #374151 var(--progress-deg, 32.76deg), 
        #10b981 var(--progress-deg, 32.76deg)
    );
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
}

.circle-bg::before {
    content: '';
    width: 80%;
    height: 80%;
    background: #1e293b;
    border-radius: 50%;
    position: absolute;
}

.circle-text {
    position: relative;
    z-index: 1;
    font-size: 1.5rem;
    font-weight: bold;
    color: #f1f5f9;
}

.section {
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(79, 70, 229, 0.2);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3),
                0 0 15px rgba(79, 70, 229, 0.05);
    backdrop-filter: blur(15px);
}

.section h2 {
    color: #f1f5f9;
    margin-bottom: 20px;
    font-size: 1.5rem;
    border-bottom: 3px solid transparent;
    background: linear-gradient(90deg, #a855f7, #3b82f6) bottom;
    background-size: 100% 3px;
    background-repeat: no-repeat;
    padding-bottom: 10px;
}

.vocab-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
}

.vocab-item {
    background: rgba(51, 65, 85, 0.6);
    border-radius: 15px;
    padding: 15px;
    border-left: 5px solid #6366f1;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.vocab-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.vocab-item.active {
    border-left-color: #10b981;
    background: rgba(16, 185, 129, 0.1);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
}

.vocab-item.next {
    border-left-color: #f59e0b;
    background: rgba(245, 158, 11, 0.1);
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.2);
}

.vocab-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.status-badge {
    padding: 6px 14px;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-active {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.status-next {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

.status-queued {
    background: linear-gradient(135deg, #6b7280, #4b5563);
    color: white;
    box-shadow: 0 4px 15px rgba(107, 114, 128, 0.4);
}

.progress-bar {
    width: 100%;
    height: 10px;
    background: rgba(55, 65, 81, 0.8);
    border-radius: 5px;
    overflow: hidden;
    margin: 10px 0;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #a855f7, #10b981, #3b82f6);
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
    transition: width 0.3s ease;
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.5);
}

.study-progress-bar {
	height: 100%; 
	background: linear-gradient(90deg, #a855f7, #10b981, #3b82f6); 
	width: 0%; 
	transition: width 0.3s ease;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Grammar Practice Exercises Section */
.grammar-practice-section {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(16, 185, 129, 0.1) 100%);
    border: 2px solid rgba(59, 130, 246, 0.2);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.grammar-practice-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.4);
}

.practice-exercises-btn {
    font-size: 1.1rem;
    padding: 15px 30px;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #3b82f6, #10b981);
    border: none;
    border-radius: 10px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.practice-exercises-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
    background: linear-gradient(135deg, #2563eb, #059669);
}

.practice-description {
    color: #94a3b8;
    font-size: 0.95rem;
    margin: 0;
    font-style: italic;
}

.grammar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.grammar-case {
    background: rgba(51, 65, 85, 0.6);
    border-radius: 15px;
    padding: 15px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.grammar-case:hover {
    transform: translateY(-2px);
}

.grammar-case.mastered {
    background: rgba(16, 185, 129, 0.2);
    border: 2px solid #10b981;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
}

.grammar-case.learning {
    background: rgba(245, 158, 11, 0.2);
    border: 2px solid #f59e0b;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.3);
}

.grammar-case.pending {
    background: rgba(75, 85, 99, 0.3);
    border: 2px solid #4b5563;
}

.case-name {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 5px;
    color: #f1f5f9;
}

.case-complexity {
    font-size: 0.9rem;
    color: #94a3b8;
    margin-bottom: 10px;
}

.reading-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: rgba(51, 65, 85, 0.5);
    border-radius: 15px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.reading-item:hover {
    background: rgba(51, 65, 85, 0.7);
    transform: translateX(5px);
}

.reading-info {
    flex: 1;
    color: #f1f5f9;
}

.reading-bars {
    flex: 2;
    margin: 0 20px;
}

.daily-wins {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.daily-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background: rgba(51, 65, 85, 0.5);
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.daily-item:hover {
    background: rgba(51, 65, 85, 0.8);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.daily-item.completed {
    background: rgba(16, 185, 129, 0.2);
    border: 2px solid #10b981;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
}

.checkbox {
    width: 28px;
    height: 28px;
    border: 2px solid #64748b;
    border-radius: 8px;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(30, 41, 59, 0.8);
}

.checkbox:hover {
    border-color: #a855f7;
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.3);
}

.checkbox.checked {
    background: linear-gradient(135deg, #10b981, #059669);
    border-color: #10b981;
    color: white;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.5);
}

/* Daily Goals Controls */
.daily-goals-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.daily-goals-controls .control-btn {
    padding: 8px 16px;
    background: rgba(51, 65, 85, 0.5);
    border: 1px solid rgba(79, 70, 229, 0.3);
    border-radius: 8px;
    color: #e2e8f0;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.daily-goals-controls .control-btn:hover {
    background: rgba(79, 70, 229, 0.2);
    border-color: #4f46e5;
}

.daily-goals-controls .control-btn.active {
    background: linear-gradient(135deg, #a855f7, #3b82f6);
    border-color: #a855f7;
    color: white;
}

.goal-text-input {
    width: 100%;
    padding: 5px 8px;
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(79, 70, 229, 0.3);
    border-radius: 6px;
    color: #e2e8f0;
    font-size: 0.9rem;
}

.goal-text-input:focus {
    outline: none;
    border-color: #a855f7;
    box-shadow: 0 0 8px rgba(168, 85, 247, 0.3);
}

.goal-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    width: 100%;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(79, 70, 229, 0.2);
}

.goal-card.edit-mode {
    min-height: auto;
    padding-bottom: 20px;
}



.save-goal-btn, .delete-goal-btn {
    padding: 4px 8px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.save-goal-btn {
    background: #10b981;
    color: white;
}

.save-goal-btn:hover {
    background: #059669;
}

.delete-goal-btn {
    background: #ef4444;
    color: white;
}

.delete-goal-btn:hover {
    background: #dc2626;
}

.edit-only {
    display: none;
}

/* Vocabulary Edit Mode */
.vocab-grid.edit-mode .edit-only {
    display: block;
}

.vocab-grid.edit-mode .vocab-range-normal {
    display: none;
}

.stage-progress-input {
    width: 80px;
    padding: 4px 8px;
    border: 1px solid rgba(100, 116, 139, 0.3);
    border-radius: 4px;
    background: rgba(30, 41, 59, 0.8);
    color: #f1f5f9;
    font-size: 0.85rem;
    text-align: right;
}

.stage-progress-input:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.1);
}

.vocab-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.vocab-header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.vocab-edit-btn {
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: #6366f1;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    opacity: 0.7;
}

.vocab-edit-btn:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: #6366f1;
    opacity: 1;
    transform: translateY(-1px);
}

/* CEFR Badge Styling */
.cefr-badge {
    display: inline-block;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 8px;
    letter-spacing: 0.5px;
    margin-left: 8px;
    box-shadow: 0 2px 4px rgba(99, 102, 241, 0.3);
}

/* Enhanced vocab grid for 9 stages */
.vocab-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
    max-width: none;
}

@media (min-width: 1200px) {
    .vocab-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .vocab-grid {
        grid-template-columns: 1fr;
    }
}

/* Next Steps / Learning Path Redesign */
.next-steps-container {
    background: rgba(51, 65, 85, 0.4);
    border-radius: 20px;
    padding: 25px;
    margin: 20px 0;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(100, 116, 139, 0.2);
}

.next-steps-header {
    text-align: center;
    margin-bottom: 25px;
}

.next-steps-header h3 {
    color: #f1f5f9;
    font-size: 1.4rem;
    margin-bottom: 8px;
    font-weight: 700;
}

.next-steps-subtitle {
    color: #94a3b8;
    font-size: 0.9rem;
    margin: 0;
    font-style: italic;
}

.learning-path-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.learning-path-card {
    background: rgba(30, 41, 59, 0.8);
    border-radius: 15px;
    padding: 20px;
    border-left: 4px solid #6366f1;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.learning-path-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.5), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.learning-path-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.learning-path-card:hover::before {
    opacity: 1;
}

.learning-path-card.urgency-high {
    border-left-color: #ef4444;
    background: rgba(239, 68, 68, 0.05);
}

.learning-path-card.urgency-medium {
    border-left-color: #f59e0b;
    background: rgba(245, 158, 11, 0.05);
}

.learning-path-card.urgency-low {
    border-left-color: #10b981;
    background: rgba(16, 185, 129, 0.05);
}

.path-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.path-icon {
    font-size: 2rem;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 12px;
}

.path-info {
    flex: 1;
}

.path-info h4 {
    color: #f1f5f9;
    font-size: 1.1rem;
    margin: 0 0 8px 0;
    font-weight: 600;
}

.progress-mini-bar {
    width: 100%;
    height: 6px;
    background: rgba(55, 65, 81, 0.8);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 5px;
}

.progress-mini-fill {
    height: 100%;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.progress-percentage {
    color: #94a3b8;
    font-size: 0.85rem;
    font-weight: 500;
}

.path-recommendations ul {
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
}

.path-recommendations li {
    color: #cbd5e1;
    font-size: 0.9rem;
    margin-bottom: 6px;
    padding-left: 20px;
    position: relative;
    line-height: 1.4;
}

.path-recommendations li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #6366f1;
    font-weight: bold;
}

.path-action {
    margin-top: 15px;
}

.path-action-btn {
    display: block;
    width: 100%;
    padding: 10px 15px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
}

.path-action-btn:hover {
    background: linear-gradient(135deg, #5855eb, #7c3aed);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.celebration-card {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(6, 182, 212, 0.1));
    border-left-color: #10b981;
    text-align: center;
}

.celebration-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.celebration-icon {
    font-size: 3rem;
    margin-bottom: 10px;
}

.celebration-content h4 {
    color: #10b981;
    font-size: 1.3rem;
    margin: 0;
}

.celebration-content p {
    color: #cbd5e1;
    margin: 0 0 15px 0;
}

.celebration-btn {
    background: linear-gradient(135deg, #10b981, #06b6d4);
}

.celebration-btn:hover {
    background: linear-gradient(135deg, #059669, #0891b2);
}

.learning-streak-info {
    background: rgba(16, 185, 129, 0.1);
    border-radius: 12px;
    padding: 15px;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.streak-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.streak-icon {
    font-size: 1.5rem;
}

.streak-text {
    color: #f1f5f9;
    font-weight: 500;
    flex: 1;
    margin-left: 10px;
}

.streak-count {
    color: #10b981;
    font-weight: 700;
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .learning-path-grid {
        grid-template-columns: 1fr;
    }
    
    .next-steps-container {
        padding: 20px;
        margin: 15px 0;
    }
    
    .path-card-header {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .path-icon {
        margin-right: 0;
    }
}

/* NEW TIMELINE STRUCTURE - Complete Rewrite */
.speaking-section-wrapper {
    position: relative;
    display: flex;
    gap: 20px;
}

/* Timeline track container - holds bar and circles */
.timeline-track {
    position: relative;
    width: 40px;
    flex-shrink: 0;
}

/* Timeline background bar */
.timeline-bar-bg {
    position: absolute;
    left: 16px;
    top: 20px;
    bottom: 20px;
    width: 8px;
    background: rgba(99, 102, 241, 0.2);
    border-radius: 4px;
}

/* Timeline progress fill */
.timeline-bar-fill {
    position: absolute;
    left: 16px;
    top: 20px;
    width: 8px;
    background: linear-gradient(to bottom, #a855f7, #3b82f6);
    border-radius: 4px;
    transition: height 0.8s ease;
}

/* Timeline circles - 40px diameter for proper calculations */
.timeline-circle {
    position: absolute !important;
    left: 0px;
    width: 40px;
    height: 40px;
    background: #3f4989;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    color: #f1f5f9;
    z-index: 10;
}

/* Ensure number text is always on top */
.timeline-circle::after {
    content: attr(data-number);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 15;
    color: #f1f5f9;
    font-size: 1rem;
    font-weight: 700;
    pointer-events: none;
}

/* Position circles to align with speaking items */
.timeline-circle:nth-child(3) { top: 20px; }
.timeline-circle:nth-child(4) { top: 357px; }
.timeline-circle:nth-child(5) { top: 679px; }
.timeline-circle:nth-child(6) { top: 1005px; }
.timeline-circle:nth-child(7) { top: 1330px; }

/* Completed circles - dynamic gradient based on timeline progress */
.timeline-circle.completed {
    background: linear-gradient(to bottom, #a855f7, #3b82f6);
    background-size: 40px calc(1670px * var(--timeline-progress, 0.3)); /* Dynamic height based on new timeline progress */
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.6);
    animation: pulse-gradient 2s infinite;
}

/* Position-specific gradient for each circle to match new positions */
.timeline-circle.completed:nth-child(3) { background-position: 0 -20px; }
.timeline-circle.completed:nth-child(4) { background-position: 0 -357px; }
.timeline-circle.completed:nth-child(5) { background-position: 0 -679px; }
.timeline-circle.completed:nth-child(6) { background-position: 0 -1005px; }
.timeline-circle.completed:nth-child(7) { background-position: 0 -1330px; }

/* Active circles - precise partial fill based on timeline progress and circle position */
.timeline-circle.active {
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.4);
    animation: pulse-gradient 2s infinite;
}

/* Precise circle fill using PHP-calculated values */
.timeline-circle.active:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    /* Height calculated precisely in PHP and injected as --fill-height */
    height: var(--fill-height, 0px);
    background: linear-gradient(to bottom, #a855f7, #3b82f6);
    background-size: 40px 1670px; /* Full timeline height for gradient alignment */
    /* Background position calculated precisely in PHP and injected as --bg-position-y */
    background-position: 0 var(--bg-position-y, 0px);
    border-radius: 20px 20px 0 0;
    z-index: 11;
}
/* this is about right at 30%
.timeline-circle.active:nth-child(3):before { background-position: 0 -20px; }
.timeline-circle.active:nth-child(4):before { background-position: 0 -492px; }
.timeline-circle.active:nth-child(5):before { background-position: 0 -770px; }
.timeline-circle.active:nth-child(6):before { background-position: 0 -1050px; }
.timeline-circle.active:nth-child(7):before { background-position: 0 -1330px; }
/* this is about right at 100%
.timeline-circle.active:nth-child(3):before { background-position: 0 -20px; }
.timeline-circle.active:nth-child(4):before { background-position: 0 -129px; }
.timeline-circle.active:nth-child(5):before { background-position: 0 -305px; }
.timeline-circle.active:nth-child(6):before { background-position: 0 -471px; }
.timeline-circle.active:nth-child(7):before { background-position: 0 -637px; }
*/

/* New Confidence Point System Styling */
.confidence-indicator {
    margin-top: 8px;
}

.confidence-bar {
    width: 100%;
    height: 8px;
    background: rgba(30, 41, 59, 0.8);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.confidence-fill {
    height: 100%;
    transition: width 0.3s ease;
    border-radius: 4px;
}

.confidence-scale {
    font-size: 0.7rem;
    color: #94a3b8;
    text-align: center;
    margin-top: 4px;
}

.metric-sublabel {
    font-size: 0.8rem;
    color: #94a3b8;
    margin-top: 4px;
}

.metric-label small {
    font-weight: normal;
    color: #94a3b8;
}

/* Milestone Settings Panel */
.milestone-settings-panel {
    background: rgba(30, 41, 59, 0.8);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    border: 1px solid rgba(100, 116, 139, 0.2);
}

.milestone-settings-panel h3 {
    color: #f1f5f9;
    margin-bottom: 20px;
    text-align: center;
}

.milestone-settings-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.milestone-setting-row {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px;
    background: rgba(51, 65, 85, 0.5);
    border-radius: 8px;
}

.milestone-setting-label {
    color: #f1f5f9;
    font-weight: 600;
    min-width: 200px;
}

.milestone-setting-inputs {
    display: flex;
    gap: 15px;
    flex: 1;
}

.milestone-setting-inputs label {
    color: #94a3b8;
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.milestone-input {
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid rgba(100, 116, 139, 0.3);
    background: rgba(30, 41, 59, 0.8);
    color: #f1f5f9;
    width: 80px;
}

.milestone-settings-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

.cancel-btn {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #f87171;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cancel-btn:hover {
    background: rgba(239, 68, 68, 0.3);
    transform: translateY(-1px);
}

/* Speaking timeline items container */
.speaking-timeline {
    flex: 1;
    position: relative;
}

.speaking-item {
    position: relative;
    background: rgba(30, 41, 59, 0.8);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    border: 1px solid rgba(100, 116, 139, 0.2);
    z-index: 1; /* Lower than circles to ensure circles appear on top */
}

/* Hide the old pseudo-element circles - using new .milestone-circle instead */
.speaking-item::before {
    display: none;
}

/* Remove the after element approach */

.speaking-item.completed::before {
    background: linear-gradient(to bottom, #a855f7, #3b82f6); /* Match timeline gradient */
    border-color: #a855f7;
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.6);
    animation: pulse-gradient 2s infinite; /* Pulsing animation for completed/filled */
}

.speaking-item.active::before {
    background: linear-gradient(to bottom, #a855f7, #3b82f6); /* Match timeline gradient */
    border-color: #a855f7;
    animation: pulse-gradient 2s infinite; /* Pulsing animation for active */
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.6);
}

.speaking-item:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Keep circle in place on hover by adjusting position */
.speaking-item:hover::before {
    left: -61px; /* Original -56px minus 5px to counter parent movement */
}

/* Old milestone-circle styles removed - using new timeline-circle */

.speaking-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.speaking-item-left {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.speaking-icon {
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 12px;
    border: 2px solid rgba(99, 102, 241, 0.2);
}

.speaking-content {
    flex: 1;
}

.speaking-item-title {
    color: #f1f5f9;
    font-size: 1.2rem;
    margin: 0 0 5px 0;
    font-weight: 600;
}

.speaking-item-description {
    color: #94a3b8;
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.4;
}

.speaking-item-right {
    display: flex;
    align-items: center;
}

.milestone-progress-ring {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.progress-ring {
    transform: rotate(-90deg);
    transition: all 0.3s ease;
}

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

.progress-percentage {
    position: absolute;
    font-size: 0.75rem;
    font-weight: 700;
    color: #10b981;
}

.speaking-metrics-horizontal {
    display: flex;
    gap: 20px;
    margin: 15px 0;
    padding: 15px;
    background: rgba(51, 65, 85, 0.3);
    border-radius: 10px;
}

.metric-column {
    flex: 1;
    text-align: center;
}

.metric-label {
    color: #94a3b8;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 4px;
}

.metric-value {
    color: #f1f5f9;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 6px;
}

.metric-bar {
    width: 100%;
    height: 8px;
    background: rgba(55, 65, 81, 0.8);
    border-radius: 2px;
    overflow: hidden;
}

.metric-fill {
    height: 100%;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    border-radius: 2px;
    transition: width 0.8s ease;
}

.speaking-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid rgba(100, 116, 139, 0.2);
}

.total-time {
    color: #94a3b8;
    font-size: 0.85rem;
    font-weight: 500;
}

.fluency-level {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.speaking-item.completed .fluency-level {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.speaking-item.active .fluency-level {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.speaking-item.pending .fluency-level {
    background: linear-gradient(135deg, #6b7280, #4b5563);
    color: white;
}

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

/* Pulsing animation for gradient-filled circles */
@keyframes pulse-gradient {
    0% {
        transform: scale(1);
        box-shadow: 0 0 20px rgba(168, 85, 247, 0.6);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 0 30px rgba(168, 85, 247, 0.8);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 20px rgba(168, 85, 247, 0.6);
    }
}

@media (max-width: 768px) {
    .speaking-timeline {
        padding-left: 35px;
    }
    
    .speaking-timeline::before,
    .speaking-timeline::after {
        left: 15px;
    }
    
    .speaking-item::before {
        left: -27px;
        width: 20px;
        height: 20px;
        font-size: 0.7rem;
    }
    
    .speaking-item-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .speaking-item-right {
        align-self: flex-end;
    }
    
    .speaking-metrics-horizontal {
        flex-direction: column;
        gap: 12px;
    }
    
    .metric-column {
        text-align: left;
    }
    
    .speaking-item-footer {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

.speaking-timeline::before {
    content: '';
    position: absolute;
    left: 40px;
    top: 0;
    bottom: 0;
    width: 10px;
    background: rgba(55, 65, 81, 0.8);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.speaking-item {
    position: relative;
    padding: 15px 20px;
    background: rgba(51, 65, 85, 0.5);
    border-radius: 15px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.speaking-item:hover {
    background: rgba(51, 65, 85, 0.7);
}

.update-btn {
    background: linear-gradient(135deg, #a855f7, #3b82f6);
    color: white;
    border: none;
    padding: 12px 24px;
	margin-top: 15px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(168, 85, 247, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.update-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(168, 85, 247, 0.4);
    background: linear-gradient(135deg, #9333ea, #2563eb);
}

.update-btn:active {
    transform: translateY(-1px);
}

.input-group {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.input-group input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid rgba(100, 116, 139, 0.3);
    border-radius: 10px;
    background: rgba(30, 41, 59, 0.8);
    color: #f1f5f9;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.input-group input:focus {
    outline: none;
    border-color: #a855f7;
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.3);
}

.input-group input::placeholder {
    color: #94a3b8;
}

@media (max-width: 768px) {
    .header h1 {
        font-size: 2rem;
    }
    
    .user-info-desktop {
        display: none;
    }
    
    .vocab-grid,
    .grammar-grid,
    .daily-wins {
        grid-template-columns: 1fr;
    }
    
    .reading-item {
        flex-direction: column;
        text-align: center;
    }
    
    .reading-bars {
        width: 100%;
        margin: 10px 0;
    }
    
    .input-group {
        flex-direction: column;
    }
    
    .update-btn {
        width: 100%;
    }
}

@media (min-width: 769px) {
    .user-info-desktop {
        display: block;
    }
}

/* Settings Page Styles */
.settings-page {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.settings-page h1 {
    color: #f1f5f9;
    text-align: center;
    margin-bottom: 30px;
    font-size: 2rem;
    background: linear-gradient(135deg, #a855f7, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.settings-section {
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(79, 70, 229, 0.2);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    backdrop-filter: blur(15px);
}

.settings-section h2 {
    color: #f1f5f9;
    margin-bottom: 15px;
    font-size: 1.2rem;
    border-bottom: 2px solid #a855f7;
    padding-bottom: 5px;
}

.setting-item {
    margin-bottom: 15px;
}

.setting-item label {
    display: block;
    color: #f1f5f9;
    margin-bottom: 5px;
    font-weight: 500;
}

.setting-item input[type="text"],
.setting-item select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid rgba(100, 116, 139, 0.3);
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.8);
    color: #f1f5f9;
    font-size: 16px;
    transition: all 0.3s ease;
}

.setting-item input[type="text"]:focus,
.setting-item select:focus {
    outline: none;
    border-color: #a855f7;
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.3);
}

.setting-item small {
    display: block;
    color: #94a3b8;
    font-size: 0.9rem;
    margin-top: 5px;
}

.checkbox-label {
    display: flex !important;
    align-items: center;
    cursor: pointer;
    margin-bottom: 0 !important;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkbox-label .checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #64748b;
    border-radius: 6px;
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    background: rgba(15, 23, 42, 0.8);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: linear-gradient(135deg, #a855f7, #3b82f6);
    border-color: #a855f7;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.settings-actions {
    display: flex;
    gap: 15px;
    margin: 30px 0;
}

.save-btn, .reset-btn, .export-btn, .danger-btn {
    flex: 1;
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
}

.save-btn {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.save-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

.reset-btn {
    background: linear-gradient(135deg, #6b7280, #4b5563);
    color: white;
}

.reset-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(107, 114, 128, 0.4);
}

.export-btn {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    width: 100%;
    margin-bottom: 10px;
}

.export-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.danger-btn {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    width: 100%;
}

.danger-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.4);
}

@media (max-width: 768px) {
    .settings-actions {
        flex-direction: column;
    }
}

/* Words Grid Styles - Mobile-First Performance Optimized */
.words-grid-container {
    margin: 20px 0;
}

/* Scrollable Container */
.words-grid-scroll-container {
    max-height: 600px;
    overflow-y: auto;
    border: 1px solid rgba(100, 116, 139, 0.3);
    border-radius: 12px;
    padding: 16px;
    background: rgba(15, 23, 42, 0.3);
}

/* Custom scrollbar */
.words-grid-scroll-container::-webkit-scrollbar {
    width: 8px;
}

.words-grid-scroll-container::-webkit-scrollbar-track {
    background: rgba(71, 85, 105, 0.3);
    border-radius: 4px;
}

.words-grid-scroll-container::-webkit-scrollbar-thumb {
    background: rgba(100, 116, 139, 0.6);
    border-radius: 4px;
}

.words-grid-scroll-container::-webkit-scrollbar-thumb:hover {
    background: rgba(100, 116, 139, 0.8);
}

.words-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.control-btn {
    background: rgba(51, 65, 85, 0.8);
    color: #e2e8f0;
    border: 1px solid rgba(100, 116, 139, 0.5);
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.control-btn:hover,
.control-btn:active {
    background: rgba(79, 70, 229, 0.8);
    border-color: #4f46e5;
    transform: translateY(-1px);
}

.control-btn.active {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border-color: #ef4444;
    color: white;
}

/* Study Goal Button in Header */
#study-section-title .study-goal-btn {
    font-size: 0.8rem;
    padding: 5px 10px;
    margin-left: 10px;
    vertical-align: middle;
}

#study-section-title .study-goal-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3);
}

/* Points Display */
.points-display {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
    padding: 8px 12px;
    border-radius: 8px;
    color: #93c5fd;
    font-weight: 600;
    font-size: 0.9rem;
    margin-left: auto; /* Push to right side */
}

.points-icon {
    font-size: 1rem;
    color: #fbbf24;
}

.points-label {
    font-size: 0.8rem;
    opacity: 0.8;
}

.words-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
    margin: 20px 0;
}

.word-card {
    background: #6b7280; /* Default grey */
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    position: relative;
    border: none; /* Remove thick borders */
    min-height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.word-card:active {
    transform: scale(0.98);
}

.word-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

/* Mastery-based coloring - Darker colors for better theme match */
.word-card {
    background: #374151; /* Default unselected state - slightly lighter grey */
}

.word-card.mastery-hard,
.word-card.mastery-good {
    background: #4b5563; /* Darker grey for hard/good */
}

.word-card.mastery-easy {
    background: #059669; /* Darker green for easy (mastered) */
}

.word-main {
    font-size: 1.3rem;
    font-weight: bold;
    color: white;
    text-align: center;
    margin-bottom: 8px;
    line-height: 1.2;
}

.word-secondary {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    font-style: italic;
    margin-bottom: 8px;
    line-height: 1.2;
}

.word-date {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    text-align: right;
    margin-top: auto;
    display: none; /* Hidden by default */
}

.mastery-buttons {
    display: flex;
    gap: 6px;
    margin-top: 12px;
    justify-content: center;
}

.mastery-btn {
    flex: 1;
    padding: 6px 8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.8rem;
    transition: all 0.1s ease; /* Super fast for mobile */
    background: rgba(255, 255, 255, 0.1);
    color: white;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.mastery-btn:active {
    transform: scale(0.95);
}

.mastery-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Active state styling for current mastery level with colored buttons */
.word-card.mastery-hard .mastery-btn.hard {
    background: #ef4444; /* Red for hard */
    color: white;
    border-color: #ef4444;
    font-weight: bold;
}

.word-card.mastery-good .mastery-btn.good {
    background: #3b82f6; /* Blue for good */
    color: white;
    border-color: #3b82f6;
    font-weight: bold;
}

.word-card.mastery-easy .mastery-btn.easy {
    background: #12d195; /* green for easy */
    color: white;
    border-color: #12d195;
    font-weight: bold;
}

/* Word card mini progress bars */
.word-progress-container {
    margin-top: 8px;
    width: 100%;
}

.word-mini-progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(55, 65, 81, 0.8);
    border-radius: 2px;
    overflow: hidden;
}

.word-mini-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #3b82f6);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.word-mini-progress-line {
    width: 100%;
    height: 2px;
    background: #5c6d8a;
    margin-top: 1px;
    border-radius: 1px;
}

.word-actions {
    display: none; /* Hidden by default */
    gap: 6px;
    margin-top: 10px;
    justify-content: center;
}

.action-btn {
    padding: 5px 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: bold;
    transition: all 0.1s ease;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.edit-btn {
    background: #3b82f6;
    color: white;
}

.delete-btn {
    background: #ef4444;
    color: white;
}

.action-btn:active {
    transform: scale(0.95);
}

.action-btn:hover {
    opacity: 0.9;
}

/* Edit mode specific styles */
.words-grid.edit-mode .edit-only {
    display: block !important;
}

.words-grid.edit-mode .word-actions {
    display: flex !important;
}

.words-grid.edit-mode .word-date {
    display: block !important;
}

/* Hide easy words when hide-known is active - more specific targeting */
.words-grid.hide-known .word-card.mastery-easy {
    display: none !important;
}

/* REMOVED: Don't hide 'good' level words - only hide 'easy' words
.words-grid.hide-known .word-card.mastery-good {
    display: none !important;
}
*/

/* Show all translations mode - show secondary text always (Priority 3) */
.words-grid.show-all-translations .word-secondary {
    display: block !important;
}

/* Swapped words mode - native language first, new language second */
.words-grid.swapped .word-card {
    /* Swap the content via JavaScript, not CSS hiding */
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 20px 0;
}

.page-btn {
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    background: rgba(51, 65, 85, 0.8);
    color: white;
    cursor: pointer;
    transition: all 0.15s ease;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.page-btn:hover,
.page-btn.active {
    background: #a855f7;
    transform: translateY(-1px);
}

.page-btn:active {
    transform: scale(0.95);
}

.no-words {
    text-align: center;
    color: #94a3b8;
    padding: 40px;
    font-size: 1.1rem;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .words-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 10px;
    }
    
    .word-card {
        padding: 14px;
        min-height: 90px;
    }
    
    .word-main {
        font-size: 1.2rem;
    }
    
    .control-btn {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
}

/* Footer Styles */
.footer {
    margin-top: 60px;
    padding: 50px 0 25px;
    border-top: 1px solid rgba(79, 70, 229, 0.15);
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.9));
    backdrop-filter: blur(12px);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(79, 70, 229, 0.3), transparent);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
    margin-bottom: 35px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.footer-brand {
    text-align: left;
    padding-right: 20px;
}

.footer-logo {
    color: #f1f5f9;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 0 12px 0;
    background: linear-gradient(135deg, #a855f7, #3b82f6, #10b981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.footer-tagline {
    color: #94a3b8;
    margin: 0;
    font-size: 1rem;
    line-height: 1.5;
    font-weight: 400;
}

.footer-nav {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.footer-section {
    background: rgba(30, 41, 59, 0.3);
    border-radius: 12px;
    padding: 24px;
    border: 1px solid rgba(100, 116, 139, 0.1);
    transition: all 0.3s ease;
}

.footer-section:hover {
    background: rgba(30, 41, 59, 0.5);
    border-color: rgba(59, 130, 246, 0.2);
    transform: translateY(-2px);
}

.footer-section h4 {
    color: #e2e8f0;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 20px 0;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-section h4::before {
    content: '';
    width: 3px;
    height: 18px;
    background: linear-gradient(135deg, #a855f7, #3b82f6);
    border-radius: 2px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    background: rgba(100, 116, 139, 0.05);
    border: 1px solid transparent;
}

.footer-links a:hover {
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.2);
    transform: translateX(6px);
}

.footer-links a i {
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-links a:hover i {
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid rgba(148, 163, 184, 0.08);
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

.footer-bottom p {
    color: #64748b;
    margin: 0;
    font-size: 0.9rem;
    font-weight: 500;
}

.footer-bottom i.fa-heart {
    color: #ef4444;
    animation: heartbeat 2s infinite;
    margin: 0 4px;
}

@keyframes heartbeat {
    0%, 50%, 100% { transform: scale(1); }
    25%, 75% { transform: scale(1.1); }
}

@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 35px;
        text-align: center;
    }
    
    .footer-brand {
        text-align: center;
        padding-right: 0;
        margin-bottom: 10px;
    }
    
    .footer-nav {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .footer {
        margin-top: 40px;
        padding: 35px 0 20px;
    }
    
    .footer-content {
        gap: 25px;
        padding: 0 15px;
    }
    
    .footer-section {
        padding: 20px;
    }
    
    .footer-bottom {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .footer-logo {
        font-size: 1.6rem;
    }
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    position: relative;
    animation: modalSlideIn 0.2s ease;
    overflow: hidden;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-header {
    padding: 20px 20px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(100, 116, 139, 0.2);
}

.modal-header h3 {
    color: #f1f5f9;
    margin: 0;
    font-size: 1.2rem;
}

.modal-close {
    background: none;
    border: none;
    color: #f1f5f9;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.modal-close:hover {
    background: rgba(100, 116, 139, 0.3);
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.modal-form input,
.modal-form textarea {
    padding: 12px 16px;
    border: 2px solid rgba(100, 116, 139, 0.3);
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.8);
    color: #f1f5f9;
    font-size: 16px;
    transition: border-color 0.2s ease;
}

.modal-form input:focus,
.modal-form textarea:focus {
    outline: none;
    border-color: #a855f7;
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.3);
}

.modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.modal-btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.modal-btn-primary {
    background: linear-gradient(135deg, #a855f7, #3b82f6);
    color: white;
}

.modal-btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

.modal-btn-secondary {
    background: rgba(100, 116, 139, 0.5);
    color: #e2e8f0;
}

.modal-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.modal-btn:active {
    transform: scale(0.98);
}

.footer p {
    color: #94a3b8;
    margin: 0;
}

.footer a {
    color: #a855f7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #3b82f6;
}

.settings-page h1 {
    color: #f1f5f9;
    text-align: center;
    margin-bottom: 30px;
    font-size: 2rem;
    background: linear-gradient(135deg, #a855f7, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.settings-section {
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(79, 70, 229, 0.2);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    backdrop-filter: blur(15px);
}

.settings-section h2 {
    color: #f1f5f9;
    margin-bottom: 15px;
    font-size: 1.2rem;
    border-bottom: 2px solid #a855f7;
    padding-bottom: 5px;
}

.setting-item {
    margin-bottom: 15px;
}

.setting-item label {
    display: block;
    color: #f1f5f9;
    margin-bottom: 5px;
    font-weight: 500;
}

.setting-item input[type="text"],
.setting-item select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid rgba(100, 116, 139, 0.3);
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.8);
    color: #f1f5f9;
    font-size: 16px;
    transition: all 0.3s ease;
}

.setting-item input[type="text"]:focus,
.setting-item select:focus {
    outline: none;
    border-color: #a855f7;
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.3);
}

.setting-item small {
    display: block;
    color: #94a3b8;
    font-size: 0.9rem;
    margin-top: 5px;
}

.checkbox-label {
    display: flex !important;
    align-items: center;
    cursor: pointer;
    margin-bottom: 0 !important;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkbox-label .checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #64748b;
    border-radius: 6px;
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    background: rgba(15, 23, 42, 0.8);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: linear-gradient(135deg, #a855f7, #3b82f6);
    border-color: #a855f7;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.settings-actions {
    display: flex;
    gap: 15px;
    margin: 30px 0;
}

.save-btn, .reset-btn, .export-btn, .danger-btn {
    flex: 1;
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
}

.save-btn {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.save-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

.reset-btn {
    background: linear-gradient(135deg, #6b7280, #4b5563);
    color: white;
}

.reset-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(107, 114, 128, 0.4);
}

.export-btn {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    width: 100%;
    margin-bottom: 10px;
}

.export-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.danger-btn {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    width: 100%;
}

.danger-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.4);
}

@media (max-width: 768px) {
    .settings-actions {
        flex-direction: column;
    }
}

/* Missing modal styles for word edit/delete */
.delete-word-info {
    background: rgba(51, 65, 85, 0.5);
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
    text-align: center;
}

.delete-word-info strong {
    color: #f1f5f9;
    font-size: 1.1rem;
}

.delete-word-info em {
    color: #94a3b8;
    font-size: 0.9rem;
}

.cancel-btn {
    background: rgba(100, 116, 139, 0.5);
    color: #e2e8f0;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s ease;
}

.cancel-btn:hover {
    background: rgba(100, 116, 139, 0.7);
}

.delete-btn {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s ease;
}

.delete-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(239, 68, 68, 0.4);
}

/* Comprehension Entries Grid Styles */
.reading-entries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.reading-entry-card {
    background: rgba(51, 65, 85, 0.7);
    border: 1px solid rgba(100, 116, 139, 0.3);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    position: relative;
    backdrop-filter: blur(10px);
}

.reading-entry-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    border-color: rgba(168, 85, 247, 0.5);
}

.entry-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.entry-type {
    font-size: 0.9rem;
    color: #a855f7;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.entry-actions {
    display: flex;
    gap: 8px;
}

.entry-action-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
}

.entry-edit-btn {
    background: #f59e0b;
    color: white;
}

.entry-edit-btn:hover {
    background: #d97706;
    transform: scale(1.05);
}

.entry-delete-btn {
    background: #ef4444;
    color: white;
}

.entry-delete-btn:hover {
    background: #dc2626;
    transform: scale(1.05);
}

.entry-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 8px;
    line-height: 1.3;
}

.entry-source {
    font-size: 0.9rem;
    color: #94a3b8;
    margin-bottom: 15px;
    font-style: italic;
}

.entry-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 15px;
}

.entry-stat {
    text-align: center;
    padding: 10px;
    background: rgba(30, 41, 59, 0.5);
    border-radius: 8px;
    border: 1px solid rgba(100, 116, 139, 0.2);
}

.entry-stat-value {
    display: block;
    font-size: 1.3rem;
    font-weight: 700;
    color: #10b981;
    margin-bottom: 4px;
}

.entry-stat-label {
    font-size: 0.75rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.entry-notes {
    font-size: 0.9rem;
    color: #cbd5e1;
    background: rgba(30, 41, 59, 0.3);
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 12px;
    border-left: 3px solid #a855f7;
    line-height: 1.4;
}

.entry-date {
    font-size: 0.8rem;
    color: #64748b;
    text-align: right;
    font-weight: 500;
}

.reading-loading {
    text-align: center;
    padding: 40px;
    color: #94a3b8;
    font-size: 1.1rem;
}

.reading-no-entries {
    text-align: center;
    padding: 40px;
    color: #94a3b8;
    background: rgba(51, 65, 85, 0.3);
    border-radius: 12px;
    border: 2px dashed rgba(100, 116, 139, 0.3);
}

.reading-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 25px;
}

.reading-page-btn {
    padding: 10px 15px;
    border: 1px solid rgba(100, 116, 139, 0.3);
    background: rgba(51, 65, 85, 0.7);
    color: #f1f5f9;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
}

.reading-page-btn:hover,
.reading-page-btn.active {
    background: #a855f7;
    border-color: #a855f7;
    transform: translateY(-1px);
}

.delete-entry-info {
    padding: 15px;
    background: rgba(52, 73, 94, 0.1);
    border-radius: 8px;
    margin: 15px 0;
    text-align: center;
    color: #f1f5f9;
}

/* Progress Overview Styles */
.reading-progress-overview {
    display: grid;
    gap: 15px;
    margin-bottom: 20px;
}

.reading-progress-item {
    background: rgba(51, 65, 85, 0.5);
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #a855f7;
}

.reading-progress-item h4 {
    margin: 0 0 10px 0;
    color: #f1f5f9;
    font-size: 1.1rem;
}

.reading-progress-bar {
    background: rgba(30, 41, 59, 0.8);
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    margin: 10px 0;
}

.reading-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #a855f7, #10b981);
    transition: width 0.3s ease;
}

.reading-progress-stats {
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
    color: #94a3b8;
    margin-top: 8px;
}

.reading-progress-stats span {
    font-weight: 500;
}

/* Enhanced Comprehension Entries Grid */
.reading-entries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.entry-card {
    background: rgba(30, 41, 59, 0.8);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(100, 116, 139, 0.2);
    transition: all 0.3s ease;
    position: relative;
}

.entry-card:hover {
    border-color: rgba(168, 85, 247, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.entry-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.entry-type {
    font-size: 0.9rem;
    color: #a78bfa;
    font-weight: 500;
}

.entry-actions {
    display: flex;
    gap: 8px;
}

.action-btn {
    background: transparent;
    border: 1px solid rgba(100, 116, 139, 0.3);
    color: #94a3b8;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.action-btn:hover {
    background: rgba(100, 116, 139, 0.2);
    color: #f1f5f9;
}

.edit-btn:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.4);
    color: #60a5fa;
}

.delete-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
    color: #f87171;
}

.entry-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #f1f5f9;
    margin-bottom: 10px;
    line-height: 1.3;
}

.entry-source {
    font-size: 0.9rem;
    color: #94a3b8;
    margin-bottom: 15px;
    font-style: italic;
}

.entry-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.stat-item {
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: #9fabba;
}

.stat-label {
    font-size: 0.8rem;
    color: #94a3b8;
}

/* Mini progress bars for entry stats */
.mini-progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(55, 65, 81, 0.8);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 2px;
}

.mini-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #3b82f6);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.mini-progress-line {
    width: 100%;
    height: 2px;
    background: #5c6d8a;
    margin-top: 3px;
    border-radius: 1px;
}

.entry-notes {
    background: rgba(51, 65, 85, 0.5);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #e2e8f0;
    line-height: 1.4;
}

.entry-date {
    font-size: 0.8rem;
    color: #64748b;
    text-align: right;
    margin-top: 10px;
}

.no-entries {
    text-align: center;
    padding: 40px;
    color: #94a3b8;
    font-size: 1.1rem;
    background: rgba(30, 41, 59, 0.4);
    border-radius: 10px;
    border: 1px dashed rgba(100, 116, 139, 0.3);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.page-btn {
    padding: 8px 12px;
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(100, 116, 139, 0.3);
    color: #94a3b8;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.page-btn:hover {
    background: rgba(100, 116, 139, 0.2);
    color: #f1f5f9;
}

.page-btn.active {
    background: linear-gradient(135deg, #a855f7, #3b82f6);
    color: white;
    border-color: transparent;
}

/* Mobile Responsive Updates */
@media (max-width: 768px) {
    .reading-entries-grid {
        grid-template-columns: 1fr;
    }
    
    .entry-stats {
        flex-direction: column;
        gap: 10px;
    }
    
    .stat-item {
        text-align: left;
        display: flex;
        justify-content: space-between;
        padding: 8px;
        background: rgba(51, 65, 85, 0.3);
        border-radius: 6px;
    }
    
    .stat-value {
        font-size: 1rem;
    }
    
    .entry-actions {
        flex-direction: column;
        gap: 4px;
    }
    
    .action-btn {
        width: 100%;
        padding: 6px;
    }
}

/* Comprehension Progress Overview - Original Design */
.progress-overview {
    margin-bottom: 30px;
}

.progress-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
}

.progress-item {
    background: rgba(51, 65, 85, 0.6);
    border-radius: 15px;
    padding: 20px;
    border-left: 4px solid #a855f7;
    position: relative;
    transition: all 0.3s ease;
}

.progress-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.progress-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: #f1f5f9;
    margin-bottom: 10px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(55, 65, 81, 0.8);
    border-radius: 4px;
    overflow: hidden;
    margin: 10px 0;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #3b82f6);
    transition: width 0.3s ease;
    border-radius: 4px;
}

.progress-text {
    /* position: absolute;
    top: 20px;
    right: 20px; */
    font-size: 1.2rem;
    font-weight: 700;
    color: #10b981;
}

.progress-details {
    margin-top: 10px;
}

.progress-current {
    color: #f1f5f9;
    font-weight: 500;
    margin-bottom: 2px;
}

.progress-target {
    color: #94a3b8;
    font-size: 0.9rem;
}

.status-badge {
    position: absolute;
    top: 50px;
    right: 20px;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.complete {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.status-badge.pending {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

/* Single Column Progress Overview */
.progress-overview-single {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.progress-item-single {
    background: rgba(51, 65, 85, 0.6);
    border-radius: 15px;
    padding: 20px;
    border-left: 4px solid #a855f7;
    transition: all 0.3s ease;
}

.progress-item-single:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.progress-header .progress-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: #f1f5f9;
    margin: 0;
    flex: 1;
}

.progress-header .progress-text {
    font-size: 1.2rem;
    font-weight: 700;
    color: #10b981;
    margin: 0 10px;
}

.progress-controls {
    display: flex;
    gap: 5px;
    align-items: center;
}

.progress-top-controls {
    display: flex;
    gap: 5px;
    align-items: center;
}

.progress-edit-btn,
.progress-reset-btn {
    background: transparent;
    border: 1px solid rgba(100, 116, 139, 0.3);
    color: #94a3b8;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.progress-edit-btn:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.4);
    color: #60a5fa;
}

.progress-reset-btn:hover {
    background: rgba(107, 114, 128, 0.2);
    border-color: rgba(107, 114, 128, 0.4);
    color: #9ca3af;
}

.progress-edit-btn.active {
    background: rgba(59, 130, 246, 0.3);
    border-color: #3b82f6;
    color: #60a5fa;
}

/* Edit mode progress bar with slider */
.progress-item-single.edit-mode .progress-bar {
    position: relative;
    cursor: pointer;
}

.progress-item-single.edit-mode .progress-bar::after {
    content: '';
    position: absolute;
    top: -4px;
    right: calc(100% - var(--progress-width, 50%));
    width: 16px;
    height: 16px;
    background: linear-gradient(135deg, #a855f7, #3b82f6);
    border-radius: 50%;
    border: 2px solid #1e293b;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    cursor: grab;
    transform: translateX(50%);
}

.progress-item-single.edit-mode .progress-bar:active::after {
    cursor: grabbing;
}

.progress-item-single .progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(55, 65, 81, 0.8);
    border-radius: 4px;
    overflow: hidden;
    margin: 10px 0;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.progress-bar-container {
    width: 100%;
    margin: 8px 0;
    position: relative;
}

.reading-overview-slider {
    width: 100%;
    height: 8px;
    -webkit-appearance: none;
    appearance: none;
    background: linear-gradient(to right, 
        rgba(168, 85, 247, 0.8) 0%, 
        rgba(168, 85, 247, 0.8) var(--progress-width, 0%), 
        rgba(51, 65, 85, 0.6) var(--progress-width, 0%), 
        rgba(51, 65, 85, 0.6) 100%);
    border-radius: 6px;
    outline: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.reading-overview-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: #a855f7;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.reading-overview-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
}

.reading-overview-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: #a855f7;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.progress-item-single .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #3b82f6);
    transition: width 0.3s ease;
    border-radius: 4px;
}

.progress-item-single .progress-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.progress-item-single .progress-current {
    color: #f1f5f9;
    font-weight: 500;
    font-size: 0.9rem;
}

.progress-item-single .progress-target {
    color: #94a3b8;
    font-size: 0.9rem;
}

.progress-item-single .status-badge {
    position: relative;
    top: 0;
    right: 0;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Notification System */
.notification {
    position: relative;
    max-width: 300px;
    padding: 15px 20px;
    border-radius: 10px;
    color: white;
    font-weight: 500;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease;
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification-success {
    background: linear-gradient(135deg, #10b981, #059669);
    border-left: 4px solid #047857;
}

.notification-error {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border-left: 4px solid #b91c1c;
}

.notification-warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border-left: 4px solid #b45309;
}

.notification-info {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-left: 4px solid #1e40af;
}

/* Weekly Progress Enhancements */
.weekly-progress-subtitle {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.4;
}

.weekly-day {
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.weekly-day:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.weekly-day.updating {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.day-action {
    font-size: 12px;
    color: #888;
    text-align: center;
    padding: 5px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.weekly-day:hover .day-action {
    opacity: 1;
}

/* Study Sessions Grid - Similar to Comprehension Cards */
.study-sessions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.session-card {
    background: rgba(51, 65, 85, 0.7);
    border: 1px solid rgba(100, 116, 139, 0.3);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    position: relative;
    backdrop-filter: blur(10px);
}

.session-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    border-color: rgba(16, 185, 129, 0.5);
}

.session-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.session-type {
    font-size: 0.9rem;
    color: #10b981;
    font-weight: 600;
}

.session-actions {
    display: flex;
    gap: 8px;
}

.session-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
}

.session-stats .stat-item {
    background: rgba(30, 41, 59, 0.6);
    padding: 8px 12px;
    border-radius: 8px;
    min-width: 80px;
    text-align: center;
}

.session-stats .stat-value {
    display: block;
    font-size: 1.1rem;
    font-weight: bold;
    color: #10b981;
}

.session-stats .stat-label {
    display: block;
    font-size: 0.8rem;
    color: #94a3b8;
    margin-top: 2px;
}

.mini-progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(55, 65, 81, 0.8);
    border-radius: 2px;
    margin-top: 5px;
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2);
}

.mini-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #3b82f6);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.session-notes {
    background: rgba(30, 41, 59, 0.4);
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 15px;
    border-left: 3px solid #10b981;
    font-size: 0.9rem;
    color: #cbd5e1;
    line-height: 1.4;
}

.session-date {
    text-align: right;
    font-size: 0.85rem;
    color: #94a3b8;
    margin-top: 10px;
}

.no-sessions {
    text-align: center;
    color: #94a3b8;
    font-style: italic;
    padding: 40px 20px;
    grid-column: 1 / -1;
}

/* flashcard modals */


.flashcard-modal {
    max-width: 600px;
    width: 90%;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--bg-secondary, #1e293b);
    border: 1px solid var(--border-color, #334155);
}

.quit-modal {
    max-width: 500px;
    width: 90%;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--bg-secondary, #1e293b);
    border: 1px solid var(--border-color, #334155);
}

.quit-modal {
    max-width: 500px;
    width: 90%;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--bg-secondary, #1e293b);
    border: 1px solid var(--border-color, #334155);
}

.flashcard-study-modal {
    max-width: 800px;
    width: 95%;
    height: 85vh;
    max-height: 650px;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--bg-secondary, #1e293b);
    border: 1px solid var(--border-color, #334155);
    display: flex;
    flex-direction: column;
}

.study-session-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color, #334155);
    background: linear-gradient(135deg, var(--bg-secondary, #1e293b) 0%, var(--bg-tertiary, #334155) 100%);
    color: var(--text-primary, #f1f5f9);
}

.session-info h3 {
    margin: 0 0 8px 0;
    font-size: 1.2rem;
    color: var(--text-primary, #f1f5f9);
}

.session-progress {
    font-size: 1.1rem;
    color: var(--text-secondary, #cbd5e1);
}

.current-card {
    font-weight: 700;
    color: var(--primary-color, #a855f7);
}

.session-actions {
    display: flex;
    gap: 10px;
}

.modal-body .session-actions {
    display: block;
}

.flashcard-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 15px 20px;
    background: linear-gradient(135deg, var(--bg-primary, #0f172a) 0%, var(--bg-secondary, #1e293b) 100%);
    min-height: 0;
}

.flashcard {
    width: 320px;
    height: 160px;
    background: var(--bg-secondary, #1e293b);
    border: 1px solid var(--border-color, #334155);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 15px;
    margin-bottom: 10px;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.flashcard.flipping {
    animation: cardFlip 0.4s ease-in-out;
}

@keyframes cardFlip {
    0% { 
        transform: rotateY(0deg);
        transform-origin: center; 
    }
    50% { 
        transform: rotateY(90deg);
        transform-origin: center; 
    }
    100% { 
        transform: rotateY(0deg);
        transform-origin: center; 
    }
}

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

.flashcard-front .word-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary, #f1f5f9);
    margin-bottom: 8px;
    text-align: center;
}

.flashcard-front .pronunciation {
    font-size: 1rem;
    color: var(--text-secondary, #cbd5e1);
    margin-bottom: 6px;
    font-style: italic;
}

.flashcard-front .part-of-speech {
    font-size: 0.8rem;
    color: var(--secondary-color, #3b82f6);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.flashcard-back .translation {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--success-color, #10b981);
    margin-bottom: 10px;
    text-align: center;
}

.flashcard-back .example {
    text-align: center;
    margin-bottom: 8px;
}

.flashcard-back .example-sentence {
    font-size: 0.9rem;
    color: var(--text-primary, #f1f5f9);
    margin-bottom: 3px;
    font-style: italic;
}

.flashcard-back .example-translation {
    font-size: 0.8rem;
    color: var(--text-secondary, #cbd5e1);
}

.flashcard-back .notes {
    font-size: 0.85rem;
    color: var(--text-muted, #64748b);
    text-align: center;
    font-style: italic;
}

.flashcard-controls {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.difficulty-buttons {
    display: flex;
    gap: 10px;
}

.difficulty-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.difficulty-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.session-stats {
    display: flex;
    justify-content: space-around;
    padding: 15px;
    background: var(--bg-secondary, #1e293b);
    border-top: 1px solid var(--border-color, #334155);
    flex-shrink: 0;
}

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

.session-stats .stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary, #f1f5f9);
    margin-bottom: 5px;
}

.session-stats .stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary, #cbd5e1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.session-complete-modal {
    max-width: 500px;
    text-align: center;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--bg-secondary, #1e293b);
    border: 1px solid var(--border-color, #334155);
}

.session-results {
    display: flex;
    justify-content: space-around;
    margin: 30px 0;
}

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

.result-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--success-color, #10b981);
    margin-bottom: 5px;
}

.result-label {
    font-size: 0.9rem;
    color: var(--text-secondary, #cbd5e1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.set-preview-info {
    margin-bottom: 25px;
}

.set-preview-stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
    padding: 20px;
    background: var(--bg-secondary, #1e293b);
    border: 1px solid var(--border-color, #334155);
    border-radius: 10px;
}

.set-preview-stats .stat-item {
    text-align: center;
}

.set-preview-stats .stat-icon {
    font-size: 1.5rem;
    margin-bottom: 5px;
    display: block;
}

.set-preview-stats .stat-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary, #f1f5f9);
}

.set-preview-description {
    font-size: 1.1rem;
    color: var(--text-secondary, #cbd5e1);
    text-align: center;
    line-height: 1.6;
}

.preview-words-container h4 {
    margin-bottom: 15px;
    color: var(--text-primary, #f1f5f9);
}

.preview-words-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.preview-word-card {
    background: var(--bg-secondary, #1e293b);
    border: 1px solid var(--border-color, #334155);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
}

.preview-word {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary, #f1f5f9);
    margin-bottom: 5px;
}

.preview-translation {
    font-size: 0.9rem;
    color: var(--text-secondary, #cbd5e1);
}

.flashcard-management-modal {
    max-width: 700px;
    width: 90%;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--bg-secondary, #1e293b);
    border: 1px solid var(--border-color, #334155);
}

.management-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color, #334155);
    margin-bottom: 20px;
}

.management-tabs .tab {
    padding: 10px 20px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    color: var(--text-secondary, #cbd5e1);
}

.management-tabs .tab.active {
    color: var(--primary-color, #a855f7);
    border-bottom-color: var(--primary-color, #a855f7);
}

.tab-content {
    min-height: 300px;
}

.progress-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.progress-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: var(--bg-secondary, #1e293b);
    border-radius: 8px;
    border: 1px solid var(--border-color, #334155);
}

.progress-item-info h5 {
    margin: 0 0 5px 0;
    color: var(--text-primary, #f1f5f9);
}

.progress-item-stats {
    font-size: 0.9rem;
    color: var(--text-secondary, #cbd5e1);
}

.settings-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: var(--bg-secondary, #1e293b);
    border-radius: 8px;
    border: 1px solid var(--border-color, #334155);
}

.setting-item label {
    font-weight: 600;
    color: var(--text-primary, #f1f5f9);
}

.setting-item input,
.setting-item select {
    padding: 8px 12px;
    border: 1px solid var(--border-color, #334155);
    border-radius: 6px;
    font-size: 0.9rem;
    background: var(--bg-primary, #0f172a);
    color: var(--text-primary, #f1f5f9);
}

.words-practiced {
    margin-top: 20px;
    padding: 20px;
    background: var(--bg-secondary, #1e293b);
    border-radius: 8px;
    border: 1px solid var(--border-color, #334155);
}

.words-practiced h4 {
    margin: 0 0 15px 0;
    color: var(--text-primary, #f1f5f9);
    font-size: 1.1rem;
}

.practiced-words-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 10px;
    max-height: 200px;
    overflow-y: auto;
    width: 100%;
}

.practiced-word {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: var(--bg-primary, #0f172a);
    border-radius: 6px;
    border: 1px solid var(--border-color, #334155);
}

.practiced-word .word-text {
    font-weight: 600;
    color: var(--text-primary, #f1f5f9);
}

.practiced-word .word-translation {
    color: var(--text-secondary, #cbd5e1);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .flashcard {
        width: 300px;
        height: 200px;
        padding: 20px;
    }
    
    .flashcard-front .word-text {
        font-size: 1.5rem;
    }
    
    .flashcard-back .translation {
        font-size: 1.3rem;
    }
    
    .difficulty-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .session-stats {
        flex-direction: column;
        gap: 15px;
    }
    
    .set-preview-stats {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 768px) {
    #notification-container {
        top: 10px !important;
        right: 10px !important;
        left: 10px !important;
    }
    
    .notification {
        max-width: none;
    }
    
    .day-action {
        opacity: 1;
    }
    
    .study-sessions-grid {
        grid-template-columns: 1fr;
    }
    
    .session-stats {
        justify-content: center;
    }
    
    .progress-overview-single {
        gap: 10px;
    }
}

/* Speaking Filter Container */
.speaking-filter-container {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.speaking-filter-select {
    background: rgba(51, 65, 85, 0.7);
    border: 1px solid rgba(100, 116, 139, 0.3);
    border-radius: 8px;
    color: #f1f5f9;
    padding: 8px 12px;
    font-size: 0.9rem;
    min-width: 180px;
    transition: all 0.3s ease;
}

.speaking-filter-select:hover {
    border-color: rgba(168, 85, 247, 0.5);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.speaking-filter-select:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

/* Settings Page Auto-save Notice */
.auto-save-notice {
    color: #10b981;
    font-size: 0.9rem;
    margin: 15px 0;
    text-align: center;
    background: rgba(16, 185, 129, 0.1);
    padding: 10px 15px;
    border-radius: 8px;
    border: 1px solid rgba(16, 185, 129, 0.2);
}
    
    .progress-item-single {
        padding: 15px;
    }
    
    .progress-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .progress-header:has(.progress-top-controls) {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .progress-item-single .progress-details {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}

/* Comprehension Form Redesign */
.reading-form-container {
    background: rgba(51, 65, 85, 0.5);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
}

.reading-form-container h3 {
    color: #f1f5f9;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.reading-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-row {
    display: flex;
    gap: 15px;
    align-items: flex-end;
}

.form-select,
.form-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid rgba(100, 116, 139, 0.3);
    border-radius: 10px;
    background: rgba(30, 41, 59, 0.8);
    color: #f1f5f9;
    font-size: 14px;
}

.form-select:focus,
.form-input:focus {
    outline: none;
    border-color: #a855f7;
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.3);
}

.form-select {
	max-width: 210px;
}

.form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid rgba(100, 116, 139, 0.3);
    border-radius: 10px;
    background: rgba(30, 41, 59, 0.8);
    color: #f1f5f9;
    min-height: 80px;
    resize: vertical;
    font-family: inherit;
}

.form-textarea:focus {
    outline: none;
    border-color: #a855f7;
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.3);
}
.form-textarea-short {
	min-height: auto;
    height: 43px;
    padding-top: 9px;
    font-size: 14px;
}

.time-input-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
	max-width: 135px;
    margin-top: -40px;
    text-align: center;
}

/* hide the number arrows */
.time-input-group input[type=number]::-webkit-inner-spin-button,
.time-input-group input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.time-input-group input[type=number] {
  -moz-appearance: textfield;
}


.time-label {
    color: #f1f5f9;
    font-size: 0.9rem;
    font-weight: 500;
}

.time-inputs {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(30, 41, 59, 0.8);
    border: 2px solid rgba(100, 116, 139, 0.3);
    border-radius: 10px;
    padding: 8px 12px;
    transition: border-color 0.3s ease;
}

.time-inputs:focus-within {
    border-color: #a855f7;
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.3);
}

.time-field {
    background: transparent;
    border: none;
    color: #f1f5f9;
    font-size: 14px;
    width: 40px;
    text-align: center;
    outline: none;
}

.time-field::placeholder {
    color: #94a3b8;
}

.time-separator {
    color: #f1f5f9;
    font-size: 1.1rem;
    font-weight: bold;
    margin: 0 4px;
}

.slider-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.slider-label {
    color: #f1f5f9;
    font-size: 0.9rem;
    font-weight: 500;
}

.form-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    background: linear-gradient(to right, #a855f7, #3b82f6) no-repeat, rgba(55, 65, 81, 0.8);
    background-size: 0% 100%;
    border-radius: 3px;
    outline: none;
    cursor: pointer;
    transition: background-size 0.3s ease;
}

.form-slider::-webkit-slider-thumb {
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, #a855f7, #3b82f6);
    cursor: pointer;
    border: 2px solid #1e293b;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.form-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, #a855f7, #3b82f6);
    cursor: pointer;
    border: 2px solid #1e293b;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* Unset slider styling */
.form-slider.unset {
    background: #5c6d8a;
    background-size: 100% 100%;
}

.form-slider.unset::-webkit-slider-thumb {
    background: #5c6d8a;
}

.form-slider.unset::-moz-range-thumb {
    background: #5c6d8a;
}

/* New form layout for sliders */
.slider-row {
    flex-direction: column;
    gap: 10px;
}

.slider-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    width: 100%;
}

.slider-styled {
	flex: 1;
    padding: 16px 20px 24px 21px;
    border: 2px solid rgba(100, 116, 139, 0.3);
    border-radius: 10px;
    background: rgba(30, 41, 59, 0.8);
    color: #f1f5f9;
    font-size: 14px;
}

.slider-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
/* Reading and difficulty sliders - specific styling with high specificity */
input#reading-slider.form-slider,
input#difficulty-slider.form-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    background: linear-gradient(to right, #a855f7, #3b82f6) no-repeat, rgba(55, 65, 81, 0.8);
    background-size: 0% 100%;
    border-radius: 3px;
    outline: none;
    cursor: pointer;
    transition: background-size 0.3s ease;
}

input#reading-slider.form-slider::-webkit-slider-thumb,
input#difficulty-slider.form-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, #a855f7, #3b82f6);
    cursor: pointer;
    border: 2px solid #1e293b;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

input#reading-slider.form-slider::-moz-range-thumb,
input#difficulty-slider.form-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, #a855f7, #3b82f6);
    cursor: pointer;
    border: 2px solid #1e293b;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

input#reading-slider.form-slider::-webkit-slider-track,
input#difficulty-slider.form-slider::-webkit-slider-track {
    background: transparent;
    height: 6px;
    border-radius: 3px;
}

input#reading-slider.form-slider::-moz-range-track,
input#difficulty-slider.form-slider::-moz-range-track {
    background: transparent;
    height: 6px;
    border-radius: 3px;
    border: none;
}

.log-activity-btn {
    background: linear-gradient(135deg, #a855f7, #3b82f6);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(168, 85, 247, 0.3);
    align-self: flex-start;
}

.log-activity-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(168, 85, 247, 0.4);
    background: linear-gradient(135deg, #9333ea, #2563eb);
}

@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .time-minutes-group {
        justify-content: center;
    }
    
    .log-activity-btn {
        align-self: stretch;
    }
}
/* Vocabulary Timeline with Progress Indicators */
.timeline-container {
    position: relative;
    margin: 0 20px;
}

.timeline-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    margin: 0;
}

.timeline-line::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 4px;
    background: #374151;
    border-radius: 2px;
    z-index: 1;
}

.timeline-progress-bar {
    position: absolute;
    top: 50%;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, #10b981 0%, #f59e0b 50%, #a855f7 100%);
    border-radius: 2px;
    z-index: 2;
    transform: translateY(-50%);
    transition: width 0.5s ease;
}

.timeline-dot {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 3;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid #374151;
    background: #1e293b;
    overflow: hidden;
}

.timeline-dot.completed {
    background: linear-gradient(135deg, #10b981, #059669);
    border-color: #10b981;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
}

.timeline-dot.current {
    background: #1e293b;
    border-color: #f59e0b;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.4);
    animation: pulse 2s infinite;
}

.timeline-dot.future {
    background: #374151;
    border-color: #4b5563;
}

.timeline-fill {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, #f59e0b, #d97706);
    border-radius: 0 0 50% 50%;
    transition: height 0.3s ease;
}

.timeline-number {
    color: #f1f5f9;
    font-weight: bold;
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
}

/* Stage Update Buttons - faintly visible by default as requested */
.stage-update-btn,
.edit-stage-btn {
    opacity: 0.3;
    transition: all 0.3s ease;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    color: rgba(99, 102, 241, 0.6);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 10px;
}

.stage-update-btn:hover,
.edit-stage-btn:hover {
    opacity: 1;
    background: rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.4);
    color: rgba(99, 102, 241, 1);
}

/* Show edit buttons more prominently when in edit mode */
.vocab-item.edit-mode .edit-stage-btn,
.vocab-item.edit-mode .stage-update-btn {
    opacity: 1;
    background: linear-gradient(135deg, #a855f7, #3b82f6);
    border-color: #a855f7;
    color: white;
}

/* Study Session Modal Styles */
.edit-session-input {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(100, 116, 139, 0.3);
    border-radius: 8px;
    background: rgba(30, 41, 59, 0.8);
    color: #f1f5f9;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.edit-session-input:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.session-type-select.edit-session-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
}

.session-hours-input.edit-session-input {
    text-align: right;
}

.session-date-input.edit-session-input {
    color-scheme: dark;
}

.session-notes-textarea.edit-session-input {
    min-height: 80px;
    resize: vertical;
    font-family: inherit;
}

.delete-session-info {
    padding: 15px;
    background: rgba(52, 73, 94, 0.1);
    border-radius: 8px;
    margin: 15px 0;
    text-align: center;
    color: #f1f5f9;
}

/* Word Exists Modal Styles */
.word-exists-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.word-exists-modal-overlay.show {
    opacity: 1;
}

.word-exists-modal-overlay.closing {
    opacity: 0;
}

.word-exists-modal {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border-radius: 16px;
    padding: 30px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(79, 70, 229, 0.3);
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.word-exists-modal-overlay.show .word-exists-modal {
    transform: scale(1);
}

.word-exists-modal h3 {
    color: #f59e0b;
    margin-bottom: 15px;
    font-size: 1.3rem;
    text-align: center;
}

.word-exists-modal p {
    color: #e2e8f0;
    margin-bottom: 25px;
    text-align: center;
    line-height: 1.5;
}

.word-exists-modal-ok {
    width: 100%;
    padding: 12px 24px;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.word-exists-modal-ok:hover {
    background: linear-gradient(135deg, #4338ca 0%, #6d28d9 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.4);
}

/* Word Exists Input Styling */
.word-exists {
    border-color: #f59e0b !important;
    background: rgba(245, 158, 11, 0.1) !important;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2) !important;
}

/* Submit Button Disabled State */
button.disabled,
button:disabled {
    background: #4b5563 !important;
    color: #9ca3af !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Field Validation Styles */
.field-error {
    border: 2px solid #ef4444 !important;
    background: rgba(239, 68, 68, 0.1) !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2) !important;
}

.field-error-message {
    color: #ef4444;
    font-size: 0.875rem;
    margin-bottom: 8px;
    padding: 4px 8px;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 4px;
    border-left: 3px solid #ef4444;
}

/* Optimistic Word Styling - No visual difference, just disable interactions */
.optimistic-word .mastery-buttons {
    pointer-events: none;
}

.optimistic-word .word-actions {
    pointer-events: none;
}

/* Speaking Edit Modal Styles */
.edit-speaking-input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(51, 65, 85, 0.8);
    border: 1px solid rgba(100, 116, 139, 0.3);
    border-radius: 8px;
    color: #e2e8f0;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.edit-speaking-input:focus {
    outline: none;
    border-color: #4f46e5;
    background: rgba(51, 65, 85, 0.9);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.edit-speaking-textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(51, 65, 85, 0.8);
    border: 1px solid rgba(100, 116, 139, 0.3);
    border-radius: 8px;
    color: #e2e8f0;
    font-size: 0.95rem;
    resize: vertical;
    min-height: 80px;
    transition: all 0.3s ease;
}

.edit-speaking-textarea:focus {
    outline: none;
    border-color: #4f46e5;
    background: rgba(51, 65, 85, 0.9);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

#editSpeakingModal .input-group {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

#editSpeakingModal .input-group-full {
    flex-direction: column;
}

#editSpeakingModal select {
    cursor: pointer;
}

#editSpeakingModal option {
    background: #1e293b;
    color: #e2e8f0;
}

/* Category Select Styles */
.category-select {
    width: 100%;
    padding: 12px 16px;
    background: rgba(51, 65, 85, 0.8);
    border: 1px solid rgba(100, 116, 139, 0.3);
    border-radius: 8px;
    color: #e2e8f0;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-select:focus {
    outline: none;
    border-color: #4f46e5;
    background: rgba(51, 65, 85, 0.9);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.category-select option {
    background: #1e293b;
    color: #e2e8f0;
    padding: 8px;
}

.category-select option[value="new"] {
    color: #10b981;
    font-weight: 600;
}

.category-select option[value=""] {
    color: #94a3b8;
}

/* New Category Modal Styles */
.color-picker-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.color-presets {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.color-preset {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.2s ease;
}

.color-preset:hover {
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.5);
}

#newCategoryColor {
    width: 60px;
    height: 40px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    background: none;
}

/* Emoji Picker Styles */
.emoji-picker-container {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px;
    align-items: start;
}

.selected-emoji {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    background: rgba(30, 41, 59, 0.8);
    border: 2px solid rgba(100, 116, 139, 0.3);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.emoji-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
    padding: 10px;
    background: rgba(15, 23, 42, 0.5);
    border-radius: 10px;
    border: 1px solid rgba(100, 116, 139, 0.2);
}

/* Custom scrollbar for modal content */
.modal-content::-webkit-scrollbar,
.modal-body::-webkit-scrollbar {
    width: 6px;
}

.modal-content::-webkit-scrollbar-track,
.modal-body::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.3);
    border-radius: 3px;
}

.modal-content::-webkit-scrollbar-thumb,
.modal-body::-webkit-scrollbar-thumb {
    background: rgba(168, 85, 247, 0.6);
    border-radius: 3px;
}

.modal-content::-webkit-scrollbar-thumb:hover,
.modal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(168, 85, 247, 0.8);
}

.emoji-option {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    background: rgba(30, 41, 59, 0.6);
    border: 2px solid rgba(100, 116, 139, 0.2);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(5px);
}

.emoji-option:hover {
    background: rgba(168, 85, 247, 0.2);
    border-color: rgba(168, 85, 247, 0.4);
    transform: scale(1.05);
}

.emoji-option.active {
    background: rgba(168, 85, 247, 0.3);
    border-color: #a855f7;
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.4);
}

/* Mobile responsiveness for emoji grid */
@media (max-width: 768px) {
    .emoji-picker-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .emoji-grid {
        grid-template-columns: repeat(6, 1fr);
        width: 100%;
    }
    
    .emoji-option {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .selected-emoji {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
}

/* Category Section Styles */
.category-section {
    margin-bottom: 30px;
}

.category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    padding: 12px 16px;
    background: rgba(30, 41, 59, 0.5);
    border-radius: 8px;
    border-left: 4px solid #4f46e5;
}

.category-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #e2e8f0;
}

.category-count {
    font-size: 0.9rem;
    color: #94a3b8;
    font-weight: 500;
}

.category-section .words-grid {
    margin-top: 0;
    margin-bottom: 0;
}

/* Word Card Category Dropdown */
.word-category-select {
    margin: 8px 0;
}

.word-category-dropdown {
    width: 100%;
    padding: 6px 8px;
    background: rgba(51, 65, 85, 0.8);
    border: 1px solid rgba(100, 116, 139, 0.3);
    border-radius: 6px;
    color: #e2e8f0;
    font-size: 0.8rem;
    cursor: pointer;
}

.word-category-dropdown:focus {
    outline: none;
    border-color: #4f46e5;
}

/* Quick Add Cards */
.quick-add-sections,
.quick-add-section {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

/* Responsive: 3 columns on tablets */
@media (max-width: 1024px) {
    .quick-add-sections,
    .quick-add-section {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Responsive: 2 columns on small tablets */
@media (max-width: 768px) {
    .quick-add-sections,
    .quick-add-section {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

/* Responsive: 1 column on mobile */
@media (max-width: 480px) {
    .quick-add-sections,
    .quick-add-section {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* Reading Materials Section */
.reading-materials-section {
    margin-top: 40px;
    padding: 30px;
    background: rgba(30, 41, 59, 0.6);
    border-radius: 20px;
    border: 1px solid rgba(79, 70, 229, 0.2);
}

.reading-materials-section h3 {
    color: #f1f5f9;
    margin-bottom: 25px;
    font-size: 1.5rem;
}

.reading-materials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.material-card {
    background: rgba(51, 65, 85, 0.8);
    border-radius: 15px;
    padding: 20px;
    border: 1px solid rgba(100, 116, 139, 0.3);
    transition: all 0.3s ease;
}

.material-card:hover {
    transform: translateY(-3px);
    border-color: rgba(79, 70, 229, 0.4);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.material-header h4 {
    color: #f1f5f9;
    margin: 0 0 5px 0;
    font-size: 1.1rem;
}

.material-author {
    color: #94a3b8;
    font-size: 0.9rem;
    font-style: italic;
}

.material-info {
    display: flex;
    justify-content: space-between;
    margin: 15px 0;
    font-size: 0.85rem;
}

.material-difficulty {
    color: #fbbf24;
    font-weight: 500;
}

.material-time {
    color: #60a5fa;
}

.material-description {
    color: #e2e8f0;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 15px 0;
}

.material-link {
    display: inline-block;
    background: linear-gradient(135deg, #a855f7, #3b82f6);
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.material-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(168, 85, 247, 0.3);
    color: white;
    text-decoration: none;
}

/* Super Admin Dashboard Styles */
.super-admin-dashboard {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.dashboard-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px;
    background: rgba(30, 41, 59, 0.8);
    border-radius: 15px;
    border: 1px solid rgba(79, 70, 229, 0.2);
}

.dashboard-header h1 {
    color: #f7fafc;
    font-size: 2.5rem;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #a855f7, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dashboard-header p {
    color: #94a3b8;
    font-size: 1.1rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: rgba(30, 41, 59, 0.8);
    border-radius: 15px;
    padding: 25px;
    border: 2px solid rgba(100, 116, 139, 0.3);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    border-color: rgba(79, 70, 229, 0.4);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.stat-icon {
    font-size: 2rem;
    opacity: 0.8;
}

.stat-content h3 {
    color: #f1f5f9;
    font-size: 1.8rem;
    margin: 0;
}

.stat-content p {
    color: #94a3b8;
    margin: 5px 0 0 0;
    font-size: 0.9rem;
}

.admin-panel {
    background: rgba(30, 41, 59, 0.8);
    border-radius: 15px;
    margin-bottom: 30px;
    border: 1px solid rgba(79, 70, 229, 0.2);
    overflow: hidden;
}

.panel-header {
    background: rgba(51, 65, 85, 0.8);
    padding: 20px 30px;
    border-bottom: 1px solid rgba(100, 116, 139, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.panel-header h2 {
    color: #f1f5f9;
    margin: 0;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.panel-actions {
    display: flex;
    gap: 10px;
}

.refresh-btn {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #3b82f6;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.refresh-btn:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: #3b82f6;
}

.panel-content {
    padding: 30px;
}

/* Settings Cards Grid Layout */
.settings-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.settings-card {
    background: rgba(51, 65, 85, 0.6);
    border: 2px solid rgba(100, 116, 139, 0.3);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.settings-card:hover {
    transform: translateY(-4px);
    border-color: rgba(168, 85, 247, 0.5);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.card-header {
    background: rgba(30, 41, 59, 0.8);
    padding: 20px 25px;
    border-bottom: 1px solid rgba(100, 116, 139, 0.3);
}

.card-header h3 {
    color: #f1f5f9;
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-content {
    padding: 25px;
}

.card-content .form-select {
    width: 100%;
    margin-bottom: 15px;
}

.card-footer {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(100, 116, 139, 0.2);
}

.card-description {
    color: #94a3b8;
    font-size: 0.9rem;
    margin-top: 10px;
    font-style: italic;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.checkbox-wrapper input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #a855f7;
}

.checkbox-text {
    color: #e2e8f0;
    font-size: 0.9rem;
}

/* Toggle Switch Styles */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(100, 116, 139, 0.4);
    transition: 0.4s;
    border-radius: 34px;
    border: 2px solid rgba(100, 116, 139, 0.6);
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background: #f1f5f9;
    transition: 0.4s;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.toggle-switch input:checked + .toggle-slider {
    background: linear-gradient(135deg, #a855f7, #3b82f6);
    border-color: #a855f7;
}

.toggle-switch input:focus + .toggle-slider {
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.2);
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(26px);
    background: #ffffff;
}

.toggle-label {
    color: #e2e8f0;
    font-size: 0.9rem;
    margin-left: 10px;
}

.admin-form {
    display: grid;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    color: #f1f5f9;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group small {
    color: #94a3b8;
    font-size: 0.85rem;
}

.form-select {
    background: rgba(51, 65, 85, 0.8);
    border: 1px solid rgba(100, 116, 139, 0.3);
    color: #f1f5f9;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.95rem;
}

.form-select:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.btn {
    padding: 12px 24px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-self: start;
}

.btn-primary {
    background: linear-gradient(135deg, #a855f7, #3b82f6);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(168, 85, 247, 0.3);
}

.table-container {
    overflow-x: auto;
    border-radius: 0 0 15px 15px;
}

.user-management-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(30, 41, 59, 0.8);
}

.user-management-table th,
.user-management-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid rgba(100, 116, 139, 0.2);
}

.user-management-table th {
    background: rgba(51, 65, 85, 0.8);
    color: #f1f5f9;
    font-weight: 600;
    font-size: 0.9rem;
}

.user-management-table td {
    color: #e2e8f0;
    font-size: 0.9rem;
}

.user-management-table tr:hover {
    background: rgba(51, 65, 85, 0.3);
}

.user-type-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.user-type-badge.guest {
    background: rgba(168, 85, 247, 0.2);
    color: #a855f7;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.user-type-badge.regular {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.language-select,
.cefr-select {
    background: rgba(51, 65, 85, 0.8);
    border: 1px solid rgba(100, 116, 139, 0.3);
    color: #f1f5f9;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.85rem;
}

.progress-summary {
    color: #94a3b8;
    font-size: 0.85rem;
}

.action-btn {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.reset-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
}

.modal[style*="display: flex"] {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

/* Notes Section Toggle */
.notes-toggle {
    cursor: pointer;
    user-select: none;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.notes-toggle:hover {
    color: #3b82f6;
}

.notes-icon {
    transition: transform 0.2s ease;
    font-size: 0.8rem;
}

.notes-content {
    margin-top: 10px;
    transition: all 0.3s ease;
}

.notes-content textarea {
    width: 100%;
    transition: all 0.3s ease;
}

.modal-content {
    background: rgba(30, 41, 59, 0.95);
    border-radius: 15px;
    border: 2px solid rgba(100, 116, 139, 0.3);
    max-width: 500px;
    width: 90%;
    backdrop-filter: blur(20px);
}

.modal-header {
    padding: 20px 30px;
    border-bottom: 1px solid rgba(100, 116, 139, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header.danger {
    border-bottom-color: rgba(239, 68, 68, 0.3);
}

.modal-header h3 {
    color: #f1f5f9;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-close {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(100, 116, 139, 0.2);
    color: #f1f5f9;
}

.modal-body {
    padding: 30px;
}

.modal-body p {
    color: #e2e8f0;
    margin-bottom: 15px;
    line-height: 1.6;
}

.modal-body ul {
    color: #e2e8f0;
    margin: 15px 0;
    padding-left: 20px;
}

.warning-text {
    color: #fbbf24;
    font-weight: 500;
}

.modal-actions {
    padding: 20px 30px;
    border-top: 1px solid rgba(100, 116, 139, 0.3);
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.cancel-btn,
.danger-btn {
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cancel-btn {
    background: rgba(100, 116, 139, 0.2);
    color: #e2e8f0;
    border: 1px solid rgba(100, 116, 139, 0.3);
}

.cancel-btn:hover {
    background: rgba(100, 116, 139, 0.3);
}

.danger-btn {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.danger-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
}

.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1100;
}

.toast {
    background: rgba(30, 41, 59, 0.95);
    border-radius: 10px;
    padding: 15px 20px;
    margin-bottom: 10px;
    border-left: 4px solid #3b82f6;
    color: #f1f5f9;
    display: flex;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(10px);
    animation: slideIn 0.3s ease;
    min-width: 300px;
}

.toast-success {
    border-left-color: #10b981;
}

.toast-error {
    border-left-color: #ef4444;
}

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

.quick-add-card {
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(79, 70, 229, 0.2);
    border-radius: 20px;
	margin-top: 30px;
    padding: 25px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3),
                0 0 15px rgba(79, 70, 229, 0.05);
    backdrop-filter: blur(15px);
    transition: all 0.3s ease;
}

.quick-add-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4),
                0 0 20px rgba(79, 70, 229, 0.1);
}

.quick-add-card .card-header {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border-top-right-radius: 15px;
    border-top-left-radius: 15px;
    margin: -25px -25px 25px -25px;
}

.quick-add-card .card-header h3 {
    color: #f1f5f9;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.quick-add-card .card-subheader {
    margin-bottom: 20px;
    margin-top: -10px;
    text-align: center;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(100, 116, 139, 0.2);
}

.quick-add-card .card-icon {
    font-size: 1.5rem;
}

.quick-add-card .view-all-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #a855f7, #3b82f6);
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.quick-add-card .view-all-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(168, 85, 247, 0.4);
    color: white;
}

.quick-add-card .card-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.quick-add-card .stat {
    text-align: center;
}

.quick-add-card .stat-value {
    display: block;
    font-size: 1.8rem;
    font-weight: 600;
    color: #f1f5f9;
    background: linear-gradient(135deg, #a855f7, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.quick-add-card .stat-label {
    display: block;
    font-size: 0.8rem;
    color: #94a3b8;
    margin-top: 5px;
}

.quick-add-form {
    margin-top: 20px;
}

.quick-add-form .inline-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.quick-add-form .quick-input {
    flex: 1;
    min-width: 150px;
    padding: 10px 15px;
    background: rgba(51, 65, 85, 0.6);
    border: 1px solid rgba(100, 116, 139, 0.3);
    border-radius: 10px;
    color: #e2e8f0;
    transition: all 0.3s ease;
}

.quick-add-form .quick-input:focus {
    outline: none;
    border-color: #a855f7;
    background: rgba(51, 65, 85, 0.8);
}

.quick-add-form .quick-submit {
    padding: 10px 20px;
    background: linear-gradient(135deg, #a855f7, #3b82f6);
    border: none;
    border-radius: 10px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quick-add-form .quick-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(168, 85, 247, 0.4);
}

.quick-add-form .compact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.quick-add-form .form-row {
    display: flex;
    gap: 15px;
}

.quick-add-form .form-group {
    flex: 1;
}

.quick-add-form .form-group label {
    display: block;
    color: #cbd5e1;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.quick-add-form .quick-input-small {
    width: 100%;
    padding: 8px 12px;
    background: rgba(51, 65, 85, 0.6);
    border: 1px solid rgba(100, 116, 139, 0.3);
    border-radius: 10px;
    color: #e2e8f0;
}

.quick-add-form .quick-select {
    width: 100%;
    padding: 8px 12px;
    background: rgba(51, 65, 85, 0.6);
    border: 1px solid rgba(100, 116, 139, 0.3);
    border-radius: 10px;
    color: #e2e8f0;
    cursor: pointer;
}

.quick-action {
    text-align: center;
    padding-top: 10px;
}

.action-text {
    color: #94a3b8;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.action-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    background: linear-gradient(135deg, #a855f7, #3b82f6);
    border: none;
    border-radius: 10px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.action-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(168, 85, 247, 0.4);
}

.button-icon {
    font-size: 1.2rem;
}

/* Slider styles for reading */
.slider-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.slider-form label {
    color: #cbd5e1;
    font-size: 0.9rem;
}

.slider-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
}


.slider-value {
    color: #f1f5f9;
    font-weight: 600;
    font-size: 1.1rem;
    min-width: 50px;
    text-align: center;
}

.quick-success {
    margin-top: 10px;
    padding: 10px;
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.5);
    border-radius: 8px;
    color: #10b981;
    text-align: center;
    font-size: 0.9rem;
    animation: fadeIn 0.3s ease;
}

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

/* Personalized Learning Path Styles */
.personalized-learning-section {
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(79, 70, 229, 0.2);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3),
                0 0 15px rgba(79, 70, 229, 0.05);
    backdrop-filter: blur(15px);
}

.personalized-learning-section h2 {
    color: #f1f5f9;
    font-size: 1.8rem;
    margin-bottom: 25px;
    text-align: center;
}

.learning-recommendations {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.recommendation-card {
    background: rgba(51, 65, 85, 0.6);
    border: 1px solid rgba(100, 116, 139, 0.3);
    border-radius: 15px;
    padding: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.recommendation-card:hover {
    transform: translateY(-3px);
    border-color: rgba(168, 85, 247, 0.5);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.recommendation-card h3 {
    color: #f1f5f9;
    font-size: 1.1rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.recommendation-card .icon {
    font-size: 1.5rem;
}

.recommendation-card ul {
    list-style: none;
    padding: 0;
}

.recommendation-card li {
    color: #cbd5e1;
    font-size: 0.9rem;
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.recommendation-card li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #10b981;
}

.recommendation-card .start-button {
    display: block;
    width: 100%;
    padding: 10px;
    margin-top: 15px;
    background: linear-gradient(135deg, #a855f7, #3b82f6);
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.recommendation-card .start-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(168, 85, 247, 0.4);
}

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

.edit-goals-btn-inline {
    margin-left: 15px;
    font-size: 14px;
    padding: 5px 10px;
}

.confidence-status[data-confidence-color="#10b981"] {
    color: #10b981;
}

.confidence-status[data-confidence-color="#f59e0b"] {
    color: #f59e0b;
}

.confidence-status[data-confidence-color="#ef4444"] {
    color: #ef4444;
}

.confidence-status[data-confidence-color="#991b1b"] {
    color: #991b1b;
}

.reading-entry-card {
    background: rgba(51, 65, 85, 0.5);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 10px;
}

.reading-entry-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.reading-entry-title {
    color: #f1f5f9;
    margin: 0;
}

.reading-entry-type {
    color: #94a3b8;
    font-size: 0.9rem;
    margin: 0;
}

.reading-entry-stats {
    text-align: right;
}

.reading-entry-percentage {
    color: #10b981;
    font-weight: bold;
    font-size: 1.1rem;
}

.reading-entry-minutes {
    color: #94a3b8;
    font-size: 0.8rem;
}

.reading-entry-source {
    color: #94a3b8;
    font-size: 0.9rem;
    margin: 5px 0;
}

.reading-entry-notes {
    color: #e2e8f0;
    font-size: 0.9rem;
    margin: 5px 0;
}

.reading-entry-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}

.reading-entry-difficulty {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.8rem;
}

.reading-entry-date {
    color: #94a3b8;
    font-size: 0.8rem;
    margin-left: auto;
}

.no-reading-entries {
    text-align: center;
    color: #94a3b8;
    padding: 40px;
}

.speaking-session-card {
    background: rgba(51, 65, 85, 0.5);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 10px;
}

.speaking-session-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.speaking-session-title {
    color: #f1f5f9;
    margin: 0;
}

.speaking-session-type {
    color: #94a3b8;
    font-size: 0.9rem;
    margin: 0;
}

.speaking-session-stats {
    text-align: right;
}

.speaking-session-duration {
    color: #10b981;
    font-weight: bold;
    font-size: 1.1rem;
}

.speaking-session-confidence {
    color: #f59e0b;
    font-size: 0.9rem;
}

.speaking-session-topics {
    color: #e2e8f0;
    font-size: 0.9rem;
    margin: 5px 0;
}

.speaking-session-challenges {
    color: #ef4444;
    font-size: 0.9rem;
    margin: 5px 0;
}

.speaking-session-date {
    color: #94a3b8;
    font-size: 0.8rem;
    text-align: right;
    margin-top: 10px;
}

.no-speaking-sessions {
    text-align: center;
    color: #94a3b8;
    padding: 40px;
}

/* Flashcard Sets Styling */
.flashcard-sets-section {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(16, 185, 129, 0.05) 100%);
    border: 1px solid rgba(59, 130, 246, 0.1);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
}

.sets-subtitle {
    color: #94a3b8;
    font-size: 0.95rem;
    margin-bottom: 20px;
    text-align: center;
}

.sets-categories {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.category-tab {
    background: rgba(51, 65, 85, 0.6);
    border: 2px solid rgba(100, 116, 139, 0.3);
    border-radius: 10px;
    padding: 12px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #e2e8f0;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.category-tab:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: #3b82f6;
    transform: translateY(-2px);
}

.category-tab.active {
    background: linear-gradient(135deg, #3b82f6, #10b981);
    border-color: #3b82f6;
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.sets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}

.flashcard-set-card {
    background: rgba(51, 65, 85, 0.6);
    border: 2px solid rgba(100, 116, 139, 0.3);
    border-radius: 15px;
    padding: 20px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.flashcard-set-card:hover {
    transform: translateY(-4px);
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.set-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.set-header h4 {
    color: #f1f5f9;
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.set-difficulty {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.set-description {
    color: #94a3b8;
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 15px;
}

.set-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 0.85rem;
}

.word-count {
    color: #10b981;
    font-weight: 600;
}

.study-time {
    color: #f59e0b;
}

.set-actions {
    display: flex;
    gap: 10px;
}

.btn-preview, .btn-start {
    flex: 1;
    padding: 10px 15px;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-preview {
    background: rgba(100, 116, 139, 0.3);
    color: #e2e8f0;
    border: 1px solid rgba(100, 116, 139, 0.5);
}

.btn-preview:hover {
    background: rgba(100, 116, 139, 0.5);
    border-color: #64748b;
}

.btn-start {
    background: linear-gradient(135deg, #3b82f6, #10b981);
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-start:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.no-sets-message {
    text-align: center;
    color: #94a3b8;
    font-style: italic;
    padding: 40px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 10px;
}

/* Manual Word Section Collapsed */
.manual-word-section.collapsed .add-word-form-container {
    display: none;
}

.section-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 15px 20px;
    background: rgba(51, 65, 85, 0.4);
    border: 1px solid rgba(100, 116, 139, 0.3);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.section-toggle:hover {
    background: rgba(51, 65, 85, 0.6);
    border-color: rgba(100, 116, 139, 0.5);
}

.expand-btn {
    background: rgba(100, 116, 139, 0.3);
    color: #e2e8f0;
    border: 1px solid rgba(100, 116, 139, 0.5);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.expand-btn:hover {
    background: rgba(100, 116, 139, 0.5);
}

/* Sessions Container for Flashcard Sessions */
.sessions-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

@media (max-width: 768px) {
    .sets-categories {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    
    .sets-grid {
        grid-template-columns: 1fr;
    }
    
    .set-actions {
        flex-direction: column;
    }
    
    .sessions-container {
        grid-template-columns: 1fr;
    }
}
