/* 
I2DS Website Styles
Intelligent and Innovative Digital Solutions
Premium, modern, AI-native design
*/

/* ========================================
   CSS Variables - Design System
   ======================================== */
:root {
    /* Primary Colors - Deep Blue & Teal */
    --primary-900: #0c2340;
    --primary-800: #0f3460;
    --primary-700: #1a4b7c;
    --primary-600: #1e5f9e;
    --primary-500: #2973b8;
    --primary-400: #4a9fd4;
    --primary-300: #7bc0e8;
    --primary-200: #a8d8f0;
    --primary-100: #d4ecf7;
    
    /* Accent Colors - Vibrant Teal */
    --accent-600: #00838f;
    --accent-500: #00acc1;
    --accent-400: #26c6da;
    --accent-300: #4dd0e1;
    
    /* Success/AI Glow */
    --ai-glow: #00d4aa;
    --ai-glow-soft: rgba(0, 212, 170, 0.15);
    
    /* Neutrals */
    --gray-900: #111827;
    --gray-800: #1f2937;
    --gray-700: #374151;
    --gray-600: #4b5563;
    --gray-500: #6b7280;
    --gray-400: #9ca3af;
    --gray-300: #d1d5db;
    --gray-200: #e5e7eb;
    --gray-100: #f3f4f6;
    --gray-50: #f9fafb;
    
    /* Semantic */
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --info: #3b82f6;
    
    /* Typography */
    --font-display: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;
    --transition-slow: 350ms ease;
}

/* ========================================
   Reset & Base
   ======================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--gray-800);
    background-color: var(--gray-50);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   Typography
   ======================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    color: var(--gray-900);
}

h1 { font-size: 2.75rem; letter-spacing: -0.02em; }
h2 { font-size: 2.25rem; letter-spacing: -0.02em; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.375rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p { margin-bottom: 1rem; }

a {
    color: var(--primary-600);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-700);
}

/* ========================================
   Layout Components
   ======================================== */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.section {
    padding: var(--space-3xl) 0;
}

.section-dark {
    background: linear-gradient(135deg, var(--primary-900) 0%, var(--primary-800) 100%);
    color: white;
}

.section-light {
    background-color: white;
}

/* ========================================
   Navigation
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-200);
    transition: all var(--transition-normal);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-900);
}

.navbar-brand .logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-600), var(--accent-500));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    list-style: none;
}

.nav-link {
    font-weight: 500;
    color: var(--gray-700);
    padding: var(--space-sm) 0;
    position: relative;
    transition: color var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-600);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-600);
    transition: width var(--transition-normal);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link-highlight {
    color: var(--ai-glow) !important;
    font-weight: 600 !important;
}

.nav-link-highlight:hover {
    color: #00c49a !important;
}

.nav-link-highlight::after {
    background: var(--ai-glow) !important;
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--gray-700);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    padding: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    flex-direction: column;
    gap: 8px;
}

.mobile-menu a {
    padding: 12px 16px;
    color: var(--gray-700);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: all 0.2s;
}

.mobile-menu a:hover {
    background: var(--gray-100);
    color: var(--primary-600);
}

.mobile-menu a.mobile-highlight {
    color: var(--ai-glow);
    font-weight: 600;
}

.mobile-menu.open {
    display: flex;
}

@media (max-width: 768px) {
    .navbar-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .navbar-actions .btn {
        display: none;
    }
    
    .navbar-actions .mobile-menu-toggle {
        display: block;
    }
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 0.75rem 1.5rem;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
    color: white;
    box-shadow: 0 4px 14px 0 rgba(30, 95, 158, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-700), var(--primary-800));
    transform: translateY(-1px);
    box-shadow: 0 6px 20px 0 rgba(30, 95, 158, 0.4);
}

.btn-secondary {
    background: white;
    color: var(--primary-700);
    border: 2px solid var(--primary-600);
}

.btn-secondary:hover {
    background: var(--primary-50);
    border-color: var(--primary-700);
}

.btn-ai {
    background: linear-gradient(135deg, var(--ai-glow), var(--accent-500));
    color: white;
    box-shadow: 0 4px 14px 0 rgba(0, 212, 170, 0.3);
}

.btn-ai:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px 0 rgba(0, 212, 170, 0.4);
}

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

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

.btn-icon {
    padding: 8px;
    min-width: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    color: var(--gray-600);
    cursor: pointer;
    transition: all 0.2s;
}

.btn-icon:hover {
    background: var(--gray-200);
    color: var(--gray-800);
}

.btn-icon svg {
    width: 16px;
    height: 16px;
}

.btn-icon.btn-danger {
    color: var(--error);
}

.btn-icon.btn-danger:hover {
    background: #fee2e2;
    color: #b91c1c;
}

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

.btn-success:hover {
    background: #059669;
}

.action-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
}

.inline {
    display: inline;
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-900) 0%, var(--primary-800) 50%, var(--primary-700) 100%);
    position: relative;
    overflow: hidden;
    padding-top: 72px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 720px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: var(--ai-glow-soft);
    border: 1px solid rgba(0, 212, 170, 0.3);
    border-radius: var(--radius-full);
    color: var(--ai-glow);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: var(--space-lg);
}

.hero-badge .pulse {
    width: 8px;
    height: 8px;
    background: var(--ai-glow);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

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

.hero h1 {
    color: white;
    font-size: 3.5rem;
    margin-bottom: var(--space-lg);
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--gray-300);
    margin-bottom: var(--space-2xl);
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.hero-visual {
    position: absolute;
    right: -100px;
    top: 50%;
    transform: translateY(-50%);
    width: 600px;
    height: 600px;
    opacity: 0.15;
}

/* ========================================
   Cards
   ======================================== */
