/* ===========================
   TaleyLearn V2 - Essential Edition
   Professional, Clean, Scalable
   =========================== */

/* CSS Variables */
:root {
    --deep-navy: #1a2332;
    --lightblue: #ADD8E6;
    --off-white: #f8f9fa;
    --violet: #7B68EE;
    --charcoal: #36454F;
    
    --primary: var(--lightblue);
    --secondary: var(--violet);
    --dark: var(--deep-navy);
    --light: var(--off-white);
    --text-dark: var(--charcoal);
    
    --success: #27ae60;
    --warning: #f39c12;
    --error: #e74c3c;
    
    --beginner: #27ae60;
    --intermediate: #f39c12;
    --advanced: #e74c3c;
    
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition: all 0.3s ease;
}

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

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--off-white);
    line-height: 1.6;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    color: var(--deep-navy);
}

h1 { font-size: 2.75rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }

p { font-size: 1.0625rem; line-height: 1.7; }

/* Navigation */
.navbar {
    background-color: var(--deep-navy);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

.nav-brand a {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--lightblue);
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu li a {
    color: var(--off-white);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.nav-menu li a:hover {
    color: var(--lightblue);
}

.nav-login {
    background-color: var(--lightblue);
    color: var(--deep-navy) !important;
    padding: 0.5rem 1.25rem !important;
    border-radius: 6px;
    font-weight: 600 !important;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--off-white);
    margin: 3px 0;
}

/* HERO - REDUCED HEIGHT */
.hero {
    background: linear-gradient(135deg, var(--deep-navy) 0%, var(--charcoal) 100%);
    color: var(--off-white);
    padding: 2.5rem 0;  /* REDUCED from 5rem */
    text-align: center;
}

.hero h1 {
    color: var(--off-white);
    font-size: 2.75rem;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Stats Bar */
.stats-bar {
    background-color: white;
    padding: 2rem 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--lightblue);
    font-family: var(--font-heading);
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background-color: var(--lightblue);
    color: var(--deep-navy);
}

.btn-primary:hover {
    background-color: #98daf0;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--off-white);
    border: 2px solid var(--off-white);
}

.btn-secondary:hover {
    background-color: var(--off-white);
    color: var(--deep-navy);
}

.btn-large {
    padding: 1.125rem 2.5rem;
    font-size: 1.125rem;
}

.btn-block {
    width: 100%;
}

/* Sections */
section {
    padding: 4rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header p {
    opacity: 0.8;
    max-width: 600px;
    margin: 1rem auto 0;
}

/* Learning Path */
.learning-path {
    background-color: white;
}

.path-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.path-step {
    background-color: var(--off-white);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
}

.path-step:hover {
    border-color: var(--lightblue);
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--lightblue), var(--violet));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1rem;
}

.step-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.step-badge.beginner {
    background-color: rgba(39, 174, 96, 0.1);
    color: var(--beginner);
}

.step-badge.intermediate {
    background-color: rgba(243, 156, 18, 0.1);
    color: var(--intermediate);
}

.step-badge.advanced {
    background-color: rgba(231, 76, 60, 0.1);
    color: var(--advanced);
}

.step-link {
    color: var(--lightblue);
    text-decoration: none;
    font-weight: 600;
}

/* Featured Courses - 3 ONLY */
.courses-section {
    background-color: var(--off-white);
}

.featured-courses {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.course-card {
    background-color: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    position: relative;
    border: 2px solid var(--lightblue);
}

.course-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.course-ribbon {
    position: absolute;
    top: -10px;
    right: 20px;
    background: linear-gradient(135deg, var(--lightblue), var(--violet));
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8125rem;
    font-weight: 600;
}

.course-tag {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    border-radius: 20px;
    font-size: 0.8125rem;
    font-weight: 600;
    margin: 0.5rem 0 1rem;
    text-transform: uppercase;
}

.course-tag.beginner {
    background-color: rgba(39, 174, 96, 0.1);
    color: var(--beginner);
}

.course-tag.intermediate {
    background-color: rgba(243, 156, 18, 0.1);
    color: var(--intermediate);
}

.course-tag.advanced {
    background-color: rgba(231, 76, 60, 0.1);
    color: var(--advanced);
}

.course-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    flex-wrap: wrap;
}

.browse-all {
    text-align: center;
    margin-top: 2rem;
}

