/* CareerPilot - Modern CSS Stylesheet */

:root {
    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --dark-color: #1f2937;
    --light-color: #f9fafb;
    --text-color: #374151;
    --border-color: #e5e7eb;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-color);
    background-color: var(--light-color);
    line-height: 1.6;
}

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

/* Navigation */
.navbar {
    background: white;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.nav-brand i {
    font-size: 1.8rem;
}

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

.nav-menu a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-color);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Sidebar Menu */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

.mobile-sidebar {
    position: fixed;
    top: 0;
    left: -300px;
    width: 280px;
    max-width: 85vw;
    height: 100vh;
    background: white;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    -webkit-overflow-scrolling: touch;
}

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

/* Smooth scrollbar for mobile sidebar */
.mobile-sidebar::-webkit-scrollbar {
    width: 4px;
}

.mobile-sidebar::-webkit-scrollbar-track {
    background: var(--light-color);
}

.mobile-sidebar::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 2px;
}

.mobile-sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--text-color);
}

.mobile-sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.mobile-sidebar-header i {
    font-size: 1.5rem;
}

.mobile-sidebar-header span {
    font-size: 1.25rem;
    font-weight: bold;
}

.mobile-sidebar-menu {
    list-style: none;
    padding: 1rem 0;
    margin: 0;
    flex: 1;
}

.mobile-sidebar-menu li {
    margin: 0;
}

.mobile-sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
    font-weight: 500;
    font-size: 1rem;
}

.mobile-sidebar-menu a:hover,
.mobile-sidebar-menu a.active {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
}

.mobile-sidebar-menu a:active {
    background: rgba(99, 102, 241, 0.15);
}

.mobile-sidebar-menu a i {
    width: 20px;
    text-align: center;
    font-size: 1.125rem;
}

.mobile-sidebar-menu .logout-item {
    margin-top: auto;
    border-top: 1px solid var(--border-color);
    padding-top: 0.5rem;
}

.mobile-sidebar-menu .logout-item a {
    color: var(--danger-color);
}

.mobile-sidebar-menu .logout-item a:hover {
    background: rgba(239, 68, 68, 0.1);
    border-left-color: var(--danger-color);
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: #4f46e5;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background: #7c3aed;
}

.btn-success {
    background: var(--success-color);
    color: white;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

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

.btn-block {
    width: 100%;
    justify-content: center;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 4rem 0;
    margin-bottom: 4rem;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

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

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.hero-image {
    text-align: center;
    font-size: 10rem;
    opacity: 0.3;
}

/* Features Section */
.features {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--dark-color);
}

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

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-card h3 {
    margin-bottom: 1rem;
    color: var(--dark-color);
}

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

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

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    color: var(--primary-color);
}

.stat-label {
    font-size: 1.125rem;
    opacity: 0.9;
}

/* How It Works Section */
.how-it-works {
    padding: 5rem 0;
    background: var(--light-color);
}

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

.step-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow);
    text-align: center;
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.step-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.25rem;
    box-shadow: 0 4px 10px rgba(99, 102, 241, 0.3);
}

.step-icon {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin: 1.5rem 0 1rem 0;
}

.step-card h3 {
    margin-bottom: 1rem;
    color: var(--dark-color);
    font-size: 1.5rem;
}

.step-card p {
    color: var(--text-color);
    line-height: 1.6;
    opacity: 0.9;
}

/* Testimonials Section */
.testimonials-section {
    padding: 5rem 0;
    background: var(--light-color);
}

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

.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    border-top: 4px solid var(--primary-color);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.testimonial-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.testimonial-quote {
    color: var(--primary-color);
    font-size: 2rem;
    opacity: 0.3;
    margin-bottom: 1rem;
}

.testimonial-text {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    flex: 1;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.testimonial-info h4 {
    margin: 0;
    font-size: 1rem;
    color: var(--dark-color);
    font-weight: 600;
}

.testimonial-info p {
    margin: 0.25rem 0 0 0;
    font-size: 0.875rem;
    color: var(--text-color);
    opacity: 0.7;
}

/* CTA Section */
.cta-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
}

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

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

.cta-content p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    line-height: 1.6;
}

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

.cta-buttons .btn {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.cta-buttons .btn-primary {
    background: white;
    color: var(--primary-color);
}

.cta-buttons .btn-primary:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

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

.cta-buttons .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: white;
}

