:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary: #10b981;
    --accent: #f59e0b;
    --danger: #ef4444;
    --dark: #111827;
    --gray-900: #1f2937;
    --gray-800: #374151;
    --gray-700: #4b5563;
    --gray-600: #6b7280;
    --gray-500: #9ca3af;
    --gray-400: #d1d5db;
    --gray-300: #e5e7eb;
    --gray-200: #f3f4f6;
    --gray-100: #f9fafb;
    --white: #ffffff;
    
    /* Enhanced AI Theme Colors */
    --ai-purple: #8b5cf6;
    --ai-cyan: #06b6d4;
    --ai-pink: #ec4899;
    --ai-emerald: #059669;
    --neural-blue: #3b82f6;
    --quantum-violet: #7c3aed;
    
    /* Enhanced Shadows with Glow Effects */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.3);
    --shadow-glow-lg: 0 0 40px rgba(99, 102, 241, 0.4);
    
    /* Enhanced Radius */
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    /* AI Gradients */
    --gradient-ai: linear-gradient(135deg, var(--primary) 0%, var(--ai-purple) 50%, var(--ai-cyan) 100%);
    --gradient-neural: linear-gradient(135deg, var(--neural-blue) 0%, var(--quantum-violet) 100%);
    --gradient-data: linear-gradient(135deg, var(--ai-cyan) 0%, var(--secondary) 100%);
    --gradient-insight: linear-gradient(135deg, var(--ai-pink) 0%, var(--accent) 100%);
    
    /* Animation Variables */
    --animation-fast: 0.15s;
    --animation-normal: 0.3s;
    --animation-slow: 0.6s;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--dark);
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Advanced AI Animations */
@keyframes pulse-ai {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.02); }
}

@keyframes glow-pulse {
    0%, 100% { box-shadow: 0 0 20px rgba(99, 102, 241, 0.3); }
    50% { box-shadow: 0 0 40px rgba(99, 102, 241, 0.6); }
}

@keyframes neural-flow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes data-stream {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

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

@keyframes fade-in-scale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

/* AI-Themed Glass Effect */
.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Neural Network Background */
.neural-bg {
    background: var(--gradient-neural);
    background-size: 400% 400%;
    animation: neural-flow 8s ease-in-out infinite;
}

/* AI Glow Effects */
.ai-glow {
    box-shadow: var(--shadow-glow);
    transition: box-shadow var(--animation-normal) ease;
}

.ai-glow:hover {
    box-shadow: var(--shadow-glow-lg);
}

/* Advanced Button Styles */
.btn-ai {
    background: var(--gradient-ai);
    color: white;
    border: none;
    position: relative;
    overflow: hidden;
    transition: all var(--animation-normal) ease;
}

.btn-ai::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-ai:hover::before {
    left: 100%;
}

.btn-ai:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow-lg);
}

/* Landing Page Styles */
.landing-container {
    min-height: 100vh;
}

.landing-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--gray-200);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.logo-tag {
    font-size: 0.75rem;
    color: var(--gray-600);
    font-weight: 500;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--gray-700);
    font-weight: 500;
    transition: color 0.2s;
}

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

.btn-primary {
    background: var(--primary);
    color: white;
    padding: 0.625rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
    transition: all 0.2s;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    padding: 8rem 5% 4rem;
    align-items: center;
    min-height: 90vh;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--gray-600);
    margin-bottom: 2rem;
    line-height: 1.6;
}

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

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
    border-radius: var(--radius);
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s;
}

.btn-secondary {
    background: var(--gray-100);
    color: var(--dark);
    border: 1px solid var(--gray-300);
}

.btn-secondary:hover {
    background: var(--gray-200);
    transform: translateY(-1px);
}

.hero-visual {
    position: relative;
    height: 500px;
}

.floating-card {
    position: absolute;
    background: white;
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s;
}

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

.card-1 {
    top: 20px;
    right: 50px;
    width: 200px;
}

