/* ============================================
   DBMigr8r - Main Stylesheet
   Enterprise Database Migration Tool
   ============================================ */

/* ============================================
   CSS Variables & Root Settings
   ============================================ */
:root {
    /* Primary Colors */
    --primary: #4F46E5;
    --primary-dark: #4338CA;
    --primary-light: #818CF8;
    --primary-subtle: rgba(79, 70, 229, 0.1);
    
    /* Secondary Colors */
    --secondary: #0EA5E9;
    --secondary-dark: #0284C7;
    
    /* Status Colors */
    --success: #10B981;
    --success-subtle: rgba(16, 185, 129, 0.1);
    --warning: #F59E0B;
    --warning-subtle: rgba(245, 158, 11, 0.1);
    --danger: #EF4444;
    --danger-subtle: rgba(239, 68, 68, 0.1);
    --info: #06B6D4;
    --info-subtle: rgba(6, 182, 212, 0.1);
    --purple: #8B5CF6;
    --purple-subtle: rgba(139, 92, 246, 0.1);
    
    /* Neutral Colors */
    --dark: #1E293B;
    --dark-light: #334155;
    --gray-100: #F8FAFC;
    --gray-200: #E2E8F0;
    --gray-300: #CBD5E1;
    --gray-400: #94A3B8;
    --gray-500: #64748B;
    --gray-600: #475569;
    --white: #FFFFFF;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #4F46E5 0%, #0EA5E9 100%);
    --gradient-dark: linear-gradient(135deg, #1E293B 0%, #334155 100%);
    --gradient-hero: linear-gradient(135deg, #1E293B 0%, #312E81 50%, #1E293B 100%);
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 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 40px rgba(79, 70, 229, 0.3);
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;
    --transition-slow: 350ms ease;
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ============================================
   Base Styles
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: var(--transition-fast);
}

a:hover {
    color: var(--primary-dark);
}

/* ============================================
   Navigation
   ============================================ */
.navbar {
    background: transparent;
    padding: 1rem 0;
    transition: var(--transition-normal);
}

.navbar.scrolled {
    background: #0F172A;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-lg);
}

.navbar-brand {
    display: flex;
    align-items: center;
}

.brand-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.25rem;
}

.brand-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.1;
}

.brand-info {
    display: flex;
    flex-direction: column;
}

.brand-tagline {
    font-size: 0.65rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.5px;
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: var(--transition-fast);
}

.navbar-nav .nav-link:hover {
    color: var(--white);
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    font-weight: 600;
    border-radius: var(--radius-md);
    padding: 0.625rem 1.25rem;
    transition: var(--transition-normal);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
    color: var(--white);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
    background: var(--gradient-primary);
}

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
    color: var(--white);
}

.btn-lg {
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
}

/* ============================================
   Hero Section
   ============================================ */
.hero-section {
    background: linear-gradient(135deg, #0F172A 0%, #1E1B4B 50%, #0F172A 100%);
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    padding-top: 70px;
    padding-bottom: 80px;
}

.hero-bg-animation {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(79, 70, 229, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(14, 165, 233, 0.3) 0%, transparent 50%);
    animation: bgPulse 8s ease-in-out infinite;
}

@keyframes bgPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.hero-content {
    position: relative;
    z-index: 2;
}

.badge-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    color: var(--white);
    font-size: 0.875rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-title {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 1rem;
}

@media (min-width: 992px) {
    .hero-title {
        font-size: 3.5rem;
    }
}

.gradient-text {
    background: linear-gradient(135deg, #818CF8 0%, #06B6D4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
    max-width: 450px;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-top: 0;
    padding: 1.25rem 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--white);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.95);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
    font-weight: 500;
}

/* Hero Animation */
.hero-visual {
    position: relative;
    z-index: 2;
}