/* Dashboard */
.dashboard-header {
    margin-bottom: 2rem;
}

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

.dashboard-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.dashboard-card h3 {
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.action-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow);
    text-align: center;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.action-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    color: var(--primary-color);
}

.action-card i {
    font-size: 2.5rem;
}

/* Assessment */
.assessment-container {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.assessment-progress {
    margin-bottom: 2rem;
}

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

.progress-fill {
    height: 100%;
    background: var(--primary-color);
    transition: width 0.3s;
}

.question-card {
    padding: 2rem;
    background: var(--light-color);
    border-radius: 1rem;
    margin-bottom: 2rem;
}

.question-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.question-number {
    font-weight: bold;
    color: var(--primary-color);
}

.question-dimension {
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.875rem;
}

.question-text {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
}

.answer-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.answer-option {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s;
}

.answer-option:hover {
    border-color: var(--primary-color);
    background: #f0f0ff;
}

.answer-option input[type="radio"] {
    margin-right: 1rem;
    width: 20px;
    height: 20px;
}

.assessment-actions {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

/* Completion Card */
.completion-card {
    text-align: center;
    padding: 3rem 2rem;
    max-width: 600px;
    margin: 0 auto;
}

.completion-icon {
    font-size: 5rem;
    color: var(--success-color);
    margin-bottom: 1.5rem;
    animation: scaleIn 0.5s ease-out;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.completion-card h2 {
    font-size: 2rem;
    color: var(--dark-color);
    margin-bottom: 1rem;
    font-weight: 700;
}

.completion-text {
    font-size: 1.125rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.completion-subtext {
    font-size: 1rem;
    color: #6b7280;
    margin-bottom: 2rem;
    font-style: italic;
}

.completion-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.completion-actions .btn {
    min-width: 180px;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Results Modal Success Header */
.success-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-color);
}

.success-icon {
    font-size: 4rem;
    color: var(--success-color);
    margin-bottom: 1rem;
    display: block;
}

.success-header h3 {
    font-size: 1.75rem;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.success-message {
    font-size: 1rem;
    color: var(--text-color);
    margin-top: 0.5rem;
}

.results-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--border-color);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-color);
}

.btn-outline:hover {
    background: var(--light-color);
    border-color: var(--text-color);
}

/* Courses */
.careers-toolbar {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.search-box {
    flex: 1;
    position: relative;
    min-width: 250px;
}

.search-box i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-color);
}

.search-box input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 3rem;
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 1rem;
}

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

.course-card {
    background: white;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.course-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
}

.course-header h3 {
    color: var(--dark-color);
    flex: 1;
}

.holland-codes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.code-badge {
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.875rem;
}

.course-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

/* Modern Chat Interface - Professional Style with Sidebar */
.chat-page-wrapper {
    min-height: calc(100vh - 200px);
    padding: 1.5rem;
    background: linear-gradient(135deg, #667eea15 0%, #764ba215 50%, #f093fb15 100%);
    position: relative;
    overflow: hidden;
}

.chat-page-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(118, 75, 162, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(240, 147, 251, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.chat-layout-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 1.5rem;
    align-items: start;
    min-height: 650px;
    position: relative;
    z-index: 1;
}

@media (min-width: 1025px) {
    .chat-layout-container {
        grid-template-columns: 1fr 320px;
    }
}

/* Combined Sidebar (History + Suggestions) */
.chat-combined-sidebar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 1.5rem;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    border: 1px solid rgba(255, 255, 255, 0.8);
    height: calc(100vh - 200px);
    min-height: 650px;
    max-height: 850px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: sticky;
    top: 1.5rem;
    animation: slideInRight 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    transition: all 0.3s ease;
    width: 100%;
}

.chat-combined-sidebar:hover {
    box-shadow: 
        0 25px 70px rgba(0, 0, 0, 0.12),
        0 0 0 1px rgba(255, 255, 255, 0.6) inset;
}

.sidebar-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0;
}

.sidebar-section.suggestions-section {
    border-top: 1px solid rgba(226, 232, 240, 0.5);
    flex: 0 0 auto;
    max-height: 45%;
    min-height: 200px;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.chat-combined-sidebar .sidebar-header {
    padding: 1.25rem 1rem;
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.chat-combined-sidebar .sidebar-header h3 {
    font-size: 0.9375rem;
}

.chat-combined-sidebar .sidebar-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
    pointer-events: none;
}

.suggestions-section .sidebar-header {
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.9) 0%, rgba(241, 245, 249, 0.9) 100%);
    color: #1e293b;
    padding: 1rem;
}