.card-2 {
    top: 180px;
    right: 180px;
    width: 200px;
}

.card-3 {
    bottom: 50px;
    right: 80px;
    width: 180px;
}

.mini-chart {
    height: 60px;
    margin-bottom: 1rem;
}

.card-label {
    display: block;
    font-size: 0.875rem;
    color: var(--gray-600);
    margin-bottom: 0.25rem;
}

.card-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
}

.circular-progress {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
}

.progress-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: 600;
    font-size: 1.125rem;
}

.features-section, .modules-section {
    padding: 5rem 5%;
}

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

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

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

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-card {
    background: var(--gray-50);
    padding: 2rem;
    border-radius: var(--radius);
    transition: all 0.3s;
}

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

.feature-icon {
    width: 48px;
    height: 48px;
    background: var(--primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-icon svg {
    width: 24px;
    height: 24px;
    color: white;
}

.feature-card h3 {
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.feature-card p {
    color: var(--gray-600);
    line-height: 1.6;
}

.modules-showcase {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.module-category h4 {
    color: var(--gray-700);
    margin-bottom: 1rem;
    font-weight: 600;
}

.module-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.module-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--gray-100);
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--dark);
    transition: all 0.2s;
}

.module-item:hover {
    background: var(--primary);
    color: white;
    transform: translateX(5px);
}

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

.landing-footer {
    background: var(--gray-100);
    padding: 3rem 5% 1.5rem;
    margin-top: 5rem;
}

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

.footer-section h5 {
    margin-bottom: 1rem;
    color: var(--dark);
}

.footer-section a {
    display: block;
    color: var(--gray-600);
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: color 0.2s;
}

.footer-section a:hover {
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid var(--gray-300);
    padding-top: 1.5rem;
    text-align: center;
    color: var(--gray-600);
}

/* App Layout Styles */
.app-container {
    display: flex;
    height: 100vh;
    background: var(--gray-100);
}

.sidebar {
    width: 240px;
    background: white;
    border-right: 1px solid var(--gray-200);
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
}

.sidebar-nav {
    flex: 1;
    padding: 1rem;
}

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

.nav-section-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    padding: 0 0.75rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--gray-700);
    transition: all 0.2s;
    margin-bottom: 0.25rem;
}

.nav-item:hover {
    background: var(--gray-100);
    color: var(--primary);
}

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

.nav-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.top-bar {
    background: white;
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.page-title {
    font-size: 1.5rem;
    font-weight: 600;
}

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

.search-box {
    position: relative;
}

.search-input {
    padding: 0.5rem 1rem 0.5rem 2.5rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    width: 300px;
    font-size: 0.875rem;
}

.search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: var(--gray-500);
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background 0.2s;
}

.user-menu:hover {
    background: var(--gray-100);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
}

.content-area {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
}

/* Dashboard Styles */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.metric-card {
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

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

.metric-title {
    font-size: 0.875rem;
    color: var(--gray-600);
    font-weight: 500;
}

.metric-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.metric-icon svg {
    width: 20px;
    height: 20px;
}

.metric-icon.primary {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
}

.metric-icon.success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--secondary);
}

.metric-icon.warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--accent);
}

.metric-icon.danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.metric-value {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.metric-change {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
}

.metric-change.positive {
    color: var(--secondary);
}

.metric-change.negative {
    color: var(--danger);
}

/* Enhanced AI Insights Banner */
.ai-insights-banner {
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f2ff 100%);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
    color: var(--dark);
    position: relative;
    overflow: visible;
    box-shadow: var(--shadow-sm);
}

.ai-insights-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-ai);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.insights-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.insights-header svg {
    width: 24px;
    height: 24px;
    color: var(--primary);
}

.insights-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    color: var(--dark);
}

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

.insight-card {
    background: white;
    border-radius: var(--radius-sm);
    padding: 1.25rem;
    border: 1px solid var(--gray-200);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    position: relative;
    transition: all var(--animation-normal) ease;
    animation: slide-in-up 0.6s ease-out;
    z-index: 1;
    overflow: hidden;
}