.migration-animation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.db-card {
    width: 140px;
    height: 160px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: var(--transition-normal);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.db-card i {
    font-size: 3rem;
}

.db-card span {
    font-weight: 600;
    font-size: 0.875rem;
}

.db-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

.source-db {
    animation: floatLeft 3s ease-in-out infinite;
}

.target-db {
    animation: floatRight 3s ease-in-out infinite;
}

@keyframes floatLeft {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes floatRight {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.migration-arrow {
    display: flex;
    align-items: center;
    position: relative;
    width: 120px;
}

.migration-arrow i {
    font-size: 2rem;
    color: var(--primary-light);
    animation: arrowPulse 1.5s ease-in-out infinite;
}

@keyframes arrowPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.arrow-particles span {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--primary-light);
    border-radius: 50%;
    animation: particleMove 2s linear infinite;
}

.arrow-particles span:nth-child(1) { animation-delay: 0s; }
.arrow-particles span:nth-child(2) { animation-delay: 0.6s; }
.arrow-particles span:nth-child(3) { animation-delay: 1.2s; }

@keyframes particleMove {
    0% { left: 0; opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { left: 100%; opacity: 0; }
}

.hero-wave {
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    z-index: 1;
}

.hero-wave svg {
    display: block;
    width: 100%;
    height: 120px;
}

/* ============================================
   Trusted Section
   ============================================ */
.trusted-section {
    background: var(--white);
}

.company-logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-400);
    padding: 0.5rem 1.5rem;
    transition: var(--transition-fast);
}

.company-logo:hover {
    color: var(--gray-600);
}

/* ============================================
   Section Headers
   ============================================ */
.section-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 1rem;
    background: var(--primary-subtle);
    color: var(--primary);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--dark);
    line-height: 1.2;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--gray-500);
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   Features Section
   ============================================ */
.features-section {
    background: var(--gray-100);
}

.feature-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    height: 100%;
    border: 1px solid var(--gray-200);
    transition: var(--transition-normal);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
}

.bg-purple-subtle {
    background: var(--purple-subtle);
}

.text-purple {
    color: var(--purple);
}

.feature-card h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--dark);
}

.feature-card p {
    color: var(--gray-500);
    margin-bottom: 1.25rem;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0;
    color: var(--gray-600);
    font-size: 0.875rem;
}

.feature-list li i {
    color: var(--success);
    font-size: 0.875rem;
}

/* ============================================
   Database Section
   ============================================ */
.databases-section {
    background: var(--white);
}

.database-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.db-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem;
    background: var(--gray-100);
    border-radius: var(--radius-lg);
    transition: var(--transition-normal);
    cursor: pointer;
    min-width: 120px;
}

.db-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    background: var(--white);
}

.db-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--white);
}

.db-icon.postgresql { background: #d0c7c7; }
.db-icon.oracle { background: #d0c7c7; }
.db-icon.sqlserver { background: #d0c7c7; }
.db-icon.mysql { background: #d0c7c7; }
.db-icon.mongodb { background: #d0c7c7; }
.db-icon.mariadb { background: #d0c7c7; }
.db-icon.redis { background: #d0c7c7; }
.db-icon.cassandra { background: #d0c7c7; }

.db-item span {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--dark);
}

.more-dbs .db-icon {
    background: var(--gradient-primary);
    font-size: 1.25rem;
    font-weight: 700;
}

/* ============================================
   Pipeline Section
   ============================================ */
.pipeline-section {
    background: var(--gray-100);
}

.pipeline-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
    padding: 2rem;
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    overflow-x: auto;
}

.pipeline-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    position: relative;
    min-width: 100px;
}

.step-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--gray-200);
    color: var(--gray-500);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: var(--transition-normal);
}

.pipeline-step.completed .step-icon {
    background: var(--success);
    color: var(--white);
}

.pipeline-step.active .step-icon {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 0 0 4px var(--primary-subtle);
}

.step-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-500);
    text-align: center;
    white-space: nowrap;
}

.pipeline-step.completed .step-label,
.pipeline-step.active .step-label {
    color: var(--dark);
}

.step-status {
    position: absolute;
    top: 0;
    right: 0;
    font-size: 1rem;
}

.step-status i {
    color: var(--success);
}

.pipeline-connector {
    width: 40px;
    height: 2px;
    background: var(--gray-300);
}

.spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ============================================
   Flow Diagram Section (Migration Flow)
   ============================================ */
.flow-diagram-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #1a1a2e 100%);
    color: var(--white);
}

.flow-diagram-section .section-badge {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.flow-diagram-section .section-title {
    color: var(--white);
}

.flow-diagram-section .section-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

.flow-diagram {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
    max-width: 900px;
    margin: 0 auto;
}

.flow-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem;
    text-align: center;
}

