/* ============================================
   CSS Variables & Reset
   ============================================ */
:root {
    --primary: #6C63FF;
    --primary-dark: #5A52D5;
    --primary-light: #8B83FF;
    --secondary: #FF6B6B;
    --success: #2ECC71;
    --warning: #F39C12;
    --danger: #E74C3C;
    --dark: #1A1A2E;
    --dark-secondary: #16213E;
    --gray: #2D3436;
    --gray-light: #636E72;
    --gray-lighter: #B2BEC3;
    --gray-lightest: #DFE6E9;
    --white: #FFFFFF;
    --bg-light: #F8F9FA;
    
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--white);
    color: var(--dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* ============================================
   Typography
   ============================================ */
.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-md);
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(108, 99, 255, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

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

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.btn-large {
    padding: 16px 32px;
    font-size: 16px;
}

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

.btn-sm {
    padding: 8px 16px;
    font-size: 12px;
}

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

/* ============================================
   Navigation
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 0 2rem;
    height: 72px;
    display: flex;
    align-items: center;
}

.nav-container {
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 20px;
    color: var(--dark);
}

.brand-icon {
    font-size: 24px;
    color: var(--primary);
}

.brand-text {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    color: var(--gray-light);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: var(--transition);
}

.nav-link:hover {
    background: var(--bg-light);
    color: var(--dark);
}

.nav-link.active {
    background: rgba(108, 99, 255, 0.1);
    color: var(--primary);
}

.nav-link i {
    margin-right: 6px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--dark);
    padding: 4px 8px;
}

/* User Menu Dropdown */
#userMenu {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    padding: 8px;
    margin-top: 8px;
    border: 1px solid var(--gray-lightest);
    z-index: 1001;
}

.dropdown-menu.show {
    display: block;
    animation: slideDown 0.2s ease;
}

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

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    color: var(--dark);
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    transition: var(--transition);
}

.dropdown-menu a:hover {
    background: var(--bg-light);
}

.dropdown-menu hr {
    border: none;
    border-top: 1px solid var(--gray-lightest);
    margin: 4px 0;
}

.dropdown-menu a i {
    width: 20px;
    color: var(--gray-light);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    padding: 120px 2rem 80px;
    background: linear-gradient(135deg, var(--bg-light) 0%, #EEF2FF 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-container {
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.hero-badge .badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(108, 99, 255, 0.1);
    color: var(--primary);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
}

.hero-title {
    font-size: 52px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.hero-description {
    font-size: 18px;
    color: var(--gray-light);
    max-width: 540px;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(0,0,0,0.06);
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 28px;
    font-weight: 700;
    color: var(--dark);
}

.stat-label {
    font-size: 14px;
    color: var(--gray-light);
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(0,0,0,0.06);
}

/* Hero Visual Card */
.hero-visual {
    display: flex;
    justify-content: center;
}

.hero-card {
    position: relative;
    width: 100%;
    max-width: 480px;
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

.card-glow {
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(108, 99, 255, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.card-content {
    position: relative;
    padding: 24px;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--gray-lightest);
    font-weight: 600;
    font-size: 16px;
}

.card-header i {
    color: var(--primary);
    font-size: 20px;
}

.card-body {
    padding: 16px 0;
    min-height: 200px;
    max-height: 300px;
    overflow-y: auto;
}

.message {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

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

.message.user .avatar {
    background: var(--bg-light);
    color: var(--dark);
}

.message.system .avatar {
    background: var(--primary);
    color: var(--white);
}

.message p {
    padding: 10px 16px;
    border-radius: var(--radius-md);
    font-size: 14px;
    line-height: 1.6;
}

.message.user p {
    background: var(--bg-light);
    color: var(--dark);
}

.message.system p {
    background: rgba(108, 99, 255, 0.08);
    color: var(--dark);
}

.message.system ul {
    padding: 8px 0 8px 20px;
    font-size: 14px;
    color: var(--dark);
    list-style: none;
}

.message.system ul li {
    padding: 4px 0;
}

.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 12px 16px;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gray-lighter);
    animation: typing 1.4s infinite;
}

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

@keyframes typing {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-8px); }
}

.card-footer {
    display: flex;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--gray-lightest);
}