.insight-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(99, 102, 241, 0.3);
}

.insight-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-ai);
    opacity: 0;
    transition: opacity var(--animation-normal) ease;
}

.insight-card:hover::before {
    opacity: 1;
}

.insight-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.insight-content {
    flex: 1;
}

.insight-content h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    font-weight: 600;
}

.insight-content p {
    margin: 0;
    font-size: 0.875rem;
    opacity: 0.9;
    line-height: 1.5;
}

.insight-card .btn-sm {
    background: var(--gray-100);
    color: var(--dark);
    border: 1px solid var(--gray-300);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.insight-card .btn-sm:hover {
    background: var(--gray-200);
    border-color: var(--gray-400);
}

.insight-card .btn-sm.btn-ai {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.insight-card .btn-sm.btn-ai:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.chart-container {
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
    position: relative;
}

.chart-container canvas {
    max-height: 400px !important;
    width: 100% !important;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.chart-title {
    font-size: 1.125rem;
    font-weight: 600;
}

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

.chart-action {
    padding: 0.375rem 0.75rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    background: white;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
}

.chart-action:hover {
    background: var(--gray-100);
}

.chart-action.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Table Styles */
.data-table {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.table-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.table-title {
    font-size: 1.125rem;
    font-weight: 600;
}

.table-filters {
    display: flex;
    gap: 0.75rem;
}

.filter-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    background: white;
    font-size: 0.875rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.filter-btn:hover {
    background: var(--gray-100);
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead {
    background: var(--gray-50);
}

th {
    padding: 0.75rem 1.5rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--gray-700);
}

td {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--gray-200);
}

tr:hover {
    background: var(--gray-50);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.status-badge.active {
    background: rgba(16, 185, 129, 0.1);
    color: var(--secondary);
}

.status-badge.pending {
    background: rgba(245, 158, 11, 0.1);
    color: var(--accent);
}

.status-badge.inactive {
    background: rgba(107, 114, 128, 0.1);
    color: var(--gray-600);
}

/* Form Styles */
.form-container {
    background: white;
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

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

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

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    transition: all 0.2s;
}

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

.form-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    background: white;
    cursor: pointer;
}

.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    resize: vertical;
    min-height: 120px;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    font-size: 1rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid var(--gray-300);
    font-size: 0.875rem;
    background: white;
    color: var(--gray-700);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-sm:hover {
    background: var(--gray-100);
    border-color: var(--gray-400);
}

.btn-cancel {
    background: var(--gray-200);
    color: var(--gray-700);
}

.btn-cancel:hover {
    background: var(--gray-300);
}

/* Onboarding Styles */
.onboarding-container {
    min-height: 100vh;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.onboarding-card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 600px;
    padding: 3rem;
}

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

.onboarding-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.onboarding-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.onboarding-subtitle {
    color: var(--gray-600);
}

.progress-bar {
    height: 4px;
    background: var(--gray-200);
    border-radius: 2px;
    margin-bottom: 3rem;
    overflow: hidden;
}

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

/* Workflow Builder Styles */
.workflow-canvas {
    background: var(--gray-50);
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius);
    min-height: 500px;
    position: relative;
    overflow: auto;
}

.workflow-node {
    position: absolute;
    background: white;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius);
    padding: 1rem;
    min-width: 200px;
    cursor: move;
    transition: all 0.2s;
}

.workflow-node:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.workflow-node.selected {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.node-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.node-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.node-title {
    font-weight: 600;
}

.node-content {
    font-size: 0.875rem;
    color: var(--gray-600);
}

.node-ports {
    display: flex;
    justify-content: space-between;
    margin-top: 0.75rem;
}

.port {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--gray-400);
    border: 2px solid white;
    cursor: pointer;
}

.port:hover {
    background: var(--primary);
}

.port.input {
    margin-left: -6px;
}

.port.output {
    margin-right: -6px;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-visual {
        display: none;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .modules-showcase {
        grid-template-columns: 1fr;
    }
    
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .app-container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 1px solid var(--gray-200);
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

/* Enhanced Metric Cards */
.metric-card {
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--animation-normal) ease;
    position: relative;
    overflow: hidden;
    animation: fade-in-scale 0.6s ease-out;
}

.metric-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
}

.metric-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-ai);
    transition: height var(--animation-normal) ease;
}