.card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: all var(--transition-normal);
}

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

.card-body {
    padding: var(--space-xl);
}

.card-header {
    padding: var(--space-lg) var(--space-xl);
    border-bottom: 1px solid var(--gray-100);
}

/* Solution Cards */
.solution-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid var(--gray-200);
}

.solution-card .card-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-100), var(--accent-300));
    border-radius: var(--radius-md);
    font-size: 1.75rem;
    margin-bottom: var(--space-md);
}

.solution-card h3 {
    font-size: 1.25rem;
    margin-bottom: var(--space-sm);
}

.solution-card .slogan {
    color: var(--gray-600);
    font-size: 0.9375rem;
    margin-bottom: var(--space-md);
}

.solution-card .status {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-operational {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.status-development {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

/* ========================================
   Grid
   ======================================== */
.grid {
    display: grid;
    gap: var(--space-xl);
}

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

@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

/* ========================================
   Forms
   ======================================== */
.form-group {
    margin-bottom: var(--space-lg);
}

.form-label {
    display: block;
    margin-bottom: var(--space-sm);
    font-weight: 500;
    color: var(--gray-700);
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: var(--font-body);
    font-size: 1rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    background: white;
    transition: all var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px rgba(41, 115, 184, 0.1);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

/* ========================================
   Chatbot Widget - Prominent FAB
   ======================================== */
.chatbot-fab {
    position: fixed;
    top: 90px;
    right: 24px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    cursor: pointer;
    user-select: none;
}

.chatbot-fab-button {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00acc1, #0097a7);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 6px 30px rgba(0, 172, 193, 0.5);
    transition: all 0.3s ease;
    position: relative;
    pointer-events: auto;
}

.chatbot-fab:hover .chatbot-fab-button {
    transform: scale(1.1);
    box-shadow: 0 8px 40px rgba(0, 172, 193, 0.6);
}

.chatbot-fab.active .chatbot-fab-button {
    background: var(--gray-700);
}

.chatbot-fab.active .chatbot-fab-button i::before {
    content: "\f00d";
}

.chatbot-fab-pulse {
    position: absolute;
    right: 0;
    top: 0;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #00acc1;
    animation: fabPulse 2s infinite;
    z-index: -1;
    pointer-events: none;
}

@keyframes fabPulse {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(1.5); opacity: 0; }
}

.chatbot-fab-label {
    background: white;
    color: var(--gray-800);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    white-space: nowrap;
    animation: labelBounce 2s ease-in-out infinite;
    pointer-events: auto;
}

@keyframes labelBounce {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(-5px); }
}

.chatbot-fab.active .chatbot-fab-label {
    display: none;
}

/* Chat window - positioned below the FAB */
.chatbot-window {
    position: fixed;
    top: 80px;
    right: 24px;
    width: 675px;
    height: calc(100vh - 120px);
    max-height: 750px;
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
    z-index: 9998;
    display: none;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--gray-200);
}

.chatbot-window.open {
    display: flex;
    animation: slideDown 0.3s ease;
}

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

.chatbot-header {
    padding: var(--space-xl);
    background: linear-gradient(135deg, var(--primary-700), var(--primary-800));
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-header-content {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 16px;
}

.chatbot-header-icon {
    width: 52px;
    height: 52px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
}

.chatbot-header-icon svg {
    width: 100%;
    height: 100%;
}

.chatbot-header-text h3 {
    color: #ffffff;
    font-size: 1.4rem;
    margin-bottom: 4px;
    font-weight: 600;
}

.chatbot-header-text p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

/* Legacy support */
.chatbot-header h3 {
    color: #ffffff;
    font-size: 1.4rem;
    margin-bottom: var(--space-xs);
}

.chatbot-header p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-xl);
    max-height: 550px;
}