/* How It Works */
.how-it-works {
    background-color: white;
}

.features-grid-three {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.feature-card-large {
    text-align: center;
    padding: 2.5rem 2rem;
    background-color: var(--off-white);
    border-radius: 12px;
    transition: var(--transition);
}

.feature-card-large:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.feature-icon-large {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.feature-link {
    color: var(--lightblue);
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    margin-top: 1rem;
}

/* Testimonial */
.testimonial-section {
    background: linear-gradient(135deg, var(--deep-navy), var(--charcoal));
    color: white;
    padding: 4rem 0;
}

.testimonial-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.quote-icon {
    font-size: 4rem;
    color: var(--lightblue);
    opacity: 0.5;
}

.testimonial-text {
    font-size: 1.25rem;
    font-style: italic;
    margin: 1rem 0 2rem;
}

.testimonial-author strong {
    color: var(--lightblue);
}

/* CTA */
.cta-section {
    background: #778899;
    color: white;
    text-align: center;
    padding: 4rem 0;
}

.cta-content h2 {
    color: white;
    margin-bottom: 1rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin: 2rem 0 1rem;
}

.cta-note {
    font-size: 0.875rem;
    opacity: 0.8;
}

/* LESSONS PAGE - FILTERING */
.filter-bar {
    background-color: white;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 3rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.filter-group {
    margin-bottom: 1.5rem;
}

.filter-label {
    font-weight: 600;
    margin-bottom: 0.75rem;
    display: block;
    color: var(--deep-navy);
}

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

.filter-btn {
    padding: 0.5rem 1.25rem;
    border: 2px solid var(--text-dark);
    background-color: white;
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.filter-btn:hover {
    border-color: var(--lightblue);
    color: var(--lightblue);
}

.filter-btn.active {
    background-color: var(--lightblue);
    border-color: var(--lightblue);
    color: var(--deep-navy);
}

.search-bar {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.search-bar input {
    flex: 1;
    padding: 0.75rem 1.25rem;
    border: 2px solid rgba(54, 69, 79, 0.2);
    border-radius: 8px;
    font-size: 1rem;
}

.search-bar select {
    padding: 0.75rem 1.25rem;
    border: 2px solid rgba(54, 69, 79, 0.2);
    border-radius: 8px;
    font-size: 1rem;
}

/* Lessons Grid - 3 COLUMNS */
.lessons-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.lesson-card {
    background-color: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    border-left: 4px solid var(--lightblue);
}

.lesson-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.lesson-card.hidden {
    display: none;
}

/* TWO-COLUMN LESSON LAYOUT */
.lesson-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.lesson-sidebar {
    background-color: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    height: fit-content;
    position: sticky;
    top: 90px;
}

.sidebar-section {
    margin-bottom: 2rem;
}

.sidebar-section h4 {
    color: var(--lightblue);
    margin-bottom: 1rem;
    font-size: 0.9375rem;
}

.lesson-nav-list {
    list-style: none;
}

.lesson-nav-list li {
    padding: 0.75rem;
    border-radius: 6px;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.lesson-nav-list li:hover {
    background-color: var(--off-white);
}

.lesson-nav-list li.active {
    background-color: var(--lightblue);
    color: var(--deep-navy);
    font-weight: 600;
}

.lesson-nav-list li.completed::before {
    content: "✓ ";
    color: var(--success);
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: var(--off-white);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--lightblue), var(--violet));
    transition: width 0.3s ease;
}

.quick-action-btn {
    display: block;
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.quick-action-btn.practice {
    background-color: var(--lightblue);
    color: var(--deep-navy);
}

.quick-action-btn.leybot {
    background-color: var(--violet);
    color: white;
}

.lesson-content {
    background-color: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}


/* Practice */
.practice-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

.practice-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 30px;
}

.practice-panel {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.practice-panel h2 {
    color: #1e3a5f;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.schema-display {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.schema-table {
    margin-bottom: 20px;
}

.schema-table h3 {
    color: #1e3a5f;
    font-size: 1rem;
    margin-bottom: 10px;
}

.schema-table ul {
    list-style: none;
    padding-left: 0;
}

.schema-table li {
    padding: 5px 0;
    color: #555;
}

.query-editor {
    width: 100%;
    min-height: 200px;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    resize: vertical;
    transition: border-color 0.3s;
}

.query-editor:focus {
    outline: none;
    border-color: #00b8d4;
}

.button-group {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.btn-execute {
    background: #00b8d4;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-execute:hover {
    background: #008fa1;
    transform: translateY(-2px);
}

.btn-clear {
    background: #f5f5f5;
    color: #333;
    border: 2px solid #e0e0e0;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-clear:hover {
    background: #e0e0e0;
}

.results-container {
    margin-top: 20px;
}

.results-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

.results-table th {
    background: #1e3a5f;
    color: white;
    padding: 12px;
    text-align: left;
    font-weight: 600;
}

.results-table td {
    padding: 12px;
    border-bottom: 1px solid #e0e0e0;
}

.results-table tr:hover {
    background: #f8f9fa;
}

.error-message {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    color: #856404;
}

.success-message {
    background: #d4edda;
    border-left: 4px solid #28a745;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    color: #155724;
}

.sample-queries {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.sample-queries h3 {
    color: #1e3a5f;
    margin-bottom: 15px;
}

.sample-query {
    background: white;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 10px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.sample-query:hover {
    border-color: #00b8d4;
    transform: translateX(5px);
}

.sample-query code {
    display: block;
    font-family: 'Courier New', monospace;
    color: #333;
    margin-bottom: 5px;
}

.sample-query .description {
    font-size: 0.9rem;
    color: #666;
}

.stats-bar2 {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

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

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #00b8d4;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
    margin-top: 5px;
}

/* Footer */
.footer {
    background-color: var(--deep-navy);
    color: var(--off-white);
    padding: 3.5rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 3rem;
    margin-bottom: 2.5rem;
}

.footer-section h4 {
    color: var(--lightblue);
    margin-bottom: 1.25rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section ul li a {
    color: var(--off-white);
    text-decoration: none;
    opacity: 0.8;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: var(--lightblue);
    opacity: 1;
}

.footer-bottom {
    border-top: 1px solid rgba(248, 249, 250, 0.1);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    font-size: 0.875rem;
    opacity: 0.7;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--off-white);
    text-decoration: none;
    font-size: 0.875rem;
    opacity: 0.7;
}

/* Responsive */
@media (max-width: 1024px) {
    .lessons-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .lesson-layout {
        grid-template-columns: 1fr;
    }
    
    .lesson-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--deep-navy);
        width: 100%;
        padding: 2rem 0;
        gap: 0;
        transition: 0.3s;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 1rem 0;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .featured-courses,
    .lessons-grid {
        grid-template-columns: 1fr;
    }
    
    .path-steps {
        grid-template-columns: 1fr;
    }
    
    .features-grid-three {
        grid-template-columns: 1fr;
    }
}

/* ===========================
   LEYBOT PAGE STYLES
   =========================== */

.chat-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.chat-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
    margin-top: 30px;
}

.chat-sidebar {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    height: fit-content;
}

.chat-sidebar h3 {
    color: #1e3a5f;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.quick-topics {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.topic-btn {
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    padding: 12px 15px;
    border-radius: 8px;
    cursor: pointer;
    text-align: left;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.topic-btn:hover {
    border-color: #00b8d4;
    background: #e3f2fd;
}

.chat-main {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    height: 600px;
}

.chat-header {
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a8f 100%);
    color: white;
    padding: 20px 25px;
    border-radius: 12px 12px 0 0;
}

.chat-header h2 {
    margin: 0;
    font-size: 1.5rem;
}

.chat-header p {
    margin: 5px 0 0 0;
    opacity: 0.9;
    font-size: 0.9rem;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 25px;
    background: #f8f9fa;
}

.message {
    margin-bottom: 20px;
    display: flex;
    gap: 15px;
    animation: fadeIn 0.3s ease-in;
}

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

.message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.user-avatar {
    background: #00b8d4;
    color: white;
}

.bot-avatar {
    background: #9b59b6;
    color: white;
}

.message-content {
    flex: 1;
    background: white;
    padding: 15px 20px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.message.user-message .message-content {
    background: #e3f2fd;
}

.message-content pre {
    background: #2d2d2d;
    color: #f8f8f2;
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 10px 0;
}

.message-content code {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.chat-input-area {
    padding: 20px 25px;
    background: white;
    border-top: 1px solid #e0e0e0;
    border-radius: 0 0 12px 12px;
}

.chat-input-container {
    display: flex;
    gap: 15px;
    align-items: flex-end;
}

.chat-input {
    flex: 1;
    min-height: 50px;
    max-height: 120px;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    resize: vertical;
    font-family: inherit;
    transition: border-color 0.3s;
}

.chat-input:focus {
    outline: none;
    border-color: #00b8d4;
}

.send-btn {
    background: #00b8d4;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.send-btn:hover {
    background: #008fa1;
    transform: translateY(-2px);
}

.send-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.typing-indicator {
    display: none;
    padding: 15px;
    color: #666;
    font-style: italic;
}

.typing-indicator.active {
    display: block;
}

.welcome-message {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.welcome-message h3 {
    color: #1e3a5f;
    margin-bottom: 15px;
}

.suggestions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 30px;
}

.suggestion-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
    cursor: pointer;
    transition: all 0.3s;
}

.suggestion-card:hover {
    border-color: #00b8d4;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.suggestion-card h4 {
    color: #1e3a5f;
    margin-bottom: 8px;
    font-size: 1rem;
}

.suggestion-card p {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

/* ===========================
   LOGIN PAGE STYLES
   =========================== */

.login-container {
    max-width: 450px;
    margin: 80px auto;
    padding: 20px;
}

.login-card {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h1 {
    color: #1e3a5f;
    margin-bottom: 10px;
}

.login-header p {
    color: #666;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: #333;
    font-weight: 600;
    margin-bottom: 8px;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #00b8d4;
}

.btn-login {
    width: 100%;
    background: #00b8d4;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-login:hover {
    background: #008fa1;
    transform: translateY(-2px);
}

.btn-login:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.form-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    display: none;
}

.divider {
    text-align: center;
    margin: 30px 0;
    color: #999;
    position: relative;
}

.divider::before,
.divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 45%;
    height: 1px;
    background: #e0e0e0;
}

.divider::before {
    left: 0;
}

.divider::after {
    right: 0;
}

.btn-register {
    width: 100%;
    background: white;
    color: #00b8d4;
    border: 2px solid #00b8d4;
    padding: 15px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: block;
    text-align: center;
}

.btn-register:hover {
    background: #e3f2fd;
}

.forgot-password {
    text-align: center;
    margin-top: 15px;
}

.forgot-password a {
    color: #00b8d4;
    text-decoration: none;
}

.forgot-password a:hover {
    text-decoration: underline;
}

.features-list {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-top: 30px;
}

.features-list h3 {
    color: #1e3a5f;
    margin-bottom: 15px;
    font-size: 1rem;
}

.features-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.features-list li {
    padding: 8px 0;
    color: #555;
}

.features-list li::before {
    content: '✓ ';
    color: #00b8d4;
    font-weight: 700;
    margin-right: 8px;
}

/* ===========================
   RESPONSIVE FOR CHAT/LOGIN
   =========================== */

@media (max-width: 968px) {
    .chat-layout {
        grid-template-columns: 1fr;
    }

    .chat-sidebar {
        order: 2;
    }

    .chat-main {
        height: 500px;
    }
}

/* ===================================
   DASHBOARD STYLES
   =================================== */

/* Dashboard Header */
.dashboard-header {
    background: linear-gradient(135deg, var(--deep-navy) 0%, var(--charcoal) 100%);
    color: var(--off-white);
    padding: 3rem 0;
}

.welcome-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.welcome-text h1 {
    color: var(--off-white);
    margin-bottom: 0.5rem;
    font-size: 2rem;
}

.welcome-text p {
    opacity: 0.9;
    font-size: 1.125rem;
}

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

/* Stats Overview */
.stats-overview {
    padding: 3rem 0;
    background-color: var(--off-white);
}

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

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.stat-icon {
    font-size: 2.5rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(64, 224, 208, 0.2), rgba(123, 104, 238, 0.2));
    border-radius: 12px;
}

.stat-info {
    flex: 1;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--deep-navy);
    line-height: 1.2;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-dark);
    opacity: 0.7;
    margin-top: 0.25rem;
}

/* Dashboard Content */
.dashboard-content {
    padding: 3rem 0;
    background-color: white;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.dashboard-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
}

.card-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.card-header h2,
.card-header h3 {
    margin: 0;
    color: var(--deep-navy);
    font-size: 1.25rem;
}

.card-content {
    padding: 1.5rem;
}

/* Continue Learning Section */
.continue-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(64, 224, 208, 0.1), rgba(123, 104, 238, 0.1));
    border-radius: 8px;
    margin-bottom: 1rem;
}

.continue-card:last-child {
    margin-bottom: 0;
}

.continue-info {
    flex: 1;
}

.continue-info h3 {
    margin: 0.5rem 0;
    color: var(--deep-navy);
    font-size: 1.125rem;
}

.lesson-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.lesson-badge.beginner {
    background-color: #d4edda;
    color: #155724;
}

.lesson-badge.intermediate {
    background-color: #fff3cd;
    color: #856404;
}

.lesson-badge.advanced {
    background-color: #f8d7da;
    color: #721c24;
}

/* Progress Bars */
.progress-bar {
    width: 100%;
    height: 8px;
    background-color: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
    margin: 0.5rem 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--turquoise), var(--violet));
    transition: width 0.3s ease;
}