.flow-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(79, 70, 229, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-normal);
}

.flow-icon svg {
    color: var(--primary-light);
}

.flow-icon.ai-icon {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.2), rgba(14, 165, 233, 0.2));
    border-color: var(--primary-light);
}

.flow-icon.ai-icon svg {
    color: #fbbf24;
}

.flow-step:hover .flow-icon {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(79, 70, 229, 0.4);
}

.flow-label {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
}

.flow-desc {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    max-width: 160px;
}

.flow-arrow {
    margin-top: 0.5rem;
}

.flow-arrow svg {
    color: var(--success);
}

/* ============================================
   Process Steps Section (How It Works)
   ============================================ */
.process-section {
    background: var(--white);
}

.process-steps {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.process-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem;
    max-width: 220px;
    background: var(--gray-100);
    border-radius: var(--radius-lg);
    transition: var(--transition-normal);
}

.process-step:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    background: var(--white);
}

.process-step img {
    margin-bottom: 1rem;
}

.process-step-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.process-step-desc {
    font-size: 0.85rem;
    color: var(--gray-500);
    line-height: 1.5;
}

/* ============================================
   Hero DB Icons Row
   ============================================ */
.db-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.db-icons .db-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-normal);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.db-icons .db-icon:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.db-icons .db-icon img {
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

/* ============================================
   Infrastructure Migration Section
   ============================================ */
.infrastructure-section {
    background: var(--gray-100);
}

.infra-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    height: 100%;
}

.infra-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.infra-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.infra-source, .infra-target {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.infra-source i, .infra-target i {
    font-size: 2rem;
    color: var(--primary);
}

.infra-source span, .infra-target span {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--gray-600);
}

.infra-arrow i {
    font-size: 1.25rem;
    color: var(--success);
}

.infra-card h5 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.cloud-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    color: var(--gray-600);
    transition: var(--transition-normal);
}

.cloud-badge span {
    color: inherit;
}

.cloud-badge:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.cloud-badge.aws { color: #FF9900; }
.cloud-badge.azure { color: #0078D4; }
.cloud-badge.gcp { color: #4285F4; }
.cloud-badge.oci { color: #C74634; }

.cloud-badge:hover.aws { background: #FFF3E0; }
.cloud-badge:hover.azure { background: #E3F2FD; }
.cloud-badge:hover.gcp { background: #E8F0FE; }
.cloud-badge:hover.oci { background: #FCE4EC; }

/* ============================================
   Data Masking & Compliance Section
   ============================================ */
.compliance-section {
    background: var(--white);
}

.compliance-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.compliance-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    border-radius: var(--radius-md);
    transition: var(--transition-normal);
}

.compliance-item:hover {
    background: var(--gray-100);
}

.compliance-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.compliance-item h5 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.masking-demo {
    padding: 1rem;
}

.masking-card {
    background: var(--dark);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.masking-header {
    background: var(--primary);
    color: var(--white);
    padding: 0.75rem 1rem;
    font-weight: 600;
    font-size: 0.85rem;
}

.masking-body {
    padding: 1rem;
}

.masking-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-family: 'Fira Code', monospace, Consolas, Monaco;
    font-size: 0.75rem;
}

.masking-row:last-child {
    border-bottom: none;
}

.masking-label {
    color: var(--gray-400);
    min-width: 50px;
}

.masking-original {
    color: var(--danger);
    flex: 1;
    text-decoration: line-through;
    opacity: 0.7;
}

.masking-masked {
    color: var(--success);
    flex: 1;
    font-weight: 600;
}

.masking-row i {
    font-size: 0.75rem;
}

.cert-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    background: var(--success-subtle);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.cert-badge i {
    color: var(--success);
}

/* ============================================
   Advanced Features Section
   ============================================ */
.advanced-section {
    background: var(--gradient-dark);
    color: var(--white);
}

.advanced-section .section-title {
    color: var(--white);
}

.advanced-section .section-badge {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.advanced-section .section-subtitle {
    color: var(--gray-400);
}

.advanced-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition-normal);
    height: 100%;
}

.advanced-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-light);
    transform: translateY(-4px);
}

.advanced-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1rem;
    color: var(--white);
}

.advanced-card h5 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.advanced-card p {
    color: var(--gray-400);
    margin-bottom: 0;
    line-height: 1.5;
}

/* ============================================
   CTA Section
   ============================================ */
.cta-section {
    background: var(--white);
}

.cta-card {
    background: var(--gradient-primary);
    border-radius: var(--radius-xl);
    padding: 3rem;
    color: var(--white);
}

.cta-card h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.cta-card p {
    opacity: 0.9;
    margin-bottom: 0;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--dark);
    color: var(--gray-400);
}

.footer-brand {
    display: flex;
    align-items: center;
}

.footer-brand .brand-text {
    font-size: 1.25rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    transition: var(--transition-fast);
}

.social-links a:hover {
    background: var(--primary);
    color: var(--white);
}

.footer h6 {
    color: var(--white);
    font-weight: 600;
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--gray-400);
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--white);
}