.chat-message {
    margin-bottom: var(--space-lg);
    display: flex;
    gap: var(--space-md);
}

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

.chat-message .avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    padding: 6px;
}

.chat-message .avatar svg {
    width: 100%;
    height: 100%;
}

.chat-message.assistant .avatar {
    background: linear-gradient(135deg, var(--accent-500), var(--ai-glow));
    color: white;
}

.chat-message .content {
    max-width: 80%;
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    font-size: 1.175rem;
    line-height: 1.6;
}

.chat-message.user .content {
    background: var(--primary-600);
    color: white;
    border-bottom-right-radius: var(--radius-sm);
}

.chat-message.assistant .content {
    background: var(--gray-100);
    border-bottom-left-radius: var(--radius-sm);
}

.chatbot-input {
    padding: var(--space-lg);
    border-top: 1px solid var(--gray-200);
    display: flex;
    gap: var(--space-md);
}

.chatbot-input input {
    flex: 1;
    padding: var(--space-md) var(--space-lg);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-full);
    font-size: 1.175rem;
}

.chatbot-input input::placeholder {
    font-size: 1.1rem;
}

.chatbot-input button {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: var(--primary-600);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    font-size: 1.25rem;
}

.chatbot-input button:hover {
    background: var(--primary-700);
}

.chatbot-close {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s;
    padding: var(--space-sm);
}

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

/* Typing indicator */
.typing-dots {
    display: flex;
    gap: 4px;
    padding: 4px 0;
}

.typing-dots span {
    width: 8px;
    height: 8px;
    background: var(--gray-400);
    border-radius: 50%;
    animation: typingBounce 1.4s infinite ease-in-out both;
}

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

@keyframes typingBounce {
    0%, 80%, 100% { transform: scale(0.8); opacity: 0.5; }
    40% { transform: scale(1); opacity: 1; }
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: var(--gray-900);
    color: var(--gray-400);
    padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
}

.footer h4 {
    color: white;
    font-size: 1rem;
    margin-bottom: var(--space-lg);
}

.footer-brand {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: var(--space-md);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--space-sm);
}

.footer-links a {
    color: var(--gray-400);
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    padding-top: var(--space-xl);
    border-top: 1px solid var(--gray-800);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ========================================
   Alerts & Flash Messages
   ======================================== */
.alert {
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-lg);
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #065f46;
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #991b1b;
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #92400e;
}

.alert-info {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #1e40af;
}

/* ========================================
   Utilities
   ======================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-primary { color: var(--primary-600); }
.text-muted { color: var(--gray-500); }
.text-white { color: white; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--space-sm); }
.mb-2 { margin-bottom: var(--space-md); }
.mb-3 { margin-bottom: var(--space-lg); }
.mb-4 { margin-bottom: var(--space-xl); }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--space-sm); }
.mt-2 { margin-top: var(--space-md); }
.mt-3 { margin-top: var(--space-lg); }
.mt-4 { margin-top: var(--space-xl); }

.hidden { display: none; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: var(--space-sm); }
.gap-2 { gap: var(--space-md); }
.gap-3 { gap: var(--space-lg); }

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    
    .hero h1 { font-size: 2.5rem; }
    
    .navbar-nav { display: none; }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .chatbot-window {
        width: calc(100% - 32px);
        right: 16px;
        left: 16px;
        bottom: 90px;
        max-height: 70vh;
    }
    
    .chatbot-header {
        padding: var(--space-lg);
    }
    
    .chatbot-header-icon {
        width: 44px;
        height: 44px;
    }
    
    .chatbot-header-text h3 {
        font-size: 1.2rem;
    }
    
    .chatbot-header-text p {
        font-size: 0.9rem;
    }
    
    .chat-message .content {
        font-size: 1.05rem;
    }
    
    .chatbot-input input {
        font-size: 1.05rem;
    }
}

/* ========================================
   Admin Dashboard
   ======================================== */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 260px;
    background: var(--gray-900);
    color: white;
    padding: var(--space-lg);
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}