.card-footer input {
    flex: 1;
    padding: 10px 16px;
    border: 1px solid var(--gray-lightest);
    border-radius: var(--radius-sm);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    background: var(--bg-light);
    outline: none;
    transition: var(--transition);
}

.card-footer input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.1);
}

/* ============================================
   Features Section
   ============================================ */
.features {
    padding: 80px 2rem;
    background: var(--white);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-tag {
    display: inline-block;
    padding: 4px 16px;
    background: rgba(108, 99, 255, 0.08);
    color: var(--primary);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.section-title {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-description {
    font-size: 18px;
    color: var(--gray-light);
    line-height: 1.8;
}

.features-grid {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    padding: 32px;
    background: var(--white);
    border: 1px solid var(--gray-lightest);
    border-radius: var(--radius-lg);
    transition: var(--transition);
    cursor: pointer;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: rgba(108, 99, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--primary);
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.feature-card p {
    color: var(--gray-light);
    font-size: 14px;
    line-height: 1.7;
}

/* ============================================
   Assistant Section
   ============================================ */
.assistant {
    padding: 80px 2rem;
    background: var(--bg-light);
}

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

.assistant-header {
    text-align: center;
    margin-bottom: 40px;
}

.assistant-chat {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.chat-messages {
    padding: 24px;
    max-height: 480px;
    overflow-y: auto;
    min-height: 300px;
}

.chat-messages .message {
    max-width: 80%;
}

.chat-messages .message.user {
    margin-left: auto;
}

.chat-messages .message.user .message-content {
    background: var(--primary);
    color: var(--white);
    border-radius: var(--radius-md) var(--radius-md) 0 var(--radius-md);
    padding: 10px 16px;
}

.chat-messages .message.system .message-content {
    background: var(--bg-light);
    padding: 10px 16px;
    border-radius: var(--radius-md) var(--radius-md) var(--radius-md) 0;
}

.chat-messages .message.system .message-content ul {
    padding: 8px 0 8px 20px;
    font-size: 14px;
    color: var(--dark);
    list-style: none;
}

.chat-messages .message.system .message-content ul li {
    padding: 4px 0;
}

.chat-messages .message .message-content {
    width: 100%;
}

.chat-input {
    padding: 16px 24px 24px;
    border-top: 1px solid var(--gray-lightest);
}

.input-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    padding: 4px;
}

.input-wrapper input {
    flex: 1;
    padding: 12px 16px;
    border: none;
    background: transparent;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    outline: none;
}

.voice-btn, .send-btn {
    width: 44px;
    height: 44px;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.voice-btn {
    background: transparent;
    color: var(--gray-light);
}

.voice-btn:hover {
    background: var(--gray-lightest);
}

.voice-btn.recording {
    color: var(--danger);
    animation: pulse 1s infinite;
}

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

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

.send-btn:hover {
    background: var(--primary-dark);
}

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

.input-options {
    display: flex;
    gap: 20px;
    margin-top: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.option-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--gray-light);
    cursor: pointer;
}

.option-label input[type="checkbox"] {
    accent-color: var(--primary);
}

.context-selector {
    display: flex;
    gap: 8px;
    margin-left: auto;
}

.context-selector select {
    padding: 4px 8px;
    border: 1px solid var(--gray-lightest);
    border-radius: var(--radius-sm);
    font-size: 13px;
    background: var(--white);
    color: var(--dark);
    outline: none;
    cursor: pointer;
}

.input-hint {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
    font-size: 12px;
    color: var(--gray-lighter);
}

.input-hint span i {
    margin-right: 4px;
}

/* ============================================
   Curriculum Section
   ============================================ */
.curriculum {
    padding: 80px 2rem;
    background: var(--white);
}

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

.curriculum-search {
    margin-bottom: 2rem;
}

.search-bar {
    display: flex;
    gap: 12px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    padding: 4px;
    align-items: center;
}

.search-bar i {
    padding-left: 16px;
    color: var(--gray-light);
}

.search-bar input {
    flex: 1;
    padding: 12px 0;
    border: none;
    background: transparent;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    outline: none;
}

.search-filters {
    display: flex;
    gap: 12px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.search-filters select {
    padding: 8px 12px;
    border: 1px solid var(--gray-lightest);
    border-radius: var(--radius-sm);
    font-size: 13px;
    background: var(--white);
    color: var(--dark);
    outline: none;
    cursor: pointer;
    min-width: 150px;
}

.curriculum-results {
    margin-top: 1.5rem;
}

.curriculum-item {
    display: flex;
    gap: 16px;
    padding: 16px 20px;
    background: var(--white);
    border: 1px solid var(--gray-lightest);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    transition: var(--transition);
    cursor: pointer;
}

.curriculum-item:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
    transform: translateX(4px);
}

.item-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: rgba(108, 99, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--primary);
    font-size: 18px;
}

.item-content {
    flex: 1;
}

.item-content h4 {
    font-size: 16px;
    margin-bottom: 4px;
}

.item-content p {
    font-size: 14px;
    color: var(--gray-light);
    margin-bottom: 8px;
}

.item-meta {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: var(--gray-lighter);
    flex-wrap: wrap;
}

.item-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.status-badge {
    padding: 2px 10px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-active { background: rgba(46, 204, 113, 0.15); color: var(--success); }
.status-draft { background: rgba(243, 156, 18, 0.15); color: var(--warning); }
.status-archived { background: rgba(99, 110, 114, 0.15); color: var(--gray-light); }
.status-withdrawn { background: rgba(231, 76, 60, 0.15); color: var(--danger); }

.loading-spinner {
    text-align: center;
    padding: 2rem;
    color: var(--gray-light);
}

.loading-spinner i {
    margin-right: 8px;
}

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

.empty-state i {
    color: var(--gray-lighter);
    margin-bottom: 1rem;
}

/* ============================================
   Resources Section
   ============================================ */
.resources {
    padding: 80px 2rem;
    background: var(--bg-light);
}

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

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

.resource-card {
    background: var(--white);
    padding: 24px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-lightest);
    transition: var(--transition);
}

.resource-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.resource-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: rgba(108, 99, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 20px;
    margin-bottom: 12px;
}

.resource-card h4 {
    font-size: 16px;
    margin-bottom: 8px;
}

.resource-card p {
    font-size: 14px;
    color: var(--gray-light);
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.resource-meta {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: var(--gray-lighter);
    margin-bottom: 12px;
}

.resource-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.resource-placeholder {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    color: var(--gray-light);
}

.resource-placeholder i {
    color: var(--gray-lighter);
    margin-bottom: 1rem;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--dark);
    color: rgba(255,255,255,0.8);
    padding: 60px 2rem 0;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.footer-brand .brand-text {
    font-size: 20px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-brand p {
    margin-top: 12px;
    font-size: 14px;
    max-width: 300px;
    opacity: 0.7;
}

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

.footer-column h4 {
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
}

.footer-column a {
    display: block;
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 14px;
    padding: 4px 0;
    transition: var(--transition);
    cursor: pointer;
}

.footer-column a:hover {
    color: var(--white);
}

.footer-bottom {
    max-width: 1280px;
    margin: 0 auto;
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    opacity: 0.6;
}

/* ============================================
   Modal
   ============================================ */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    max-width: 480px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlide 0.3s ease;
}

@keyframes modalSlide {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: var(--gray-light);
    transition: var(--transition);
    background: none;
    border: none;
    line-height: 1;
}

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

.modal-header {
    text-align: center;
    margin-bottom: 24px;
}

.modal-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 8px;
}

.modal-header h2 {
    font-size: 24px;
    font-weight: 700;
}

.modal-header p {
    color: var(--gray-light);
    font-size: 14px;
}

/* ============================================
   Form Styles
   ============================================ */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 4px;
    color: var(--dark);
}

.form-group label i {
    margin-right: 6px;
    color: var(--gray-light);
    width: 16px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--gray-lightest);
    border-radius: var(--radius-sm);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    transition: var(--transition);
    background: var(--white);
    color: var(--dark);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.1);
}