.footer hr {
    border-color: rgba(255, 255, 255, 0.1);
}

/* Footer text visibility fix */
.footer .text-muted {
    color: var(--gray-400) !important;
}

.footer p.text-muted {
    color: rgba(255, 255, 255, 0.7) !important;
}

.footer .bi-heart-fill {
    color: #ef4444 !important;
}

/* ============================================
   Form Styles
   ============================================ */
.form-control, .form-select {
    border-radius: var(--radius-md);
    border: 2px solid var(--gray-200);
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: var(--transition-fast);
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-subtle);
}

.form-label {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.input-group-text {
    background: var(--gray-100);
    border: 2px solid var(--gray-200);
    border-right: none;
    color: var(--gray-500);
}

.input-group .form-control {
    border-left: none;
}

.input-group:focus-within .input-group-text {
    border-color: var(--primary);
}

/* ============================================
   Cards
   ============================================ */
.card {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card-header {
    background: var(--gray-100);
    border-bottom: 1px solid var(--gray-200);
    padding: 1rem 1.25rem;
    font-weight: 600;
}

/* ============================================
   Auth Pages Styles
   ============================================ */
.auth-page {
    min-height: 100vh;
    background: var(--gradient-hero);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.auth-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 480px;
    padding: 2.5rem;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header .brand-icon {
    width: 64px;
    height: 64px;
    font-size: 2rem;
    margin: 0 auto 1rem;
}

.auth-header h1 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: var(--gray-500);
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
    color: var(--gray-400);
    font-size: 0.875rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--gray-200);
}

.social-login {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.social-login .btn {
    flex: 1;
    background: var(--white);
    border: 2px solid var(--gray-200);
    color: var(--dark);
}

.social-login .btn:hover {
    border-color: var(--gray-300);
    background: var(--gray-100);
}

.password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--gray-400);
    cursor: pointer;
    padding: 0;
}

.password-toggle:hover {
    color: var(--gray-600);
}

/* ============================================
   Dashboard Styles
   ============================================ */
.dashboard-layout {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background: var(--dark);
    color: var(--white);
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 1000;
    transition: var(--transition-normal);
    overflow-y: auto;
}

.sidebar-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-nav {
    padding: 1rem 0;
}

.nav-section {
    padding: 0.5rem 1.5rem;
    margin-top: 1rem;
}

.nav-section-title {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gray-500);
    margin-bottom: 0.75rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    color: var(--gray-400);
    font-weight: 500;
    transition: var(--transition-fast);
    border-left: 3px solid transparent;
}

.sidebar-link:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.05);
}

.sidebar-link.active {
    color: var(--white);
    background: rgba(79, 70, 229, 0.2);
    border-left-color: var(--primary);
}

.sidebar-link i {
    font-size: 1.25rem;
    width: 24px;
    text-align: center;
}

.sidebar-submenu {
    padding-left: 3.25rem;
}

.sidebar-submenu .sidebar-link {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 260px;
    background: var(--gray-100);
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
}

/* Top Header */
.top-header {
    background: var(--white);
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-search {
    position: relative;
    width: 300px;
}

.header-search input {
    padding-left: 2.5rem;
    background: var(--gray-100);
    border: none;
}

.header-search i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.notification-btn {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gray-100);
    border: none;
    color: var(--gray-600);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
}

