/* Glassmorphism Design System */

/* CSS Variables for Glassmorphism - Enhanced Text Clarity */
:root {
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    --glass-blur: blur(8px);
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --success-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --danger-gradient: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    --dark-gradient: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    --text-primary: rgba(255, 255, 255, 0.95);
    --text-secondary: rgba(255, 255, 255, 0.85);
    --text-muted: rgba(255, 255, 255, 0.65);
    --text-muted-nav: rgba(255, 255, 255, 0.233);
}

/* Global Styles */
* {
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 25%, #0f3460 50%, #1a1a2e 75%, #0d1421 100%);
    background-attachment: fixed;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Animated Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(30, 30, 80, 0.4) 0%, transparent 60%),
        radial-gradient(circle at 80% 20%, rgba(60, 30, 80, 0.3) 0%, transparent 60%),
        radial-gradient(circle at 40% 40%, rgba(20, 40, 100, 0.2) 0%, transparent 60%),
        radial-gradient(circle at 60% 70%, rgba(10, 10, 40, 0.5) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
    z-index: -1;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(1deg); }
    66% { transform: translateY(10px) rotate(-1deg); }
}

/* Glass Container Base */
.glass {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--glass-shadow);
    transition: all 0.3s ease;
}

.glass:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.5);
}

/* Navigation Bar */
.navbar {
    background: rgba(0, 0, 0, 0.1) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 0;
    margin-bottom: 0;
}

.navbar-brand {
    color: var(--text-primary) !important;
    font-weight: 700;
    font-size: 1.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.navbar-nav .nav-link {
    /* color: var(--text-secondary) !important; */
    color:rgba(255, 255, 255, 0.682);
    font-weight: 500;
    margin: 0 0.5rem;
    padding: 0.5rem 1rem !important;
    border-radius: 10px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.navbar-nav .nav-link:hover {
    color: rgba(255, 255, 255, 0.682);
    background: rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

/* Navigation and Dropdown Fixes */
.navbar {
    z-index: 1030;
}

.navbar .dropdown {
    z-index: 1040;
}

.dropdown-menu {
    background: rgba(255, 255, 255, 0.655) !important; /* Much more opaque */
    backdrop-filter: blur(8px); /* Reduced blur for better readability */
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.077);
    border-radius: 15px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.5);
    z-index: 1050 !important;
    position: absolute !important;
    padding: 0.5rem 0;
    display: none !important; /* Hidden by default */
    pointer-events: none !important; /* Disabled when hidden */
}

.dropdown-menu.show {
    z-index: 1050 !important;
    pointer-events: auto !important; /* Enable mouse interaction when shown */
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important; /* Only show when .show class is present */
}

.dropdown-item {
    color: #333 !important; /* Dark text for better contrast on light background */
    font-weight: 600; /* Increased font weight for better readability */
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
    border: none;
    text-shadow: none; /* Remove any text shadow */
    text-decoration: none !important;
    display: block !important;
    width: 100% !important;
    pointer-events: auto !important; /* Ensure items are clickable */
    cursor: pointer !important; /* Show pointer cursor */
}

.dropdown-item:hover,
.dropdown-item:focus {
    background: rgba(255, 255, 255, 0.9) !important; /* Solid white background for maximum contrast */
    color: #2c3e50 !important; /* Dark, high-contrast text color */
    transform: translateX(5px);
    border-radius: 8px;
    font-weight: 700; /* Bold text on hover for better visibility */
    text-shadow: none !important; /* Ensure no text shadow interferes */
    text-decoration: none !important;
}

.dropdown-item i {
    margin-right: 0.75rem;
    width: 1.2rem;
    text-align: center;
    color: #4facfe;
    transition: all 0.3s ease;
    pointer-events: none !important; /* Icons shouldn't interfere with clicks */
}

.dropdown-item:hover i,
.dropdown-item:focus i {
    color: #667eea !important; /* Clear icon color on hover */
}

.dropdown-divider {
    border-top: 1px solid rgba(0, 0, 0, 0.1); /* Dark divider for light background */
    margin: 0.5rem 0;
}

/* Responsive dropdown positioning for narrow screens */
@media (max-width: 991.98px) {
    .dropdown-menu {
        right: 0 !important;
        left: auto !important;
        transform: translateX(0) !important;
        z-index: 1050 !important;
    }
    
    .navbar-nav .dropdown .dropdown-menu {
        position: absolute !important;
        right: 0 !important;
        left: auto !important;
        margin-top: 0.5rem;
        z-index: 1050 !important;
    }
    
    /* Ensure dropdown doesn't extend beyond viewport */
    .navbar-collapse .dropdown-menu {
        max-width: calc(100vw - 2rem);
        right: 1rem !important;
        left: auto !important;
        z-index: 1050 !important;
    }
}

/* Additional positioning for very narrow screens */
@media (max-width: 576px) {
    .dropdown-menu {
        right: 0.5rem !important;
        left: auto !important;
        max-width: calc(100vw - 1rem);
        min-width: 200px;
        z-index: 1050 !important;
    }
}

/* Stats Section */
.stats-section {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 0;
    margin-bottom: 2rem;
}

.stats-section .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.stats-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-right: 2rem;
    font-size: 1.1rem;
}