.progress-label {
    font-size: 0.875rem;
    color: var(--text-dark);
    opacity: 0.7;
}

/* Learning Path Progress */
.learning-path {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.path-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.path-badge {
    min-width: 120px;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
}

.path-badge.beginner {
    background-color: #d4edda;
    color: #155724;
}

.path-badge.intermediate {
    background-color: #fff3cd;
    color: #856404;
}

.path-badge.advanced {
    background-color: #f8d7da;
    color: #721c24;
}

.path-progress {
    flex: 1;
}

.progress-text {
    font-size: 0.875rem;
    color: var(--text-dark);
    opacity: 0.7;
    margin-top: 0.25rem;
    display: block;
}

/* Recent Activity */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.activity-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background-color: var(--off-white);
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.activity-item:hover {
    background-color: #e5e7eb;
}

.activity-icon {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 8px;
}

.activity-content {
    flex: 1;
}

.activity-text {
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.activity-time {
    font-size: 0.875rem;
    color: var(--text-dark);
    opacity: 0.6;
}

/* Account Info */
.account-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.account-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.account-item strong {
    color: var(--text-dark);
    opacity: 0.7;
    font-size: 0.875rem;
}

.account-item span {
    color: var(--deep-navy);
    font-weight: 500;
}

.account-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.btn-link {
    color: var(--turquoise);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.btn-link:hover {
    color: var(--violet);
}

/* Quick Links */
.quick-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.quick-link-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background-color: var(--off-white);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-dark);
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.quick-link-item:hover {
    background-color: #e5e7eb;
    transform: translateX(4px);
}

.link-icon {
    font-size: 1.25rem;
}

/* Tips Card */
.tips-card .card-content p {
    color: var(--text-dark);
    line-height: 1.6;
    margin: 0;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 2rem;
    color: var(--text-dark);
}

.empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.empty-state h3 {
    color: var(--deep-navy);
    margin-bottom: 0.5rem;
}

.empty-state p {
    opacity: 0.7;
    margin-bottom: 1.5rem;
}

/* Loading State */
.loading-state {
    text-align: center;
    padding: 2rem;
    color: var(--text-dark);
    opacity: 0.7;
}

/* Responsive Dashboard */
@media (max-width: 968px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .welcome-section {
        flex-direction: column;
        text-align: center;
    }

    .quick-actions {
        width: 100%;
        justify-content: center;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

    .continue-card {
        flex-direction: column;
        text-align: center;
    }

    .path-item {
        flex-direction: column;
        text-align: center;
    }

    .path-badge {
        width: 100%;
    }
}

/* ===================================
   SETTINGS PAGE STYLES
   =================================== */

.settings-content {
    padding: 3rem 0;
    background-color: var(--off-white);
    min-height: 70vh;
}

.settings-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* Settings Navigation */
.settings-nav {
    background: var(--off-white);
    padding: 2rem 0;
    border-right: 1px solid #e5e7eb;
}

.settings-nav-item {
    width: 100%;
    padding: 1rem 1.5rem;
    border: none;
    background: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.settings-nav-item:hover {
    background: rgba(64, 224, 208, 0.1);
}

.settings-nav-item.active {
    background: white;
    border-left-color: var(--turquoise);
    font-weight: 600;
    color: var(--deep-navy);
}

.nav-icon {
    font-size: 1.25rem;
}

.nav-label {
    font-size: 0.938rem;
}

/* Settings Panels */
.settings-panels {
    padding: 2rem;
}

.settings-panel {
    display: none;
}

.settings-panel.active {
    display: block;
}

.panel-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--off-white);
}

.panel-header h2 {
    color: var(--deep-navy);
    margin-bottom: 0.5rem;
}

.panel-header p {
    color: var(--text-dark);
    opacity: 0.7;
    margin: 0;
}

/* Settings Forms */
.settings-form {
    max-width: 600px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--deep-navy);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"] {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--turquoise);
    box-shadow: 0 0 0 3px rgba(64, 224, 208, 0.1);
}

.form-group small {
    display: block;
    margin-top: 0.5rem;
    color: var(--text-dark);
    opacity: 0.7;
    font-size: 0.875rem;
}

.form-section {
    margin-bottom: 2rem;
}

.form-section h3 {
    color: var(--deep-navy);
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

/* Password Strength Indicator */
.password-strength {
    margin-top: 0.5rem;
    padding: 0.5rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 600;
}

.password-strength.weak {
    background: #fee2e2;
    color: #991b1b;
}

.password-strength.good {
    background: #fef3c7;
    color: #92400e;
}

.password-strength.strong {
    background: #d1fae5;
    color: #065f46;
}

.password-requirements {
    background: var(--off-white);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.password-requirements p {
    margin: 0 0 0.5rem 0;
    font-weight: 600;
    color: var(--deep-navy);
}

.password-requirements ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.password-requirements li {
    padding: 0.25rem 0;
    color: var(--text-dark);
    opacity: 0.7;
}

.password-requirements li.met {
    color: #2d5a8f;
    opacity: 1;
    font-weight: 500;
}

/* Checkbox and Radio Groups */
.checkbox-group,
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.checkbox-label,
.radio-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    padding: 1rem;
    background: var(--off-white);
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.checkbox-label:hover,
.radio-label:hover {
    background: #e5e7eb;
}

.checkbox-label input,
.radio-label input {
    margin-top: 0.25rem;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-label span,
.radio-label span {
    flex: 1;
}

.radio-label small {
    display: block;
    color: var(--text-dark);
    opacity: 0.7;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Account Info Grid */
.account-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.info-card {
    background: var(--off-white);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
}

.info-label {
    font-size: 0.875rem;
    color: var(--text-dark);
    opacity: 0.7;
    margin-bottom: 0.5rem;
}

.info-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--deep-navy);
}

/* Account Actions */
.account-actions {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.action-section {
    padding: 1.5rem;
    background: var(--off-white);
    border-radius: 8px;
}

.action-section h3 {
    color: var(--deep-navy);
    margin-bottom: 0.5rem;
}

.action-section p {
    color: var(--text-dark);
    opacity: 0.7;
    margin-bottom: 1rem;
}

.action-section small {
    display: block;
    color: var(--text-dark);
    opacity: 0.7;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.danger-zone {
    border: 2px solid #fee2e2;
    background: #fef2f2;
}

.danger-zone h3 {
    color: #991b1b;
}

/* Buttons */
.btn-secondary {
    background: var(--charcoal);
    color: white;
}

.btn-secondary:hover {
    background: var(--deep-navy);
}

.btn-danger {
    background: #dc2626;
    color: white;
}

.btn-danger:hover {
    background: #991b1b;
}

/* Form Messages */
.form-message {
    display: none;
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
}

.form-message.success {
    background: #d1fae5;
    color: #065f46;
    border-left: 4px solid #10b981;
}

.form-message.error {
    background: #fee2e2;
    color: #991b1b;
    border-left: 4px solid #dc2626;
}

/* Responsive Settings */
@media (max-width: 968px) {
    .settings-layout {
        grid-template-columns: 1fr;
    }

    .settings-nav {
        display: flex;
        overflow-x: auto;
        padding: 1rem 0;
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
    }

    .settings-nav-item {
        flex-shrink: 0;
        border-left: none;
        border-bottom: 3px solid transparent;
    }

    .settings-nav-item.active {
        border-left: none;
        border-bottom-color: var(--turquoise);
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .account-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .account-info-grid {
        grid-template-columns: 1fr;
    }

    .settings-nav-item .nav-label {
        display: none;
    }

    .settings-nav-item .nav-icon {
        font-size: 1.5rem;
    }
}

/* ===================================
   ADVANCED PRACTICE STYLES
   =================================== */

.advanced-practice-container {
    padding: 2rem 0;
    background-color: var(--off-white);
    min-height: 80vh;
}

/* Practice Stats Bar */
.practice-stats-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.practice-stats-bar .stat-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.practice-stats-bar .stat-icon {
    font-size: 2rem;
}

.practice-stats-bar .stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--deep-navy);
}

.practice-stats-bar .stat-label {
    font-size: 0.875rem;
    color: var(--text-dark);
    opacity: 0.7;
}

/* Practice Grid Layout */
.practice-grid-advanced {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2rem;
}

.practice-main {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Dataset Selector */
.dataset-selector {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.dataset-selector label {
    font-weight: 600;
    color: var(--deep-navy);
}

.dataset-dropdown {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    background: white;
}

.btn-schema {
    padding: 0.75rem 1.5rem;
    background: var(--charcoal);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.2s ease;
}

.btn-schema:hover {
    background: var(--deep-navy);
}

/* Editor Section */
.editor-section {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    overflow: hidden;
}

.editor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    background: var(--off-white);
}

.editor-header h3 {
    margin: 0;
    color: var(--deep-navy);
}

.editor-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-icon {
    padding: 0.5rem 1rem;
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.btn-icon:hover {
    background: var(--off-white);
    border-color: var(--turquoise);
}

.query-editor-advanced {
    width: 100%;
    min-height: 200px;
    padding: 1.5rem;
    border: none;
    font-family: 'Monaco', 'Menlo', 'Courier New', monospace;
    font-size: 0.938rem;
    line-height: 1.6;
    resize: vertical;
    background: #1e1e1e;
    color: #d4d4d4;
}

.query-editor-advanced::placeholder {
    color: #6a9955;
}

.editor-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-top: 1px solid #e5e7eb;
    background: var(--off-white);
}

.btn-execute {
    padding: 0.75rem 2rem;
    background: #2d5a8f;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.btn-execute:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Results Section */
.results-section {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    overflow: hidden;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    background: var(--off-white);
}

.results-header h3 {
    margin: 0;
    color: var(--deep-navy);
}

.results-container {
    padding: 1.5rem;
    max-height: 500px;
    overflow: auto;
}

.empty-results {
    text-align: center;
    padding: 3rem;
    color: var(--text-dark);
    opacity: 0.7;
}

.results-info {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding: 0.75rem;
    background: #f0fdf4;
    border-radius: 6px;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: #065f46;
}

.results-table-container {
    overflow-x: auto;
}

.results-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.results-table th {
    background: var(--deep-navy);
    color: white;
    padding: 0.75rem;
    text-align: left;
    font-weight: 600;
    position: sticky;
    top: 0;
}

.results-table td {
    padding: 0.75rem;
    border-bottom: 1px solid #e5e7eb;
}

.results-table tbody tr:hover {
    background: var(--off-white);
}

.error-display {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: #fef2f2;
    border-left: 4px solid #dc2626;
    border-radius: 6px;
}

.error-icon {
    font-size: 2rem;
}

.error-message strong {
    display: block;
    color: #991b1b;
    margin-bottom: 0.5rem;
}

.error-message p {
    color: #7f1d1d;
    margin: 0;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 0.875rem;
}

/* Sample Queries */
.sample-queries-advanced {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.sample-queries-advanced h3 {
    margin: 0 0 1rem 0;
    color: var(--deep-navy);
}

.samples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.sample-card {
    padding: 1rem;
    background: var(--off-white);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.sample-card:hover {
    background: #e0f2fe;
    border-color: var(--turquoise);
    transform: translateY(-2px);
}

.sample-title {
    font-weight: 600;
    color: var(--deep-navy);
    margin-bottom: 0.5rem;
}

.sample-card code {
    display: block;
    padding: 0.5rem;
    background: #1e1e1e;
    color: #d4d4d4;
    border-radius: 4px;
    font-size: 0.813rem;
    margin: 0.5rem 0;
    overflow-x: auto;
}

.sample-desc {
    font-size: 0.813rem;
    color: var(--text-dark);
    opacity: 0.7;
}

/* Practice Sidebar */
.practice-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sidebar-section {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    overflow: hidden;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    background: var(--off-white);
}

.sidebar-header h3 {
    margin: 0;
    font-size: 1rem;
    color: var(--deep-navy);
}

.btn-text {
    background: none;
    border: none;
    color: var(--turquoise);
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
}

.btn-text:hover {
    text-decoration: underline;
}

/* Saved Queries List */
.saved-queries-list {
    max-height: 400px;
    overflow-y: auto;
}

.saved-query-item {
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
    transition: background 0.2s ease;
}

.saved-query-item:hover {
    background: var(--off-white);
}

.saved-query-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.saved-query-header strong {
    color: var(--deep-navy);
}

.btn-remove {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.btn-remove:hover {
    opacity: 1;
}

.saved-query-body {
    cursor: pointer;
}

.saved-query-body code {
    display: block;
    padding: 0.5rem;
    background: #1e1e1e;
    color: #d4d4d4;
    border-radius: 4px;
    font-size: 0.813rem;
    overflow-x: auto;
}

.saved-query-meta {
    margin-top: 0.5rem;
    font-size: 0.813rem;
    color: var(--text-dark);
    opacity: 0.7;
}

/* Query History List */
.query-history-list {
    max-height: 400px;
    overflow-y: auto;
}

.history-item {
    padding: 0.75rem;
    border-bottom: 1px solid #e5e7eb;
    transition: background 0.2s ease;
}

.history-item:hover {
    background: var(--off-white);
}

.history-item.success {
    border-left: 3px solid #10b981;
}

.history-item.error {
    border-left: 3px solid #dc2626;
}

.history-query {
    cursor: pointer;
}

.history-query code {
    font-size: 0.813rem;
    color: var(--deep-navy);
}

.history-meta {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-dark);
    opacity: 0.7;
}

/* Info Section */
.info-section .info-content {
    padding: 1rem 1.5rem;
}

.info-content p {
    margin: 0.5rem 0;
    font-size: 0.875rem;
    color: var(--text-dark);
}

.info-content strong {
    color: var(--deep-navy);
}

/* Empty States */
.empty-state-small {
    padding: 2rem 1rem;
    text-align: center;
    color: var(--text-dark);
    opacity: 0.7;
}

.empty-state-small p {
    margin: 0 0 0.5rem 0;
}

.empty-state-small small {
    font-size: 0.813rem;
}

/* Schema Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal-content {
    background: white;
    border-radius: 12px;
    max-width: 800px;
    width: 100%;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    background: var(--off-white);
}

.modal-header h2 {
    margin: 0;
    color: var(--deep-navy);
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-dark);
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.modal-close:hover {
    opacity: 1;
}

.modal-body {
    padding: 1.5rem;
    overflow-y: auto;
}

.schema-table {
    margin-bottom: 2rem;
}

.schema-table h3 {
    color: var(--deep-navy);
    margin-bottom: 1rem;
}

.schema-details {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.schema-details th {
    background: var(--deep-navy);
    color: white;
    padding: 0.75rem;
    text-align: left;
    font-weight: 600;
}

.schema-details td {
    padding: 0.75rem;
    border-bottom: 1px solid #e5e7eb;
}

.schema-details code {
    background: var(--off-white);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: 'Monaco', 'Courier New', monospace;
}

/* Loading States */
.loading {
    text-align: center;
    padding: 3rem;
    color: var(--text-dark);
    opacity: 0.7;
}

/* Upgrade Banner */
.upgrade-banner {
    background: #778899;
    padding: 1.5rem 0;
    color: white;
}

.upgrade-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.upgrade-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.upgrade-text strong {
    font-size: 1.125rem;
}

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

.btn-upgrade {
    padding: 0.75rem 2rem;
    background: white;
    color: #2d5a8f;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s ease;
}

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

.btn-upgrade-secondary {
    padding: 0.75rem 2rem;
    background: transparent;
    color: white;
    border: 2px solid white;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-upgrade-secondary:hover {
    background: white;
    color: #2d5a8f;
}

@media (max-width: 768px) {
    .upgrade-content {
        flex-direction: column;
        text-align: center;
    }

    .upgrade-actions {
        width: 100%;
        justify-content: center;
    }
}

/* Responsive Advanced Practice */
@media (max-width: 1024px) {
    .practice-grid-advanced {
        grid-template-columns: 1fr;
    }

    .practice-sidebar {
        order: -1;
    }

    .samples-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .dataset-selector {
        flex-direction: column;
        align-items: stretch;
    }

    .practice-stats-bar {
        grid-template-columns: 1fr;
    }

    .editor-header,
    .results-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .modal {
        padding: 1rem;
    }
}