.notification-btn:hover {
    background: var(--gray-200);
}

.notification-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 18px;
    height: 18px;
    background: var(--danger);
    color: var(--white);
    font-size: 0.65rem;
    font-weight: 600;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-dropdown {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-fast);
}

.user-dropdown:hover {
    background: var(--gray-100);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.user-info {
    line-height: 1.2;
}

.user-name {
    font-weight: 600;
    color: var(--dark);
}

.user-role {
    font-size: 0.75rem;
    color: var(--gray-500);
}

/* Page Content */
.page-content {
    padding: 1.5rem;
}

.page-header {
    margin-bottom: 1.5rem;
}

.page-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 0.25rem;
}

.page-subtitle {
    color: var(--gray-500);
}

/* Stat Cards */
.stat-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
    transition: var(--transition-normal);
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: #0F172A;
    line-height: 1;
}

.stat-title {
    font-size: 0.875rem;
    color: #475569;
    margin-top: 0.25rem;
    font-weight: 500;
}

/* Project Cards */
.project-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.project-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.project-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--primary-subtle);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.project-status {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

.status-active {
    background: var(--success-subtle);
    color: var(--success);
}

.status-paused {
    background: var(--warning-subtle);
    color: var(--warning);
}

.status-completed {
    background: var(--info-subtle);
    color: var(--info);
}

.project-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.25rem;
}

.project-meta {
    font-size: 0.875rem;
    color: var(--white-500);
    margin-bottom: 1rem;
}

.project-progress {
    margin-bottom: 1rem;
}

.progress {
    height: 8px;
    border-radius: var(--radius-full);
    background: var(--gray-200);
}

.progress-bar {
    border-radius: var(--radius-full);
    background: var(--gradient-primary);
}

.project-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.875rem;
    color: var(--gray-500);
}

/* ============================================
   Tables
   ============================================ */
.table-container {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.table {
    margin-bottom: 0;
}

.table thead th {
    background: var(--gray-100);
    border-bottom: 2px solid var(--gray-200);
    font-weight: 600;
    color: var(--dark);
    font-size: 0.875rem;
    padding: 1rem 1.25rem;
    white-space: nowrap;
}

.table tbody td {
    padding: 1rem 1.25rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--gray-200);
}

.table tbody tr:hover {
    background: var(--gray-100);
}

/* ============================================
   Modal Styles
   ============================================ */
.modal-content {
    border: none;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
}

.modal-header {
    border-bottom: 1px solid var(--gray-200);
    padding: 1.25rem 1.5rem;
}

.modal-title {
    font-weight: 700;
    color: var(--dark);
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    border-top: 1px solid var(--gray-200);
    padding: 1rem 1.5rem;
}

/* ============================================
   Alerts & Toasts
   ============================================ */
.alert {
    border: none;
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
}

.alert-success {
    background: var(--success-subtle);
    color: #065F46;
}

.alert-warning {
    background: var(--warning-subtle);
    color: #92400E;
}

.alert-danger {
    background: var(--danger-subtle);
    color: #991B1B;
}

.alert-info {
    background: var(--info-subtle);
    color: #0E7490;
}

/* ============================================
   Responsive Styles
   ============================================ */
@media (max-width: 991.98px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.show {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        gap: 1.5rem;
    }
    
    .migration-animation {
        flex-direction: column;
    }
    
    .migration-arrow {
        transform: rotate(90deg);
    }
}

@media (max-width: 767.98px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .hero-cta .btn {
        width: 100%;
    }
    
    .hero-stats {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .pipeline-flow {
        padding: 1rem;
    }
    
    .pipeline-step {
        min-width: 80px;
    }
    
    .step-icon {
        width: 44px;
        height: 44px;
        font-size: 1rem;
    }
}

/* ============================================
   Utility Classes
   ============================================ */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient-primary {
    background: var(--gradient-primary);
}

.shadow-glow {
    box-shadow: var(--shadow-glow);
}

.rounded-xl {
    border-radius: var(--radius-xl);
}

/* ============================================
   Animations
   ============================================ */
.fade-in {
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-in-left {
    animation: slideInLeft 0.3s ease-out;
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

.pulse {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}