.admin-content {
    flex: 1;
    margin-left: 260px;
    padding: var(--space-xl);
    background: var(--gray-100);
}

.admin-nav {
    list-style: none;
    margin-top: var(--space-xl);
}

.admin-nav li {
    margin-bottom: var(--space-sm);
}

.admin-nav a {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    color: var(--gray-400);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.admin-nav a:hover,
.admin-nav a.active {
    background: var(--gray-800);
    color: white;
}

.stat-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-sm);
}

.stat-card .value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-700);
}

.stat-card .label {
    color: var(--gray-500);
    font-size: 0.875rem;
}

/* Loading States */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--gray-300);
    border-top-color: var(--primary-600);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ========================================
   Solution Detail Page
   ======================================== */
.solution-hero {
    background: linear-gradient(135deg, var(--primary-900), var(--primary-700));
    color: white;
    padding: calc(72px + var(--space-3xl)) 0 var(--space-3xl);
}

.solution-hero .icon {
    font-size: 4rem;
    margin-bottom: var(--space-lg);
}

.solution-hero h1 {
    color: white;
    margin-bottom: var(--space-md);
}

.solution-hero .slogan {
    font-size: 1.25rem;
    color: var(--gray-300);
    max-width: 600px;
}

.solution-section {
    padding: var(--space-2xl) 0;
}

.solution-section h2 {
    margin-bottom: var(--space-xl);
    position: relative;
    padding-bottom: var(--space-md);
}

.solution-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-600), var(--accent-500));
    border-radius: var(--radius-full);
}

.challenge-card {
    padding: var(--space-lg);
    border-left: 3px solid var(--warning);
    background: rgba(245, 158, 11, 0.05);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin-bottom: var(--space-lg);
}

.challenge-card h4 {
    margin-bottom: var(--space-sm);
}

.feature-list {
    list-style: none;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--gray-100);
}

.feature-list li::before {
    content: '✓';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--ai-glow-soft);
    color: var(--ai-glow);
    border-radius: 50%;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.benefit-card {
    background: linear-gradient(135deg, var(--primary-50), white);
    border: 1px solid var(--primary-100);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    text-align: center;
}

.benefit-card .icon {
    font-size: 2rem;
    margin-bottom: var(--space-md);
}

/* ========================================
   Print Styles
   ======================================== */
@media print {
    .navbar, .chatbot-fab, .chatbot-window, .footer {
        display: none;
    }
    
    body {
        background: white;
    }
}

/* ========================================
   Admin Panel Styles
   ======================================== */

/* Admin Layout */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 250px;
    background: var(--gray-900);
    color: white;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 100;
    padding-top: 72px;
}

.sidebar-header {
    padding: var(--space-lg);
    border-bottom: 1px solid var(--gray-700);
}

.admin-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: white;
    text-decoration: none;
    font-weight: 600;
}

.sidebar-nav {
    padding: var(--space-md);
}

.sidebar-nav .nav-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    color: var(--gray-300);
    text-decoration: none;
    border-radius: var(--radius-md);
    margin-bottom: var(--space-xs);
    transition: all 0.2s;
}

.sidebar-nav .nav-item:hover,
.sidebar-nav .nav-item.active {
    background: var(--primary-600);
    color: white;
}

.sidebar-nav .nav-item svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.sidebar-footer {
    padding: var(--space-lg);
    border-top: 1px solid var(--gray-700);
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

.sidebar-footer .nav-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    color: var(--gray-300);
    text-decoration: none;
    border-radius: var(--radius-md);
}