.stat-item {
    display: flex;
    align-items: center;
    margin: 0.5rem 1rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.stat-item i {
    margin-right: 0.5rem;
    color: #4facfe;
    font-size: 1.1rem;
}

.stat-item strong {
    color: var(--text-primary);
    margin-left: 0.3rem;
}

/* Main Content Container */
.container-fluid {
    max-width: 1600px;
    margin: 0 auto;
    padding: 2rem;
}

/* Typography */
h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

h2 {
    font-size: 2rem;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

h3 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-weight: 600;
    font-size: 1.5rem;
}

p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Flash Messages */
.flash-messages {
    margin-bottom: 2rem;
}

.alert {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    color: var(--text-primary);
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.alert-success {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.2), rgba(139, 195, 74, 0.2));
    border-color: rgba(76, 175, 80, 0.3);
}

.alert-danger, .alert-error {
    background: linear-gradient(135deg, rgba(244, 67, 54, 0.2), rgba(233, 30, 99, 0.2));
    border-color: rgba(244, 67, 54, 0.3);
}

.alert-info {
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.2), rgba(3, 169, 244, 0.2));
    border-color: rgba(33, 150, 243, 0.3);
}

.alert-warning {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.2), rgba(255, 152, 0, 0.2));
    border-color: rgba(255, 193, 7, 0.3);
}

/* Cards and Containers */
.card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    transition: all 0.3s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.5);
}

.card-body {
    padding: 2rem;
    color: var(--text-primary);
}

.card-header {
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 2rem;
    font-weight: 600;
}