.suggestions-section .sidebar-header h3 {
    font-size: 0.9375rem;
    margin-bottom: 0.25rem;
}

.suggestions-section .sidebar-subtitle {
    font-size: 0.8125rem;
    color: #64748b;
    margin: 0.375rem 0 0 0;
    font-weight: 500;
    opacity: 0.8;
}

.suggestions-section .sidebar-header::before {
    display: none;
}

.chat-combined-sidebar .sidebar-header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    z-index: 1;
}

.sidebar-toggle {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 0.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.sidebar-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
}

.new-chat-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    font-size: 0.875rem;
}

.new-chat-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.history-list {
    flex: 1;
    overflow-y: auto;
    padding: 0.625rem;
    min-height: 0;
}

.history-list::-webkit-scrollbar {
    width: 6px;
}

.history-list::-webkit-scrollbar-track {
    background: #f8fafc;
}

.history-list::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.history-list::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.history-item {
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1.5px solid transparent;
    background: rgba(248, 250, 252, 0.8);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.history-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.history-item:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(102, 126, 234, 0.3);
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.history-item:hover::before {
    transform: scaleY(1);
}

.history-item.active {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.12) 0%, rgba(118, 75, 162, 0.12) 100%);
    border-color: #667eea;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.2);
}

.history-item.active::before {
    transform: scaleY(1);
}

.history-item-title {
    font-weight: 500;
    font-size: 0.8125rem;
    color: #1e293b;
    margin-bottom: 0.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.history-item-time {
    font-size: 0.75rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.loading-history {
    padding: 2rem;
    text-align: center;
    color: #64748b;
    font-size: 0.875rem;
}

.empty-history {
    padding: 2rem;
    text-align: center;
    color: #64748b;
    font-size: 0.875rem;
}

.empty-history i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    opacity: 0.5;
}

.chat-container-modern {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 2rem;
    box-shadow: 
        0 25px 70px rgba(0, 0, 0, 0.12),
        0 0 0 1px rgba(255, 255, 255, 0.6) inset,
        0 1px 0 rgba(255, 255, 255, 0.8) inset;
    display: flex;
    flex-direction: column;
    height: calc(100vh - 200px);
    min-height: 650px;
    max-height: 850px;
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.6);
    transition: all 0.3s ease;
    width: 100%;
}

.chat-container-modern:hover {
    box-shadow: 
        0 30px 80px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.7) inset,
        0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

/* Legacy - kept for compatibility */
.chat-suggestions-sidebar {
    display: none !important;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.sidebar-header {
    padding: 1.75rem;
    border-bottom: 1px solid rgba(229, 231, 235, 0.5);
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.9) 0%, rgba(241, 245, 249, 0.9) 100%);
    flex-shrink: 0;
    backdrop-filter: blur(10px);
    position: relative;
}

.sidebar-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.2), transparent);
}

.sidebar-header h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sidebar-header h3 i {
    color: #667eea;
}

.sidebar-subtitle {
    margin: 0;
    font-size: 0.8125rem;
    color: #64748b;
}

.suggestions-list {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-height: 0;
    max-height: 100%;
}

.suggestions-list::-webkit-scrollbar {
    width: 6px;
}

.suggestions-list::-webkit-scrollbar-track {
    background: #f8fafc;
}

.suggestions-list::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.suggestions-list::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.suggestion-item {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    padding: 1rem;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: left;
    position: relative;
    overflow: hidden;
    min-height: 60px;
    width: 100%;
}

.suggestion-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transform: scaleY(0);
    transition: transform 0.25s ease;
}

.suggestion-item:hover::before {
    transform: scaleY(1);
}

.suggestion-item:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: transparent;
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.25);
}

.suggestion-item:hover .suggestion-number {
    background: rgba(255, 255, 255, 0.25);
    color: white;
}

.suggestion-item:hover .suggestion-text {
    color: white;
}

.suggestion-item:hover .suggestion-arrow {
    color: white;
    transform: translateX(4px);
}

.suggestion-number {
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
    transition: all 0.25s ease;
    margin-top: 2px;
}