.sidebar-footer .nav-item:hover {
    background: var(--gray-800);
    color: white;
}

.sidebar-footer .nav-item svg {
    width: 20px;
    height: 20px;
}

.admin-main {
    flex: 1;
    margin-left: 250px;
    padding: var(--space-xl);
    padding-top: calc(72px + var(--space-xl));
    background: var(--gray-50);
    min-height: 100vh;
}

.admin-header {
    margin-bottom: var(--space-xl);
}

.admin-header h1 {
    margin: 0 0 var(--space-xs) 0;
    font-size: 1.75rem;
}

.admin-subtitle {
    color: var(--gray-500);
    margin: 0;
}

.admin-content {
    max-width: 1200px;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.stat-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow-sm);
}

.stat-card .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-md);
}

.stat-card .stat-icon svg {
    width: 24px;
    height: 24px;
}

.stat-card .stat-icon.users { background: var(--primary-100); color: var(--primary-600); }
.stat-card .stat-icon.leads { background: var(--success-100); color: var(--success-600); }
.stat-card .stat-icon.chats { background: var(--warning-100); color: var(--warning-600); }
.stat-card .stat-icon.docs { background: var(--accent-100); color: var(--accent-600); }

.stat-card .stat-label {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-bottom: var(--space-xs);
}

.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
}

.dashboard-card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.dashboard-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-lg);
    border-bottom: 1px solid var(--gray-100);
}

.dashboard-card .card-header h2 {
    margin: 0;
    font-size: 1.1rem;
}

.dashboard-card .card-content {
    padding: var(--space-lg);
}

/* Data Table */
.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: var(--space-sm) var(--space-md);
    text-align: left;
    border-bottom: 1px solid var(--gray-100);
}

.data-table th {
    font-weight: 600;
    color: var(--gray-500);
    font-size: 0.85rem;
    text-transform: uppercase;
}

/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-lg);
    background: var(--gray-50);
    border-radius: var(--radius-md);
    color: var(--gray-700);
    text-decoration: none;
    text-align: center;
    transition: all 0.2s;
}

.action-btn:hover {
    background: var(--primary-50);
    color: var(--primary-600);
}

.action-btn svg {
    width: 24px;
    height: 24px;
}

/* AI Status */
.ai-status-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.ai-status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--gray-100);
}

.ai-status-item:last-child {
    border-bottom: none;
}

.status-indicator {
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 500;
}

.status-indicator.active {
    background: var(--success-100);
    color: var(--success-700);
}

.status-indicator.inactive {
    background: var(--gray-100);
    color: var(--gray-500);
}

/* Badges */
.badge {
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 500;
}

.badge-new { background: var(--primary-100); color: var(--primary-700); }
.badge-contacted { background: var(--warning-100); color: var(--warning-700); }
.badge-qualified { background: var(--success-100); color: var(--success-700); }

.empty-state {
    text-align: center;
    color: var(--gray-400);
    padding: var(--space-xl);
}

/* Admin Responsive */
@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .admin-sidebar {
        transform: translateX(-100%);
    }
    .admin-main {
        margin-left: 0;
    }
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .quick-actions {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   Admin Documents Page
   ======================================== */
.stats-row {
    display: flex;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.mini-stat {
    background: white;
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    text-align: center;
    min-width: 120px;
}

.mini-stat-value {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-600);
}

.mini-stat-label {
    font-size: 0.85rem;
    color: var(--gray-500);
}

.documents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-lg);
}

.document-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.doc-icon svg {
    width: 40px;
    height: 40px;
    color: var(--primary-500);
}

.doc-info h3 {
    margin: 0 0 var(--space-xs) 0;
    font-size: 1rem;
}

.doc-meta {
    display: flex;
    gap: var(--space-sm);
    color: var(--gray-500);
    font-size: 0.85rem;
    margin: 0;
}

.doc-date {
    font-size: 0.8rem;
    color: var(--gray-400);
    margin: 0;
}

.doc-status .badge {
    font-size: 0.75rem;
}

.badge-success { background: var(--success-100); color: var(--success-700); }
.badge-warning { background: var(--warning-100); color: var(--warning-700); }
.badge-danger { background: var(--error); color: white; }
.badge-outline { background: var(--gray-100); color: var(--gray-600); }