/* Paper Container */
.paper-container {
    max-width: 1200px;
    margin: 0 auto 2rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

/* Passage Styles */
.passage {
    margin-bottom: 2rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.passage h3 {
    margin-top: 0;
    color: var(--text-primary);
    font-size: 1.5rem;
}

.passage p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* Question Styles */
.questions {
    margin-top: 2rem;
}

.question {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.question:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.question p {
    margin: 0 0 1rem;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.options {
    margin-left: 1.5rem;
}

.options li {
    margin-bottom: 0.5rem;
    font-size: 1rem;
    color: var(--text-secondary);
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.options li:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Answer Styles */
.correct {
    color: #4caf50 !important;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.incorrect {
    color: #f44336 !important;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Score Summary */
.score-summary {
    margin-top: 2rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

.score-summary h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.score-summary p {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

.score-summary strong {
    color: var(--text-primary);
}

/* Summary Section */
.summary {
    margin-top: 2rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
}

.summary h3 {
    margin-top: 0;
    color: var(--text-primary);
}

.summary ul {
    margin: 0;
    padding-left: 1.5rem;
}

.summary li {
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
    color: var(--text-secondary);
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border-radius: 12px;
    text-decoration: none;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    border: none;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
    color: white;
}

.btn-danger {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(250, 112, 154, 0.4);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(250, 112, 154, 0.6);
    color: white;
}

.btn-success {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(79, 172, 254, 0.4);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 172, 254, 0.6);
    color: white;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    color: var(--text-primary);
}
.btn-cancel {
    background: rgba(255, 255, 255, 0.1);
    color: black;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
.btn-cancel:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    color: black;
}
.btn-cancel-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    color: black;
}

/* Back Link */
.back-link {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.back-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
    color: white;
    text-decoration: none;
}

/* Tables */
.table-responsive {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    color: var(--text-primary);
}

.table thead th {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border: none;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    border-radius: 10px 10px 0 0;
    white-space: nowrap;
}

.table tbody td {
    border: none;
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
}

.table tbody tr {
    transition: all 0.3s ease;
}

.table tbody tr:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: scale(1.01);
}

/* Badges */
.badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.85rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.bg-custom-easy {
    background: linear-gradient(135deg, #4caf50, #8bc34a);
    color: white;
}

.bg-custom-medium {
    background: linear-gradient(135deg, #ff9800, #ffc107);
    color: white;
}

.bg-custom-hard {
    background: linear-gradient(135deg, #f44336, #e91e63);
    color: white;
}

.badge:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Forms */
.form-control {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: var(--text-primary);
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(102, 126, 234, 0.5);
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
    color: var(--text-primary);
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-label {
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* Footer */
footer {
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: var(--text-secondary);
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
    margin: 2rem 0;
}

.page-button {
    padding: 0.5rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.page-button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.page-button.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
}

/* Special Effects */
.unanswered {
    border: 2px solid #f44336;
    background: rgba(244, 67, 54, 0.1);
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Tree View */
.tree-view {
    list-style-type: none;
    padding-left: 1.5rem;
}

.tree-view-item {
    margin-bottom: 0.8rem;
    color: var(--text-secondary);
}

.tree-view-item strong {
    color: var(--text-primary);
}

/* Summary Stats */
.summary-section {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    margin-bottom: 2rem;
}

.summary-stats {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.summary-stats .stat-item {
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.summary-stats .stat-item i {
    margin-right: 0.5rem;
    color: #4facfe;
}

.summary-stats .stat-item strong {
    color: var(--text-primary);
}

/* Fixed Height Button */
.fixed-height-btn {
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-header {
            padding: 2rem 1.5rem;
            min-height: 150px;
    }
    .hero-title {
            font-size: 2.5rem;
    }
    .container-fluid {
        padding: 1rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .stats-section .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .summary-stats {
        flex-direction: column;
    }
    
    .card-body {
        padding: 1.5rem;
    }
    
    .paper-container {
        padding: 1.5rem;
        margin: 0 1rem 2rem;
    }
    .user-info-card {
            flex-direction: column;
            align-items: flex-start;
            gap: 1rem;
    }
    .table-modern {
            font-size: 0.85rem;
    }
    .skill-row td:first-child {
            padding-left: 2rem !important;
    }
    .skill-row td:first-child::before {
            left: 1rem;
    }
}

/* Animation Classes */
@keyframes slideIn {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

.alert {
    animation: slideIn 0.5s ease-out;
}

.alert.fade-out {
    animation: fadeOut 0.5s ease-out;
}

/* Loading Animation */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(102, 126, 234, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0);
    }
}

.pulse {
    animation: pulse 2s infinite;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Paper List Specific Styles */

/* Enhanced Glass Container Base */
.glass-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
}

.glass-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
}

.glass-container:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

/* Enhanced Hero Header */
.hero-header {
    padding: 3rem 2.5rem;
    position: relative;
    min-height: 200px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-radius: 20px;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3), 0 0 20px rgba(255, 255, 255, 0.2);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.hero-icon {
    font-size: 3rem;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0;
    font-weight: 500;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.hero-actions {
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
    align-items: center;
    justify-content: flex-end;
}

/* Enhanced Stats Card */
.stats-card {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    min-width: 180px;
    height: 80px;
}

.stats-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.2);
}

.stats-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-right: 1rem;
    flex-shrink: 0;
}

.stats-content {
    flex: 1;
}

.stats-number {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #68ea66 0%, #4ba29e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.stats-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-top: 0.25rem;
}

/* Enhanced Generate Button */
.generate-button-wrapper {
    flex-shrink: 0;
}

.btn-generate {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.25rem 1.5rem;
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
    width: 280px;
    height: 80px;
}

.btn-generate::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-generate:hover::before {
    left: 100%;
}

.btn-generate:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
    color: white;
}

.btn-generate-icon {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.btn-generate-content {
    flex: 1;
    text-align: left;
}

.btn-generate-text {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.2;
}

.btn-generate-subtitle {
    display: block;
    font-size: 0.85rem;
    opacity: 0.9;
    margin-top: 0.25rem;
}

.btn-generate-arrow {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.btn-generate:hover .btn-generate-arrow {
    transform: translateX(5px);
}

/* Enhanced Papers Section */
.papers-section {
    padding: 2.5rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;

    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3), 0 0 15px rgba(255, 255, 255, 0.2);
    margin-bottom: 0.5rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0;
}

.section-title-wrapper {
    flex: 1;
}

.section-actions {
    flex-shrink: 0;
}

.refresh-btn {
    border-radius: 10px;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.refresh-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Enhanced Papers Grid */
.papers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.paper-card-wrapper {
    transition: transform 0.3s ease;
}

.paper-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 18px;
    padding: 0;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.paper-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.paper-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    border-color: rgba(102, 126, 234, 0.4);
}

.paper-card-header {
    padding: 1.5rem 1.5rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.paper-badge-row {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.paper-badge-row .roadmap-badge,
.paper-badge-row .badge-math,
.paper-badge-row .badge-reading-writing,
.paper-badge-row .paper-type-badge {
    display: inline-flex;
    align-items: center;
}

.paper-badge-row .roadmap-badge { 
    margin: 0; 
}

.paper-badge-row i {
    font-size: 0.9rem;
    line-height: 1;
}

.paper-id-section {
    flex-shrink: 0;
}

.paper-id-badge {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 10px;
    font-weight: 600;
    color: var(--text-primary);
    gap: 0.5rem;
}

.paper-type-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.paper-card-body {
    padding: 0 1.5rem 1rem;
    flex-grow: 1;
}

.paper-meta {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.paper-date-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.date-primary {
    display: flex;
    align-items: center;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
}

.date-secondary {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Paper Content Statistics */
.paper-content-stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.content-stat-item {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 0.75rem;
    gap: 0.75rem;
    flex: 1;
    min-width: 0;
}

.content-stat-icon {
    width: 35px;
    height: 35px;
    border-radius: 8px;
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.content-stat-content {
    flex: 1;
    min-width: 0;
}

.content-stat-number {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.content-stat-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-top: 0.2rem;
}

/* Test Statistics */
.test-stats {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.test-stat-item {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 0.75rem;
    gap: 0.75rem;
    flex: 1;
    min-width: 0;
}

.test-stat-icon {
    width: 35px;
    height: 35px;
    border-radius: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.test-stat-icon.completed {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.test-stat-content {
    flex: 1;
    min-width: 0;
}

.test-stat-number {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.test-stat-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-top: 0.2rem;
}

.paper-card-footer {
    padding: 1rem 1.5rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.paper-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

.action-btn {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: none;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    cursor: pointer;
    position: relative;
}

.action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.view-btn {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

.download-btn {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    color: white;
}

.test-btn {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    color: white;
}

.continue-btn {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
}

.continue-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(40, 167, 69, 0.4);
    color: white;
}

.history-btn {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    color: #333;
}

.delete-btn {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
    color: #333;
}

.delete-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    color: white;
}

/* Enhanced Empty State */
.empty-state {
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
}

.empty-state-content {
    max-width: 500px;
    margin: 0 auto;
}

.empty-state-icon {
    position: relative;
    display: inline-block;
    margin-bottom: 2rem;
}

.empty-state-icon i {
    font-size: 5rem;
    color: var(--text-secondary);
    opacity: 0.6;
    position: relative;
    z-index: 2;
}

.empty-state-icon-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-radius: 50%;
    z-index: 1;
}

.empty-state-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.empty-state-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.empty-state-action {
    margin-top: 2rem;
}

.btn-generate-first {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 2rem;
    border-radius: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    font-weight: 600;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    gap: 1rem;
}

.btn-generate-first:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
    color: white;
}

.btn-generate-first-icon {
    width: 35px;
    height: 35px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-generate-first-arrow {
    transition: transform 0.3s ease;
}

.btn-generate-first:hover .btn-generate-first-arrow {
    transform: translateX(5px);
}

/* Download Modal Enhancements */
.modal-content.glass-container {
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
}

.download-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.download-option {
    display: flex;
    align-items: center;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.download-option:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(102, 126, 234, 0.3);
    transform: translateX(8px);
    color: inherit;
}

.download-icon {
    width: 55px;
    height: 55px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    margin-right: 1.25rem;
    font-size: 1.3rem;
}

.download-content h6 {
    margin: 0 0 0.25rem 0;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.download-content p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.download-arrow {
    margin-left: auto;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.download-option:hover .download-arrow {
    transform: translateX(5px);
    color: #667eea;
}

/* Loading Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.paper-card-wrapper {
    animation: fadeInUp 0.6s ease forwards;
}

.hero-actions > * {
    animation: slideInRight 0.6s ease forwards;
}

.paper-card-wrapper:nth-child(1) { animation-delay: 0.1s; }
.paper-card-wrapper:nth-child(2) { animation-delay: 0.2s; }
.paper-card-wrapper:nth-child(3) { animation-delay: 0.3s; }
.paper-card-wrapper:nth-child(4) { animation-delay: 0.4s; }
.paper-card-wrapper:nth-child(5) { animation-delay: 0.5s; }
.paper-card-wrapper:nth-child(6) { animation-delay: 0.6s; }

.stats-card { animation-delay: 0.2s; }
.btn-generate { animation-delay: 0.4s; }

/* Filter Section Styles */
.filter-section {
    padding: 20px;
    margin-bottom: 20px;
}

.filter-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
    display: flex;
    align-items: center;
}

.filter-controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: white;
    margin: 0;
    white-space: nowrap;
}

.filter-select {
    min-width: 200px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 0.9rem;
    background: white;
    transition: all 0.3s ease;
}

.filter-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    outline: none;
}

.filter-count {
    font-size: 0.85rem;
    color: white;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 6px;
    white-space: nowrap;
}

/* Responsive Design for Paper List */
@media (max-width: 1200px) {
    .papers-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 992px) {
    .hero-actions {
        justify-content: center;
    }
    
    .btn-generate {
        width: 260px;
    }
}

@media (max-width: 768px) {
    .filter-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .filter-group {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    
    .filter-select {
        min-width: auto;
        width: 100%;
    }
    
    .filter-count {
        text-align: center;
    }
    
    .hero-header {
        padding: 2rem 1.5rem;
        min-height: auto;
    }
    
    .hero-title {
        font-size: 2.5rem;
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
        color: #ffffff;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3), 0 0 20px rgba(255, 255, 255, 0.2);
        filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
        margin-top: 2rem;
        gap: 1rem;
    }
    
    .btn-generate {
        width: 100%;
        max-width: 300px;
    }
    
    .stats-card {
        width: 100%;
        max-width: 200px;
        justify-content: center;
        min-width: auto;
    }
    
    .papers-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .section-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .paper-actions {
        gap: 0.5rem;
    }
    
    .action-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .paper-content-stats {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .content-stat-item {
        padding: 0.5rem;
    }
    
    .content-stat-icon {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }
    
    .test-stats {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .test-stat-item {
        padding: 0.5rem;
    }
    
    .test-stat-icon {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }
    
    .download-options {
        gap: 0.75rem;
    }
    
    .download-option {
        padding: 0.75rem;
    }
    
    .download-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* Navigation and Accordion Styles */
.navbar {
    z-index: 1030;
}

.navbar-nav {
    text-align: left !important;
}

/* Accordion Navigation Styles */
.accordion-nav-item {
    width: 100%;
    text-align: left !important;
}

.accordion-toggle {
    display: flex !important;
    align-items: center;
    justify-content: flex-start !important;
    width: 100%;
    text-decoration: none !important;
    cursor: pointer;
    text-align: left !important;
}

.accordion-toggle .accordion-arrow {
    margin-left: auto !important;
    transition: transform 0.3s ease;
    font-size: 0.8rem;
}

.accordion-toggle[aria-expanded="true"] .accordion-arrow {
    transform: rotate(180deg);
}

.accordion-content {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin: 0.25rem 0;
    padding: 0.5rem 0;
    text-align: left !important;
}

.sub-nav-link {
    color: #000000 !important;
    font-size: 0.9rem;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s ease;
    border-radius: 6px;
    margin: 0.1rem 0;
    text-align: left !important;
    display: flex !important;
    align-items: center;
}

.sub-nav-link:hover {
    color: #000000 !important;
    background: rgb(255, 255, 255);
    transform: translateX(5px);
}

.sub-nav-link i {
    color: #4facfe;
    width: 1.2rem;
    text-align: center;
    margin-right: 0.5rem;
}

/* Responsive behavior */
@media (min-width: 992px) {
    .navbar-nav {
        flex-direction: row !important;
        text-align: left !important;
    }
    
    .accordion-nav-item {
        width: auto;
        position: relative;
        text-align: left !important;
    }
    
    .accordion-content {
        position: absolute;
        top: 100%;
        left: 0;
        min-width: 250px;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 12px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
        z-index: 1050;
        margin-top: 0.5rem;
        text-align: left !important;
    }
    
    .sub-nav-link {
        color: #000000 !important;
        text-align: left !important;
    }
    
    .sub-nav-link:hover {
        color: #000000 !important;
        background: rgba(255, 255, 255, 0.8);
    }
}

@media (max-width: 991.98px) {
    .navbar-nav {
        flex-direction: column !important;
        text-align: left !important;
    }
    
    .accordion-content {
        position: static;
        width: 100%;
        background: rgba(255, 255, 255, 0.05);
        text-align: left !important;
    }
    
    .accordion-nav-item {
        text-align: left !important;
    }
    
    .sub-nav-link {
        color: white !important;
    }
    
    .sub-nav-link:hover {
        color: #000000 !important;
    }
}

/* Keep existing dropdown styles for user profile */
.dropdown-menu {
    background: rgba(255, 255, 255, 0.655) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.077);
    border-radius: 15px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.5);
    z-index: 1050 !important;
    position: absolute !important;
    padding: 0.5rem 0;
    display: none !important;
    pointer-events: none !important;
}

.dropdown-menu.show {
    z-index: 1050 !important;
    pointer-events: auto !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

.dropdown-item {
    color: #000000 !important;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
    border: none;
    text-shadow: none;
    text-decoration: none !important;
    display: block !important;
    width: 100% !important;
    pointer-events: auto !important;
    cursor: pointer !important;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background: rgba(255, 255, 255, 0.9) !important;
    color: #000000 !important;
    transform: translateX(5px);
    border-radius: 8px;
    font-weight: 700;
    text-shadow: none !important;
    text-decoration: none !important;
}

.dropdown-item i {
    margin-right: 0.75rem;
    width: 1.2rem;
    text-align: center;
    color: #4facfe;
    transition: all 0.3s ease;
    pointer-events: none !important;
}

.dropdown-item:hover i,
.dropdown-item:focus i {
    color: #667eea !important;
}

.dropdown-divider {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    margin: 0.5rem 0;
}

/* ===== PERFORMANCE ANALYSIS SPECIFIC STYLES ===== */

/* Enhanced User Info Card */
.user-info-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    padding: 1.5rem;
    color: white;
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.user-info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    font-size: 1rem;
}

.user-info-item i {
    font-size: 1.2rem;
    color: white;
    text-shadow: 0 0 10px rgba(96, 165, 250, 0.5);
}

/* Enhanced Section Headers */
.section-header {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px 16px 0 0;
    padding: 1.5rem 2rem;
    position: relative;
    overflow: hidden;
}

.section-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2, #667eea);
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3), 0 0 15px rgba(255, 255, 255, 0.2);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.section-title i {
    font-size: 1.3rem;
    color: white;
    text-shadow: 0 0 10px rgba(96, 165, 250, 0.5);
}

/* Enhanced Table Styling */
.table-container {
    background: rgba(255, 255, 255, 0.95);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.table-modern {
    margin: 0;
    background: transparent;
}

.table-modern thead th {
    background: linear-gradient(135deg, #374151, #1f2937);
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 1rem 0.75rem;
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.table-modern tbody tr {
    transition: all 0.3s ease;
    border: none;
}

.table-modern tbody tr:hover {
    background: rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.table-modern tbody td {
    padding: 1rem 0.75rem;
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    vertical-align: middle;
    font-weight: 500;
    color: #374151;
}

/* Domain and skill row styling */
.domain-row {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1)) !important;
    font-weight: 700 !important;
    color: #1f2937 !important;
}

.domain-row td {
    border-bottom: 2px solid rgba(102, 126, 234, 0.2) !important;
    font-weight: 700;
}

.skill-row td:first-child {
    padding-left: 2.5rem !important;
    position: relative;
}

.skill-row td:first-child::before {
    content: '└';
    position: absolute;
    left: 1.5rem;
    color: #9ca3af;
    font-weight: bold;
}

/* Enhanced Progress Bars */
.progress-modern {
    height: 28px;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-bar-modern {
    height: 100%;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.85rem;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.progress-bar-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.bg-success-modern {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.bg-warning-modern {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.bg-danger-modern {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.bg-info-modern {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

/* Enhanced Difficulty Badges */
.difficulty-badge {
    padding: 0.5rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.difficulty-easy {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.difficulty-medium {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.difficulty-hard {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

/* Enhanced Paper ID Badge */
.paper-id-badge {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    gap: 0.25rem;
    transition: all 0.3s ease;
}

.paper-id-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.paper-id-badge i {
    font-size: 0.8rem;
}

/* Enhanced Back Button */
.btn-back {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #6b7280, #4b5563);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(107, 114, 128, 0.3);
    border: none;
}

.btn-back:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(107, 114, 128, 0.4);
    color: white;
    text-decoration: none;
}


.btn-navigate {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    border: none;
    cursor: pointer;
}

.btn-navigate:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
    color: white;
    text-decoration: none;
}

.btn-navigate-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
}

.btn-navigate-arrow {
    transition: transform 0.3s ease;
}

.btn-navigate:hover .btn-navigate-arrow {
    transform: translateX(3px);
}

.navigation-actions {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 1.5rem;
    text-align: center;
}


/* Welcome Section Styles */
.welcome-section {
    max-width: 1200px;
    margin: 0 auto;
}

.welcome-hero {
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.1) 0%, rgba(80, 200, 120, 0.1) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
}

.welcome-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.welcome-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.welcome-actions .btn {
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.welcome-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Release Notes Styles */
.release-notes {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    margin-top: 2rem;
}

.release-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.release-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.release-version {
    display: inline-block;
    background: linear-gradient(135deg, #4a90e2, #50c878);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Feature Category Styles */
.feature-category {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    padding: 1.5rem;
    height: 100%;
    transition: all 0.3s ease;
}

.feature-category:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.category-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.category-icon {
    font-size: 1.5rem;
    color: #4a90e2;
    margin-right: 0.75rem;
}

.category-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

/* Feature Item Styles */
.feature-list {
    space-y: 1rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.feature-icon {
    font-size: 1.2rem;
    color: #50c878;
    margin-right: 1rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.feature-content h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.feature-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.4;
}

/* Call to Action Styles */
.welcome-cta {
    background: linear-gradient(135deg, rgba(80, 200, 120, 0.1) 0%, rgba(74, 144, 226, 0.1) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
}

.cta-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.cta-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-actions .btn {
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.cta-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}
/* Text Visibility Improvements */
    .text-muted {
        color: rgba(255, 255, 255, 0.8) !important;
        font-weight: 600 !important;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    }
    .text-muted-nav {
        color: black;
        font-weight: 600 !important;
    }

    /* Section Headings Enhancement */
    h6.text-muted {
        color: rgba(255, 255, 255, 0.9) !important;
        font-weight: 700 !important;
        font-size: 1rem !important;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
        margin-bottom: 1rem !important;
    }

/* Performance Analysis Responsive Design */
@media (max-width: 768px) {
    .user-info-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .table-modern {
        font-size: 0.85rem;
    }
    
    .skill-row td:first-child {
        padding-left: 2rem !important;
    }
    
    .skill-row td:first-child::before {
        left: 1rem;
    }
}

/* Animation for page load */
.fade-in {
    animation: fadeIn 0.8s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Back to Login Button Styles */
.back-to-login {
    text-align: center;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.back-to-login-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.back-to-login-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.back-to-login-btn:hover::before {
    left: 100%;
}

.back-to-login-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(102, 126, 234, 0.5);
    color: var(--text-primary);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.back-to-login-btn:focus {
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.back-to-login-btn i {
    margin-right: 0.5rem;
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.back-to-login-btn:hover i {
    transform: translateX(-3px);
}

/* Alternative gradient style for back button */
.back-to-login-btn.gradient {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.8) 0%, rgba(118, 75, 162, 0.8) 100%);
    border: 1px solid rgba(102, 126, 234, 0.3);
    color: white;
}

.back-to-login-btn.gradient:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.9) 100%);
    border-color: rgba(102, 126, 234, 0.6);
    color: white;
}

/* Responsive design for back button */
@media (max-width: 768px) {
    .back-to-login-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
}

/* Simplified Roadmap Badge with Tooltip */
.roadmap-badge {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    margin: 4px 2px;
}

.roadmap-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #7c8df0 0%, #8a5cb8 100%);
}

.roadmap-badge .badge-icon {
    margin-right: 4px;
    font-size: 0.8rem;
}

/* Tooltip Styles */
.roadmap-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 8px;
}

.roadmap-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.9);
}

.roadmap-badge:hover .roadmap-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-5px);
}

.tooltip-section {
    display: block;
    margin-bottom: 4px;
}

.tooltip-section:last-child {
    margin-bottom: 0;
}

.tooltip-label {
    font-weight: 600;
    color: #a0aec0;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tooltip-value {
    font-weight: 500;
    color: white;
    margin-left: 8px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .roadmap-tooltip {
        position: fixed;
        bottom: auto;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        max-width: 280px;
        white-space: normal;
        text-align: center;
    }
    
    .roadmap-tooltip::after {
        display: none;
    }
    
    .roadmap-badge:hover .roadmap-tooltip {
        transform: translate(-50%, -50%);
    }
}
.paper-header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.paper-type-row {
    display: inline-flex;
    align-items: center;
}

/* Allow dropdown menus in hero header to overflow the container */
.hero-header.glass-container {
    overflow: visible;
}

.generate-button-wrapper .dropdown {
    position: relative;
    z-index: 3;
}

.generate-button-wrapper .dropdown-menu {
    margin-top: 8px;
    z-index: 1060;
}

/* Navbar adjustments for middle width screens (LG breakpoint) */
@media (min-width: 1024px) and (max-width: 2240px) {
    .navbar-nav .nav-link {
        margin: 0 0.1rem;
        padding: 0.5rem 0.5rem !important;
        font-size: 0.9rem;
    }
    .navbar-brand {
        font-size: 1.25rem;
    }
}