.suggestion-text {
    flex: 1;
    font-size: 0.875rem;
    color: #334155;
    font-weight: 500;
    line-height: 1.6;
    transition: all 0.25s ease;
    word-wrap: break-word;
    overflow-wrap: break-word;
    min-width: 0;
    padding-top: 2px;
}

.suggestion-arrow {
    color: #94a3b8;
    font-size: 0.875rem;
    transition: all 0.25s ease;
    flex-shrink: 0;
    margin-top: 2px;
    opacity: 0.6;
}

.suggestion-item:hover .suggestion-arrow {
    opacity: 1;
}

.no-suggestions {
    padding: 2rem;
    text-align: center;
    color: #94a3b8;
    font-size: 0.875rem;
}

.chat-header-modern {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(229, 231, 235, 0.5);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    color: white;
    box-shadow: 
        0 4px 20px rgba(102, 126, 234, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.chat-header-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.chat-header-content {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    position: relative;
    z-index: 1;
}

.chat-avatar-large {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    flex-shrink: 0;
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.chat-avatar-large:hover {
    transform: scale(1.05);
    box-shadow: 
        0 12px 32px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.chat-header-content h2 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.chat-status {
    margin: 0.25rem 0 0 0;
    font-size: 0.875rem;
    opacity: 0.9;
}

.chat-messages-modern {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
    background: linear-gradient(to bottom, #fafbfc 0%, #ffffff 100%);
    scroll-behavior: smooth;
    position: relative;
}

.chat-messages-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.8), transparent);
    pointer-events: none;
    z-index: 1;
}

.chat-messages-modern::-webkit-scrollbar {
    width: 6px;
}

.chat-messages-modern::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.chat-messages-modern::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.chat-messages-modern::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.message-wrapper {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    animation: fadeInMessage 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    z-index: 0;
}

.user-message-wrapper {
    flex-direction: row-reverse;
}

.bot-message-wrapper {
    flex-direction: row;
}

.message-avatar-modern {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.125rem;
    box-shadow: 
        0 4px 12px rgba(102, 126, 234, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.message-avatar-modern:hover {
    transform: scale(1.1);
    box-shadow: 
        0 6px 20px rgba(102, 126, 234, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.user-avatar {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    box-shadow: 
        0 4px 12px rgba(240, 147, 251, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.user-avatar:hover {
    box-shadow: 
        0 6px 20px rgba(240, 147, 251, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.message-content-modern {
    max-width: 75%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 1.375rem;
    border-radius: 1.5rem;
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(0, 0, 0, 0.04) inset;
    line-height: 1.7;
    word-wrap: break-word;
    border: 1px solid rgba(241, 245, 249, 0.8);
    transition: all 0.3s ease;
    position: relative;
}

.message-content-modern:hover {
    box-shadow: 
        0 6px 24px rgba(0, 0, 0, 0.12),
        0 0 0 1px rgba(0, 0, 0, 0.06) inset;
    transform: translateY(-1px);
}

.user-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    box-shadow: 
        0 6px 20px rgba(102, 126, 234, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.user-content:hover {
    box-shadow: 
        0 8px 28px rgba(102, 126, 234, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.message-content-modern.formatted-response {
    max-width: 85%;
    padding: 1.75rem;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(226, 232, 240, 0.6);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    border-radius: 1.75rem;
}

.message-text {
    color: #1e293b;
    font-size: 0.9375rem;
}

.user-content .message-text {
    color: white;
}

.message-text p {
    margin: 0.75rem 0;
    line-height: 1.75;
    color: #475569;
}

.message-text p:first-child {
    margin-top: 0;
}

.message-text p:last-child {
    margin-bottom: 0;
}

.message-text p.message-heading {
    margin: 1.5rem 0 0.875rem 0;
    font-size: 1.125rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.4;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(102, 126, 234, 0.15);
}

.message-text p.message-heading:first-child {
    margin-top: 0;
}

.message-text p.message-heading strong {
    display: block;
    margin: 0;
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
}

.message-text h3 {
    margin: 0 0 0.875rem 0;
    font-size: 1.25rem;
    color: #0f172a;
    font-weight: 700;
    line-height: 1.4;
}

.message-text h4 {
    margin: 0 0 0.625rem 0;
    font-size: 1.0625rem;
    color: #1e293b;
    font-weight: 600;
    line-height: 1.4;
}

.message-text ul,
.message-text ol {
    margin: 1rem 0;
    padding-left: 1.75rem;
    list-style: none;
}

.message-text ul.message-list {
    margin: 1.25rem 0;
}

.message-text ul li {
    margin: 0.625rem 0;
    color: #475569;
    line-height: 1.7;
    position: relative;
    padding-left: 1.25rem;
}

.message-text ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
    font-size: 1.25rem;
    line-height: 1.4;
}

.message-text ol li {
    margin: 0.625rem 0;
    color: #475569;
    line-height: 1.7;
}

.message-text strong {
    color: #1e293b;
    font-weight: 700;
    font-size: 1.0625rem;
    line-height: 1.5;
    display: block;
    margin: 1.25rem 0 0.625rem 0;
}

.message-text p:first-child strong {
    margin-top: 0;
}

.message-text p strong {
    display: inline;
    margin: 0;
    font-size: inherit;
}

.user-content .message-text strong,
.user-content .message-text h3,
.user-content .message-text h4 {
    color: white;
}

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

.action-btn {
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    transition: all 0.2s;
    font-size: 0.875rem;
}

.action-btn:hover {
    background: #f3f4f6;
    color: #374151;
}

.typing-indicator {
    opacity: 0.7;
}

.typing-dots {
    display: flex;
    gap: 0.375rem;
    padding: 0.5rem 0;
}

.typing-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingDot 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: 0s;
}

.typing-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingDot {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.7;
    }
    30% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

.chat-input-modern {
    padding: 1.5rem 2rem;
    border-top: 1px solid rgba(229, 231, 235, 0.5);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: relative;
}

.chat-input-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.2), transparent);
}

/* Legacy suggestion styles - kept for compatibility */
.suggestions-modern {
    display: none; /* Hidden - using sidebar instead */
}

.suggestion-chip {
    display: none; /* Hidden - using sidebar instead */
}

.input-wrapper-modern {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.input-container-modern {
    display: flex;
    align-items: flex-end;
    gap: 0.875rem;
    background: rgba(248, 250, 252, 0.8);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(226, 232, 240, 0.6);
    border-radius: 1.5rem;
    padding: 1rem 1.375rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.input-container-modern:focus-within {
    border-color: #667eea;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 
        0 0 0 4px rgba(102, 126, 234, 0.12),
        0 8px 24px rgba(102, 126, 234, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transform: translateY(-1px);
}

.input-container-modern textarea {
    flex: 1;
    border: none;
    background: transparent;
    resize: none;
    font-size: 0.9375rem;
    color: #1f2937;
    font-family: inherit;
    line-height: 1.5;
    max-height: 200px;
    overflow-y: auto;
}

.input-container-modern textarea:focus {
    outline: none;
}

.input-container-modern textarea::placeholder {
    color: #9ca3af;
}

.send-button-modern {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    font-size: 1rem;
    box-shadow: 
        0 4px 12px rgba(102, 126, 234, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.send-button-modern::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
}

.send-button-modern:hover:not(:disabled) {
    transform: scale(1.1);
    box-shadow: 
        0 8px 24px rgba(102, 126, 234, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.send-button-modern:hover:not(:disabled)::before {
    width: 100%;
    height: 100%;
}

.send-button-modern:active:not(:disabled) {
    transform: scale(0.95);
}

.send-button-modern:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.input-hint {
    font-size: 0.75rem;
    color: #6b7280;
    margin: 0;
    text-align: center;
}

@keyframes fadeInMessage {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

/* Responsive Chat Design */
@media (max-width: 1024px) {
    .chat-layout-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .chat-combined-sidebar {
        position: fixed;
        right: -320px;
        top: 0;
        height: 100vh;
        z-index: 1000;
        transition: right 0.3s ease;
        border-radius: 0;
        max-height: 100vh;
        width: 320px;
    }
    
    .chat-combined-sidebar.open {
        right: 0;
    }
    
    .sidebar-toggle {
        display: flex !important;
    }
    
    .chat-container-modern {
        height: calc(100vh - 200px);
    }
}

@media (max-width: 768px) {
    .chat-page-wrapper {
        padding: 1rem 0.5rem;
    }
    
    .chat-layout-container {
        gap: 0.75rem;
    }
    
    .chat-container-modern {
        height: calc(100vh - 380px);
        min-height: 500px;
        border-radius: 1rem;
    }
    
    .chat-suggestions-sidebar {
        max-height: 300px;
        border-radius: 1rem;
    }
    
    .sidebar-header {
        padding: 1rem;
    }
    
    .sidebar-header h3 {
        font-size: 1rem;
    }
    
    .suggestions-list {
        padding: 0.75rem;
    }
    
    .suggestion-item {
        padding: 1rem;
        min-height: 56px;
        gap: 0.75rem;
    }
    
    .suggestion-number {
        width: 26px;
        height: 26px;
        min-width: 26px;
        font-size: 0.6875rem;
    }
    
    .suggestion-text {
        font-size: 0.875rem;
        line-height: 1.5;
    }
    
    .suggestion-arrow {
        font-size: 0.8125rem;
    }
    
    .chat-header-modern {
        padding: 1rem;
    }
    
    .chat-avatar-large {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }
    
    .chat-header-content h2 {
        font-size: 1.125rem;
    }
    
    .chat-messages-modern {
        padding: 1rem;
    }
    
    .message-content-modern {
        max-width: 85%;
        padding: 0.75rem 1rem;
    }
    
    .message-content-modern.formatted-response {
        max-width: 90%;
        padding: 1rem;
    }
    
    .message-avatar-modern {
        width: 32px;
        height: 32px;
        font-size: 0.875rem;
    }
    
    .input-container-modern {
        padding: 0.625rem 0.875rem;
    }
    
    .send-button-modern {
        width: 36px;
        height: 36px;
    }
}

/* Legacy Chat Styles (for backward compatibility) */
.chat-container {
    background: white;
    border-radius: 1rem;
    box-shadow: var(--shadow);
    height: 600px;
    display: flex;
    flex-direction: column;
}

.chat-messages {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
}

.chat-message {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    animation: fadeIn 0.3s ease-in;
}

.welcome-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 2rem;
    max-width: 600px;
    margin: 2rem auto;
    animation: fadeInMessage 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.welcome-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    margin-bottom: 1.5rem;
    box-shadow: 
        0 12px 32px rgba(102, 126, 234, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    animation: pulse 2s ease-in-out infinite;
}

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

.welcome-title {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 1rem 0;
    line-height: 1.2;
}

.welcome-text {
    font-size: 1.0625rem;
    color: #64748b;
    line-height: 1.7;
    margin: 0 0 2rem 0;
    max-width: 500px;
}

.welcome-features {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 1rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: rgba(102, 126, 234, 0.08);
    border-radius: 2rem;
    color: #667eea;
    font-weight: 500;
    font-size: 0.9375rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.feature-item:hover {
    background: rgba(102, 126, 234, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.feature-item i {
    font-size: 1.125rem;
}

.welcome-message {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    padding: 1.5rem;
    border-radius: 1rem;
    border-left: 4px solid #667eea;
    margin-bottom: 1.5rem;
}

.welcome-message .message-content {
    background: transparent;
    padding: 0;
}

.welcome-message .message-content h3 {
    color: #667eea;
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

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

.user-message {
    flex-direction: row-reverse;
}

.message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.user-message .message-avatar {
    background: var(--secondary-color);
}

.message-content {
    background: var(--light-color);
    padding: 1rem;
    border-radius: 1rem;
    max-width: 70%;
    line-height: 1.6;
}

.message-content.formatted-content {
    max-width: 85%;
    background: white;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
}

.message-content.formatted-content h3 {
    margin-top: 0;
    font-size: 1.25rem;
}

.message-content.formatted-content h4 {
    margin-top: 0;
    font-size: 1.1rem;
}

.message-content.formatted-content p {
    margin: 0.75rem 0;
    color: #374151;
}

.message-content.formatted-content ul,
.message-content.formatted-content ol {
    margin: 0.75rem 0;
    padding-left: 1.5rem;
}

.message-content.formatted-content li {
    margin: 0.5rem 0;
    color: #4b5563;
}

.message-content.formatted-content strong {
    color: #1f2937;
    font-weight: 600;
}

.user-message .message-content {
    background: var(--primary-color);
    color: white;
    max-width: 70%;
}

.user-message .message-content.formatted-content {
    background: var(--primary-color);
    color: white;
    border: none;
}

.chat-input-container {
    padding: 1rem;
    border-top: 2px solid var(--border-color);
}

.suggestions {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.suggestion-btn {
    padding: 0.5rem 1rem;
    background: var(--light-color);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.3s;
}

.suggestion-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.chat-input-wrapper {
    display: flex;
    gap: 1rem;
}

.chat-input-wrapper input {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 1rem;
}

/* Auth Pages */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.auth-container {
    width: 100%;
    max-width: 450px;
    padding: 2rem;
}

.auth-card {
    background: white;
    padding: 3rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.auth-header h1 {
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

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

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dark-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group small {
    display: block;
    margin-top: 0.25rem;
    color: var(--text-color);
    opacity: 0.7;
}

.forgot-password {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.875rem;
}

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

.auth-footer {
    text-align: center;
    color: var(--text-color);
}

.auth-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    overflow: auto;
}

.modal-content {
    background: white;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 1rem;
    max-width: 600px;
    position: relative;
}

.modal-large {
    max-width: 95%;
    max-width: 1200px;
}

.close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    color: var(--text-color);
}

.close:hover {
    color: var(--danger-color);
}

/* Utility Classes */
.loading-spinner {
    text-align: center;
    padding: 3rem;
    color: var(--text-color);
}

.loading-spinner i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.error-message {
    background: #fee;
    color: var(--danger-color);
    padding: 1rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
}

.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--text-color);
}

.status-complete {
    color: var(--success-color);
}

.status-pending {
    color: var(--warning-color);
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

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

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
}

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

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

.footer-section a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer-section a:hover {
    opacity: 1;
}

.footer-section .social-links {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
}

.footer-section .social-links a {
    font-size: 1.25rem;
    transition: transform 0.2s ease, opacity 0.2s ease;
    text-decoration: none;
    opacity: 0.9;
}

.footer-section .social-links a:hover {
    transform: translateY(-2px);
    opacity: 1;
}

.footer-section p {
    margin: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-section p i {
    width: 20px;
    text-align: center;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.7;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }
    
    .navbar {
        padding: 0.75rem 0;
    }
    
    .nav-brand {
        font-size: 1.25rem;
    }
    
    .nav-brand i {
        font-size: 1.5rem;
    }
    
    /* Ensure mobile sidebar is visible on mobile */
    .mobile-sidebar {
        display: flex;
    }
    
    /* Hide desktop menu completely on mobile */
    .nav-menu:not(.mobile-sidebar-menu) {
        display: none !important;
    }

    .hero .container {
        grid-template-columns: 1fr;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .step-card {
        padding: 2rem 1.5rem;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .cta-content p {
        font-size: 1.125rem;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .cta-buttons .btn {
        width: 100%;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .testimonial-card {
        padding: 1.5rem;
    }
}

/* Responsive grid layouts - maintain multi-column on tablets and up */
@media (max-width: 768px) and (min-width: 481px) {
    /* Tablets: show 2 columns */
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .courses-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Only make grids single column on very small screens (phones in portrait) */
@media (max-width: 480px) {
    .dashboard-grid,
    .features-grid,
    .courses-grid {
        grid-template-columns: 1fr;
    }
}

/* Page Header */
.page-header {
    margin-bottom: 2rem;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.page-header p {
    font-size: 1.125rem;
    color: var(--text-color);
    opacity: 0.8;
}

/* Profile */
.profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.profile-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow);
}

.profile-card h2 {
    margin-bottom: 1.5rem;
    color: var(--dark-color);
}

.profile-info p {
    margin-bottom: 0.75rem;
}

.results-display {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

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

.result-bar {
    flex: 1;
    height: 20px;
    background: var(--border-color);
    border-radius: 10px;
    overflow: hidden;
}

.result-fill {
    height: 100%;
    background: var(--primary-color);
    transition: width 0.3s;
}

.career-analysis {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

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

.strengths li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.field-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.field-badge {
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 1rem;
    font-size: 0.875rem;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.history-item {
    padding: 1rem;
    background: var(--light-color);
    border-radius: 0.5rem;
}

.icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.25rem;
    color: var(--text-color);
    transition: color 0.3s;
}

.icon-btn:hover {
    color: var(--primary-color);
}

.compare-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.875rem;
}

.compare-checkbox input[type="checkbox"] {
    cursor: pointer;
    width: 1.125rem;
    height: 1.125rem;
}

/* Comparison Table Styles */
.comparison-table-container {
    overflow-x: auto;
    margin: 1.5rem 0;
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    min-width: 600px;
}

.comparison-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.comparison-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.comparison-table th:first-child {
    min-width: 200px;
}

.comparison-table th:not(:first-child) {
    text-align: center;
    font-size: 0.9rem;
}

.comparison-table tbody tr {
    border-bottom: 1px solid var(--border-color);
}

.comparison-table tbody tr:hover {
    background-color: #f9fafb;
}

.comparison-table td {
    padding: 1rem;
    vertical-align: top;
    border-right: 1px solid var(--border-color);
}

.comparison-table td:not(:first-child) {
    text-align: center;
}

.attribute-label {
    font-weight: 600;
    color: var(--primary-color);
    background-color: #f3f4f6;
    white-space: nowrap;
}

.attribute-label i {
    margin-right: 0.5rem;
    color: var(--secondary-color);
}

.comparison-table .holland-codes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.comparison-table .cluster-list {
    list-style: none;
    padding: 0;
    text-align: left;
    margin: 0;
}

.comparison-table .cluster-list li {
    padding: 0.25rem 0;
    font-size: 0.875rem;
}

.comparison-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.error-message {
    padding: 2rem;
    text-align: center;
    color: var(--danger-color);
    background-color: #fef2f2;
    border-radius: 0.5rem;
    border: 1px solid #fecaca;
}

/* AI Analysis Styles */
.ai-analysis-container {
    animation: fadeIn 0.5s ease-in;
}

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

.ai-analysis-loading {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.course-analysis-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.course-analysis-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15) !important;
}

.score-metrics .score-item {
    transition: opacity 0.2s ease;
}

.score-metrics .score-item:hover {
    opacity: 0.8;
}

.recommendation-card {
    animation: slideIn 0.6s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Visualizations */
.visualization-section {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.visualization-section h2 {
    margin-bottom: 1rem;
    color: var(--dark-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-description {
    color: var(--text-color);
    opacity: 0.8;
    margin-bottom: 1.5rem;
}

.chart-container {
    position: relative;
    height: 400px;
    margin: 2rem 0;
}

.chart-container canvas {
    max-height: 100%;
}

/* Trends Grid */
.trends-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.trend-card {
    background: var(--light-color);
    padding: 1.5rem;
    border-radius: 0.5rem;
    border-left: 4px solid var(--primary-color);
}

.trend-card h3 {
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.trend-metrics {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.metric {
    display: flex;
    flex-direction: column;
}

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

.metric-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.trend-up {
    color: var(--success-color);
}

.trend-stable {
    color: var(--warning-color);
}

.trend-down {
    color: var(--danger-color);
}

/* Skills List */
.skills-list {
    margin-top: 2rem;
}

.skill-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--light-color);
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
}

.skill-name {
    flex: 1;
    font-weight: 500;
    color: var(--dark-color);
}

.skill-bar {
    flex: 2;
    height: 20px;
    background: var(--border-color);
    border-radius: 10px;
    overflow: hidden;
}

.skill-fill {
    height: 100%;
    background: var(--primary-color);
    transition: width 0.3s;
}

.skill-level {
    min-width: 50px;
    text-align: right;
    font-weight: bold;
    color: var(--primary-color);
}

.skill-trend {
    min-width: 100px;
    text-align: center;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.875rem;
}

/* Career Path Details */
.career-path-selector {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.form-select {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 1rem;
}

.career-path-details {
    margin-top: 2rem;
}

.career-path-card {
    background: var(--light-color);
    padding: 2rem;
    border-radius: 1rem;
}

.career-path-card h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.career-description {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    color: var(--text-color);
    opacity: 0.9;
}

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

.info-section {
    background: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow);
}

.info-section h4 {
    margin-bottom: 1rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-section p {
    margin-bottom: 0.5rem;
}

.info-section ul {
    list-style: none;
    padding-left: 0;
}

.info-section ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.info-section ul li:before {
    content: "✓ ";
    color: var(--success-color);
    font-weight: bold;
    margin-right: 0.5rem;
}

.skills-tags,
.environment-tags,
.related-careers {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag,
.env-tag,
.career-tag {
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 1rem;
    font-size: 0.875rem;
}

.outlook-growing,
.demand-high {
    color: var(--success-color);
    font-weight: bold;
}

.outlook-stable,
.demand-medium {
    color: var(--warning-color);
    font-weight: bold;
}

.outlook-declining,
.demand-low {
    color: var(--danger-color);
    font-weight: bold;
}