.form-group input::placeholder {
    color: var(--gray-lighter);
}

.form-group small {
    display: block;
    margin-top: 4px;
    color: var(--gray-light);
    font-size: 12px;
}

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

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 12px 0 16px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--gray-light);
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
    cursor: pointer;
}

.forgot-link {
    color: var(--primary);
    text-decoration: none;
    font-size: 14px;
}

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

.form-link {
    text-align: center;
    margin-top: 16px;
    font-size: 14px;
    color: var(--gray-light);
}

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

.form-link a:hover {
    text-decoration: underline;
}

.password-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--gray-light);
    padding: 4px;
}

.password-toggle:hover {
    color: var(--dark);
}

/* Password strength */
.password-strength {
    margin-top: 8px;
}

.password-strength .strength-text {
    font-size: 13px;
    color: var(--gray-light);
}

.password-strength .strength-bar {
    height: 4px;
    border-radius: 2px;
    background: var(--gray-lightest);
    margin-top: 4px;
    overflow: hidden;
}

.password-strength .strength-bar .strength-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.3s ease, background 0.3s ease;
}

/* ============================================
   Toast Notifications
   ============================================ */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 400px;
    width: 100%;
}

.toast {
    background: var(--white);
    padding: 12px 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideInRight 0.3s ease;
    border-left: 4px solid var(--primary);
}