.metric-card:hover::before {
    height: 8px;
}

/* AI Assistant Float Button */
.ai-assistant {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--gradient-ai);
    border-radius: 50%;
    border: none;
    cursor: pointer;
    z-index: 1000;
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--animation-normal) ease;
    animation: float 3s ease-in-out infinite;
}

.ai-assistant:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-xl), var(--shadow-glow-lg);
}

.ai-assistant svg {
    width: 24px;
    height: 24px;
    color: white;
}

.ai-assistant::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    background: conic-gradient(var(--primary), var(--ai-purple), var(--ai-cyan), var(--primary));
    animation: spin 3s linear infinite;
    z-index: -1;
}

/* AI Chat Interface */
.ai-chat {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 380px;
    height: 500px;
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    z-index: 1001;
    display: none;
    flex-direction: column;
    overflow: hidden;
    animation: slide-in-up 0.4s ease-out;
}

.ai-chat-header {
    background: var(--gradient-ai);
    color: white;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.ai-chat-avatar {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse-ai 2s infinite;
}

.ai-chat-body {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ai-message {
    background: var(--gray-100);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    max-width: 80%;
    animation: slide-in-up 0.3s ease-out;
}

.ai-message.user {
    background: var(--primary);
    color: white;
    align-self: flex-end;
}

.ai-chat-input {
    padding: 1rem;
    border-top: 1px solid var(--gray-200);
    display: flex;
    gap: 0.5rem;
}

.ai-chat-input input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    outline: none;
}

.ai-chat-input button {
    padding: 0.75rem 1rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
}

/* Real-time Data Indicators */
.data-indicator {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.data-indicator::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--secondary);
    border-radius: 50%;
    animation: glow-pulse 2s infinite;
}

.data-indicator.warning::before {
    background: var(--accent);
}

.data-indicator.danger::before {
    background: var(--danger);
}

/* Loading Skeletons */
.skeleton {
    background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-100) 50%, var(--gray-200) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}

.skeleton-text {
    height: 1rem;
    margin-bottom: 0.5rem;
}

.skeleton-text.large {
    height: 1.5rem;
}

.skeleton-text.small {
    height: 0.75rem;
    width: 60%;
}

/* Enhanced Chart Containers */
.chart-container {
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
    position: relative;
    transition: all var(--animation-normal) ease;
    animation: fade-in-scale 0.6s ease-out;
}

.chart-container:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

/* AI Prediction Badges */
.ai-prediction {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    background: rgba(139, 92, 246, 0.1);
    color: var(--ai-purple);
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

/* Enhanced Status Badges */
.status-badge {
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    position: relative;
    overflow: hidden;
}

.status-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s;
}

.status-badge:hover::before {
    left: 100%;
}

/* Enhanced Landing Page Styles */
.ai-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--primary);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    display: block;
    margin-bottom: 0.5rem;
}

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

.hero-badges {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.trust-indicators {
    display: flex;
    gap: 1.5rem;
    font-size: 0.875rem;
    color: var(--gray-600);
}

.trust-indicators span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Enhanced Hero Visual */
.hero-visual {
    position: relative;
    width: 100%;
    height: 600px;
}

.neural-network {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 200px;
    opacity: 0.1;
    z-index: 0;
}

.neural-node {
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--gradient-ai);
    border-radius: 50%;
    animation: pulse-ai 3s infinite;
}

.neural-node:nth-child(1) { top: 20%; left: 20%; animation-delay: 0s; }
.neural-node:nth-child(2) { top: 50%; left: 50%; animation-delay: 1s; }
.neural-node:nth-child(3) { top: 80%; left: 80%; animation-delay: 2s; }