.doc-actions {
    display: flex;
    gap: var(--space-sm);
    margin-top: auto;
}

.doc-actions .btn svg {
    width: 14px;
    height: 14px;
}

.inline {
    display: inline;
}

.empty-state-card {
    grid-column: 1 / -1;
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--space-xxl);
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.empty-state-card svg {
    width: 64px;
    height: 64px;
    color: var(--gray-300);
    margin-bottom: var(--space-lg);
}

.empty-state-card h3 {
    color: var(--gray-700);
    margin-bottom: var(--space-sm);
}

.empty-state-card p {
    color: var(--gray-500);
    margin-bottom: var(--space-lg);
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-lg);
}

.modal-header h2 {
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray-500);
}

.modal-actions {
    display: flex;
    gap: var(--space-md);
    justify-content: flex-end;
    margin-top: var(--space-lg);
}

.file-upload-area {
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius-md);
    padding: var(--space-xl);
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.file-upload-area:hover,
.file-upload-area.drag-over {
    border-color: var(--primary-500);
    background: var(--primary-50);
}

.file-upload-area.has-file {
    border-color: var(--success);
    background: var(--success-100);
}

.file-upload-area svg {
    width: 48px;
    height: 48px;
    color: var(--gray-400);
    margin-bottom: var(--space-md);
}

.file-upload-area .link {
    color: var(--primary-600);
    text-decoration: underline;
}

.file-types {
    display: block;
    font-size: 0.8rem;
    color: var(--gray-400);
    margin-top: var(--space-sm);
}

.file-name {
    margin-top: var(--space-sm);
    padding: var(--space-sm);
    background: var(--gray-50);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    cursor: pointer;
    margin: var(--space-md) 0;
}

.checkbox-label input {
    width: 18px;
    height: 18px;
}

.header-actions {
    margin-left: auto;
}

.sidebar-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.sidebar-toggle svg {
    width: 24px;
    height: 24px;
}

/* Alert */
.alert {
    padding: var(--space-md);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-lg);
}

.alert-success {
    background: var(--success-100);
    color: var(--success-700);
}

.alert-error {
    background: #fee2e2;
    color: #b91c1c;
}

.alert-warning {
    background: var(--warning-100);
    color: var(--warning-700);
}

.alert-info {
    background: var(--primary-100);
    color: var(--primary-700);
}

/* ========================================
   Authentication Pages
   ======================================== */
.auth-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, var(--primary-900) 0%, var(--primary-800) 50%, var(--primary-700) 100%);
}

.auth-container {
    width: 100%;
    max-width: 440px;
}

.auth-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-header .ai-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--ai-glow-soft);
    color: var(--accent-600);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 16px;
}

.auth-header .ai-badge .pulse {
    width: 8px;
    height: 8px;
    background: var(--ai-glow);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.auth-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.auth-header p {
    color: var(--gray-600);
    font-size: 0.95rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.auth-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.auth-form label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-700);
}

.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form input[type="text"] {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: all 0.2s;
    background: white;
}

.auth-form input:focus {
    outline: none;
    border-color: var(--accent-500);
    box-shadow: 0 0 0 3px rgba(0, 172, 193, 0.15);
}

.password-input {
    position: relative;
}

.password-input input {
    padding-right: 45px;
}

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

.toggle-password svg {
    width: 20px;
    height: 20px;
}

.form-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

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

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent-500);
}

.forgot-link {
    font-size: 0.9rem;
    color: var(--accent-600);
    text-decoration: none;
    font-weight: 500;
}

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

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

.auth-form .btn-primary {
    padding: 14px 24px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.auth-form .btn-primary svg {
    width: 18px;
    height: 18px;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
    color: var(--gray-500);
    font-size: 0.9rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--gray-200);
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    color: var(--gray-500);
    font-size: 0.85rem;
}

.auth-footer a {
    color: var(--accent-600);
    text-decoration: none;
}

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

/* Register page extras */
.auth-card.register {
    max-width: 500px;
}

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

@media (max-width: 480px) {
    .auth-card {
        padding: 24px;
    }
    
    .form-row-2 {
        grid-template-columns: 1fr;
    }
}