.toast-success { border-left-color: var(--success); }
.toast-error { border-left-color: var(--danger); }
.toast-warning { border-left-color: var(--warning); }
.toast-info { border-left-color: var(--primary); }

.toast-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.toast-success .toast-icon { color: var(--success); }
.toast-error .toast-icon { color: var(--danger); }
.toast-warning .toast-icon { color: var(--warning); }
.toast-info .toast-icon { color: var(--primary); }

.toast-message {
    flex: 1;
    font-size: 14px;
    color: var(--dark);
}

.toast-close {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    color: var(--gray-light);
    padding: 0 4px;
}

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

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

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-description {
        margin: 0 auto;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-brand p {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 16px 24px;
        border-bottom: 1px solid var(--gray-lightest);
        box-shadow: var(--shadow-md);
    }
    
    .nav-links.open {
        display: flex;
    }
    
    .nav-link {
        padding: 12px 16px;
        width: 100%;
    }
    
    .nav-toggle {
        display: block;
    }
    
    .hero {
        padding: 100px 1.5rem 60px;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-stats {
        flex-wrap: wrap;
        gap: 16px;
        justify-content: center;
    }
    
    .stat-divider {
        display: none;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .footer-links {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        margin: 20px;
        padding: 24px;
    }
    
    .chat-messages .message {
        max-width: 95%;
    }
    
    .search-filters {
        flex-direction: column;
    }
    
    .search-filters select {
        width: 100%;
    }
    
    .input-options {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .context-selector {
        margin-left: 0;
        width: 100%;
    }
    
    .context-selector select {
        flex: 1;
    }
    
    .resources-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-stats {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .nav-actions .btn {
        padding: 8px 14px;
        font-size: 13px;
    }
    
    .brand-text {
        font-size: 16px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .features-grid {
        gap: 12px;
    }
    
    .feature-card {
        padding: 20px;
    }
    
    .chat-messages {
        padding: 16px;
        max-height: 350px;
        min-height: 200px;
    }
    
    .chat-input {
        padding: 12px 16px 16px;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        padding: 20px;
        margin: 12px;
    }
    
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .stat-card .stat-value {
        font-size: 1.5rem;
    }
}