.neural-connection {
    position: absolute;
    height: 2px;
    background: var(--gradient-ai);
    opacity: 0.5;
}

.neural-connection:nth-child(4) {
    top: 30%;
    left: 30%;
    width: 100px;
    transform: rotate(30deg);
}

.neural-connection:nth-child(5) {
    top: 60%;
    left: 60%;
    width: 80px;
    transform: rotate(-30deg);
}

.neural-connection:nth-child(6) {
    top: 40%;
    left: 40%;
    width: 120px;
    transform: rotate(60deg);
}

/* Enhanced Floating Cards */
.floating-card {
    position: absolute;
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-xl);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    z-index: 10;
    transition: all var(--animation-normal) ease;
}

.floating-card:hover {
    transform: translateY(-10px) scale(1.05);
}

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

.ai-indicator {
    font-size: 1.2rem;
    animation: float 2s ease-in-out infinite;
}

.ai-confidence {
    font-size: 0.75rem;
    color: var(--ai-purple);
    font-weight: 500;
    margin-top: 0.5rem;
    animation: pulse-ai 2s infinite;
}

.card-1 {
    top: 10%;
    left: 10%;
    animation: float 3s ease-in-out infinite;
}

.card-2 {
    top: 40%;
    right: 10%;
    animation: float 3s ease-in-out infinite;
    animation-delay: 1s;
}

.card-3 {
    bottom: 30%;
    left: 15%;
    animation: float 3s ease-in-out infinite;
    animation-delay: 2s;
}

.card-4 {
    bottom: 10%;
    right: 20%;
    animation: float 3s ease-in-out infinite;
    animation-delay: 1.5s;
}

/* Data Stream Animation */
.data-stream {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.stream-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary);
    border-radius: 50%;
    animation: data-stream 8s linear infinite;
}

.stream-particle:nth-child(1) {
    top: 20%;
    animation-delay: 0s;
    background: var(--ai-cyan);
}

.stream-particle:nth-child(2) {
    top: 50%;
    animation-delay: 2s;
    background: var(--ai-purple);
}

.stream-particle:nth-child(3) {
    top: 80%;
    animation-delay: 4s;
    background: var(--ai-pink);
}

/* Enhanced AI Dashboard Components */
.ai-brain-icon {
    width: 48px;
    height: 48px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(99, 102, 241, 0.2);
}

.ai-brain-icon svg {
    color: var(--primary);
}

.ai-status {
    flex: 1;
    margin-left: 1rem;
}

.ai-stats {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--gray-600);
    margin-top: 0.5rem;
}

.ai-controls {
    display: flex;
    gap: 0.75rem;
}

.ai-controls .btn-sm.glass-effect {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.ai-controls .btn-sm.glass-effect:hover {
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.3);
}

.insight-urgency {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.insight-urgency {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    background: rgba(245, 158, 11, 0.1);
    color: var(--accent);
}

.insight-urgency.success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--secondary);
}

.insight-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.insight-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--gray-200);
}

.insight-metrics .metric {
    font-size: 0.75rem;
    background: var(--gray-100);
    color: var(--gray-700);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
    white-space: nowrap;
}


/* AI Performance Monitor */
.ai-performance-monitor {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
    border: 2px solid transparent;
    background-clip: padding-box;
    position: relative;
}

.ai-performance-monitor::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 2px;
    background: var(--gradient-ai);
    border-radius: inherit;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: subtract;
    z-index: -1;
}

.monitor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.monitor-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--gray-600);
}

.ai-metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.ai-metric {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--gray-50);
    border-radius: var(--radius-sm);
    transition: all var(--animation-normal) ease;
    position: relative;
    overflow: hidden;
}

.ai-metric:hover {
    background: white;
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.ai-metric::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-ai);
    opacity: 0;
    transition: opacity var(--animation-normal) ease;
}

.ai-metric:hover::before {
    opacity: 1;
}

.metric-icon.neural {
    width: 40px;
    height: 40px;
    background: var(--gradient-neural);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    animation: float 3s ease-in-out infinite;
    flex-shrink: 0;
}

.metric-data {
    text-align: left;
}

.ai-metric .metric-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.25rem;
}

.ai-metric .metric-label {
    font-size: 0.875rem;
    color: var(--gray-600);
    font-weight: 500;
}

/* Enhanced Workflow Builder Styles */
.page-header-enhanced {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex: 1;
}

.title-section {
    flex: 1;
}

.ai-workflow-status {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--gray-600);
    margin-top: 0.5rem;
}

.workflow-controls {
    display: flex;
    gap: 0.75rem;
}

.component-categories {
    display: flex;
    border-bottom: 1px solid var(--gray-200);
    margin-bottom: 1rem;
}

.category-tab {
    padding: 0.75rem 1rem;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all var(--animation-normal) ease;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-600);
}

.category-tab:hover {
    color: var(--primary);
    background: var(--gray-50);
}

.category-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
}

.palette-section {
    display: none;
    flex-direction: column;
    gap: 0.75rem;
}

.palette-section.active {
    display: flex;
}

.palette-item-enhanced {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    cursor: grab;
    transition: all var(--animation-normal) ease;
    position: relative;
    overflow: hidden;
}

.palette-item-enhanced:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.palette-item-enhanced:active {
    cursor: grabbing;
    transform: scale(0.98);
}

.palette-item-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-ai);
    opacity: 0;
    transition: opacity var(--animation-normal) ease;
}

.palette-item-enhanced:hover::before {
    opacity: 1;
}

.item-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.item-icon svg {
    width: 20px;
    height: 20px;
}

.item-icon.ai-model {
    border-radius: 50%;
    animation: pulse-ai 3s infinite;
    font-size: 1.2rem;
}

.item-details {
    flex: 1;
}

.item-name {
    font-weight: 600;
    color: var(--dark);
    display: block;
    margin-bottom: 0.25rem;
}

.item-desc {
    font-size: 0.875rem;
    color: var(--gray-600);
    display: block;
}

.ai-confidence {
    font-size: 0.75rem;
    color: var(--ai-purple);
    font-weight: 500;
    margin-top: 0.25rem;
    padding: 0.125rem 0.5rem;
    background: rgba(139, 92, 246, 0.1);
    border-radius: 9999px;
    display: inline-block;
}

.workflow-canvas-enhanced {
    position: relative;
    background: 
        radial-gradient(circle at 25% 25%, rgba(99, 102, 241, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(16, 185, 129, 0.05) 0%, transparent 50%),
        linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    min-height: 600px;
    overflow: hidden;
}

.workflow-stage {
    margin-bottom: 3rem;
}

.stage-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 0 1rem;
}

.stage-number {
    width: 32px;
    height: 32px;
    background: var(--gradient-ai);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
}

.stage-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--dark);
}

.workflow-node-enhanced {
    position: absolute;
    background: white;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    min-width: 200px;
    box-shadow: var(--shadow-sm);
    transition: all var(--animation-normal) ease;
    cursor: pointer;
}

.workflow-node-enhanced:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    transform: translateY(-2px);
}

.node-status {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid white;
}

.node-status.running {
    background: var(--secondary);
    animation: glow-pulse 2s infinite;
}

.node-status.error {
    background: var(--danger);
}

.node-status.idle {
    background: var(--gray-400);
}

.node-header-enhanced {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid var(--gray-200);
}

.node-icon-enhanced {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.node-details {
    flex: 1;
}

.node-title-enhanced {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.25rem;
}

.node-subtitle {
    font-size: 0.875rem;
    color: var(--gray-600);
}

.node-metrics {
    padding: 0.75rem 1rem;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
}

.node-metrics .metric {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.metric-label {
    font-size: 0.75rem;
    color: var(--gray-600);
}

.metric-value {
    font-weight: 600;
    color: var(--dark);
}