/* ============================================
   DSS to PySpark Converter - Data Lab Aesthetic
   ============================================ */

:root {
    /* Color Palette - Electric Tech */
    --color-bg-primary: #0a0e1a;
    --color-bg-secondary: #111827;
    --color-bg-tertiary: #1a2332;
    --color-surface: rgba(30, 41, 59, 0.5);
    --color-surface-elevated: rgba(51, 65, 85, 0.6);

    --color-primary: #3b82f6;
    --color-primary-bright: #60a5fa;
    --color-secondary: #10b981;
    --color-accent: #06b6d4;
    --color-accent-bright: #22d3ee;

    --color-text-primary: #f1f5f9;
    --color-text-secondary: #cbd5e1;
    --color-text-muted: #94a3b8;

    --color-success: #10b981;
    --color-warning: #f59e0b;
    --color-error: #ef4444;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    --gradient-accent: linear-gradient(135deg, #06b6d4 0%, #10b981 100%);
    --gradient-surface: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(16, 185, 129, 0.05) 100%);

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;

    /* Typography */
    --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;

    /* Effects */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 20px rgba(59, 130, 246, 0.3);
    --shadow-glow-green: 0 0 20px rgba(16, 185, 129, 0.3);

    --border-radius-sm: 0.375rem;
    --border-radius-md: 0.5rem;
    --border-radius-lg: 0.75rem;
    --border-radius-xl: 1rem;
}

/* ============================================
   Global Styles & Reset
   ============================================ */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg-primary);
    color: var(--color-text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* ============================================
   Animated Background
   ============================================ */

.background-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(59, 130, 246, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 0;
    animation: gridPulse 20s ease-in-out infinite;
}

.background-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 30%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 80% 70%, rgba(16, 185, 129, 0.06) 0%, transparent 50%);
    z-index: 0;
    pointer-events: none;
}

@keyframes gridPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

/* ============================================
   Header
   ============================================ */

.main-header {
    position: relative;
    z-index: 100;
    background: rgba(17, 24, 39, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.25rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.logo-container:hover {
    transform: translateY(-2px);
}

.logo {
    width: 45px;
    height: 45px;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
}

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

.logo-accent {
    color: var(--color-primary-bright);
    margin-left: 0.25rem;
}

.header-nav {
    display: flex;
    gap: 1.5rem;
}

.nav-link {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-md);
}

.nav-link:hover {
    color: var(--color-primary-bright);
    background: rgba(59, 130, 246, 0.1);
}

.header-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: var(--border-radius-md);
    color: var(--color-secondary);
    font-size: 0.9rem;
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 10px rgba(16, 185, 129, 0.2); }
    50% { box-shadow: 0 0 20px rgba(16, 185, 129, 0.4); }
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
    position: relative;
    z-index: 1;
    padding: 4rem 2rem 3rem;
    text-align: center;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 2rem;
    color: var(--color-primary-bright);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 2rem;
    animation: fadeInDown 0.8s ease-out;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-secondary);
    max-width: 700px;
    margin: 0 auto 3rem;
    line-height: 1.7;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.stat-card {
    background: var(--color-surface);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    animation: fadeInUp 0.8s ease-out both;
}

.stat-card:nth-child(1) { animation-delay: 0.6s; }
.stat-card:nth-child(2) { animation-delay: 0.7s; }
.stat-card:nth-child(3) { animation-delay: 0.8s; }

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-primary-bright);
    box-shadow: var(--shadow-glow);
}

.stat-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

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

.stat-label {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

/* ============================================
   Connection Section
   ============================================ */

.connection-section {
    position: relative;
    z-index: 1;
    padding: 3rem 2rem;
}

.section-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

@media (max-width: 1024px) {
    .section-container {
        grid-template-columns: 1fr;
    }
}

.form-wrapper {
    background: var(--color-surface);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: var(--border-radius-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-xl);
    animation: fadeIn 0.8s ease-out;
}

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

.form-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: var(--border-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin: 0 auto 1rem;
    box-shadow: var(--shadow-glow);
}

.form-header h2 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    color: var(--color-text-primary);
}

.form-header p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.connection-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    position: relative;
}

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

.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    background: rgba(15, 23, 42, 0.5);
    border: 2px solid rgba(59, 130, 246, 0.2);
    border-radius: var(--border-radius-md);
    color: var(--color-text-primary);
    font-size: 1rem;
    font-family: var(--font-body);
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--color-primary-bright);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background: rgba(15, 23, 42, 0.8);
}

.form-input::placeholder {
    color: var(--color-text-muted);
}

.input-hint {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    font-size: 0.825rem;
    color: var(--color-text-muted);
}

.submit-button {
    width: 100%;
    padding: 1rem 2rem;
    background: var(--gradient-primary);
    border: none;
    border-radius: var(--border-radius-md);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
    margin-top: 1rem;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.submit-button:active {
    transform: translateY(0);
}

.submit-button.loading {
    opacity: 0.8;
    cursor: not-allowed;
}

/* ============================================
   How It Works Section
   ============================================ */

.how-it-works {
    animation: fadeIn 0.8s ease-out 0.2s both;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--color-text-primary);
}

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

.step-card {
    background: var(--color-surface);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    position: relative;
    transition: all 0.3s ease;
    animation: fadeInRight 0.6s ease-out both;
}

.step-card:hover {
    border-color: var(--color-primary-bright);
    transform: translateX(5px);
    box-shadow: var(--shadow-glow);
}

.step-number {
    position: absolute;
    top: -12px;
    left: 1.5rem;
    background: var(--gradient-primary);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    font-family: var(--font-mono);
}

.step-icon {
    width: 45px;
    height: 45px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--color-primary-bright);
    margin-bottom: 1rem;
}

.step-card h4 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    color: var(--color-text-primary);
}

.step-card p {
    color: var(--color-text-secondary);
    font-size: 0.925rem;
    line-height: 1.6;
}

.step-connector {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0;
    opacity: 0.3;
}

.connector-line {
    width: 2px;
    height: 20px;
    background: var(--color-primary);
}

/* ============================================
   Security Section
   ============================================ */

.security-section {
    position: relative;
    z-index: 1;
    padding: 3rem 2rem;
    background: rgba(15, 23, 42, 0.3);
}

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

.security-header i {
    font-size: 3rem;
    color: var(--color-secondary);
    margin-bottom: 1rem;
    display: block;
}

.security-header h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.security-header p {
    color: var(--color-text-muted);
    font-size: 1.125rem;
}

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

.security-card {
    background: var(--color-surface);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.security-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-secondary);
    box-shadow: var(--shadow-glow-green);
}

.security-icon {
    width: 60px;
    height: 60px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: var(--border-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--color-secondary);
    margin: 0 auto 1rem;
}

.security-card h4 {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
    color: var(--color-text-primary);
}

.security-card p {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ============================================
   Projects Selection Page
   ============================================ */

.projects-section {
    position: relative;
    z-index: 1;
    padding: 3rem 2rem;
    min-height: calc(100vh - 200px);
}

.projects-section .section-container {
    max-width: 1600px;
    display: block;
    margin: 0 auto;
}

.page-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 3rem;
    gap: 1.5rem;
}

.page-header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

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

.page-subtitle {
    color: var(--color-text-muted);
    font-size: 1.125rem;
    max-width: 600px;
}

.selection-badge {
    padding: 1rem 2rem;
    background: rgba(59, 130, 246, 0.1);
    border: 2px solid rgba(59, 130, 246, 0.3);
    border-radius: var(--border-radius-lg);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-text-muted);
    transition: all 0.3s ease;
    min-width: 200px;
    justify-content: center;
}

.selection-badge i {
    font-size: 1.25rem;
}

.selection-badge.active {
    background: var(--gradient-primary);
    border-color: transparent;
    color: white;
    box-shadow: var(--shadow-glow);
    transform: scale(1.05);
}

.selection-badge.active i {
    animation: pulse 2s ease-in-out infinite;
}

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

/* Projects Container */
.projects-container {
    margin-bottom: 3rem;
}

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

.projects-header h3 {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--color-text-primary);
}

.project-count {
    font-size: 1rem;
    font-weight: 400;
    color: var(--color-text-muted);
    font-family: var(--font-mono);
}

/* Search Container */
.search-container {
    position: relative;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.search-icon {
    position: absolute;
    left: 1rem;
    color: var(--color-text-muted);
    font-size: 1rem;
    pointer-events: none;
}

.search-input {
    flex: 1;
    padding: 0.875rem 1rem 0.875rem 3rem;
    background: rgba(15, 23, 42, 0.5);
    border: 2px solid rgba(59, 130, 246, 0.2);
    border-radius: var(--border-radius-md);
    color: var(--color-text-primary);
    font-size: 0.95rem;
    font-family: var(--font-body);
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--color-primary-bright);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background: rgba(15, 23, 42, 0.8);
}

.search-input::placeholder {
    color: var(--color-text-muted);
}

.search-results {
    padding: 0.5rem 1rem;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: var(--border-radius-md);
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    white-space: nowrap;
}

.select-all-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.5rem 1rem;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: var(--border-radius-md);
    transition: all 0.3s ease;
}

.select-all-toggle:hover {
    background: rgba(59, 130, 246, 0.15);
    border-color: var(--color-primary-bright);
}

.select-all-toggle input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.toggle-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    max-height: 600px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

/* Custom scrollbar for projects grid */
.projects-grid::-webkit-scrollbar {
    width: 8px;
}

.projects-grid::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.5);
    border-radius: 4px;
}

.projects-grid::-webkit-scrollbar-thumb {
    background: rgba(59, 130, 246, 0.3);
    border-radius: 4px;
    transition: background 0.3s ease;
}

.projects-grid::-webkit-scrollbar-thumb:hover {
    background: rgba(59, 130, 246, 0.5);
}

.project-card {
    position: relative;
}

.project-card input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.project-card-label {
    display: block;
    background: var(--color-surface);
    backdrop-filter: blur(12px);
    border: 2px solid rgba(59, 130, 246, 0.2);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.project-card-label:hover {
    border-color: var(--color-primary-bright);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.project-card input:checked + .project-card-label {
    border-color: var(--color-secondary);
    background: rgba(16, 185, 129, 0.05);
    box-shadow: var(--shadow-glow-green);
}

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

.project-icon {
    width: 50px;
    height: 50px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--color-primary-bright);
}

.project-check {
    width: 28px;
    height: 28px;
    background: transparent;
    border: 2px solid rgba(59, 130, 246, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.project-check i {
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
}

.project-card input:checked + .project-card-label .project-check {
    background: var(--color-secondary);
    border-color: var(--color-secondary);
}

.project-card input:checked + .project-card-label .project-check i {
    opacity: 1;
    transform: scale(1);
    color: white;
}

.project-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 0.5rem;
    font-family: var(--font-mono);
}

.project-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-text-muted);
    font-size: 0.875rem;
}

/* Orchestrator Selection */
.orchestrator-container {
    margin-bottom: 3rem;
}

.section-description {
    color: var(--color-text-muted);
    font-size: 1rem;
    margin-bottom: 2rem;
}

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

.orchestrator-card {
    background: var(--color-surface);
    backdrop-filter: blur(12px);
    border: 2px solid rgba(59, 130, 246, 0.2);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
}

.orchestrator-card:hover {
    border-color: var(--color-primary-bright);
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

.orchestrator-card.selected {
    border-color: var(--color-secondary);
    background: rgba(16, 185, 129, 0.05);
    box-shadow: var(--shadow-glow-green);
}

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

.orchestrator-logo {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.orchestrator-badge {
    padding: 0.375rem 0.875rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.orchestrator-badge.default {
    background: rgba(59, 130, 246, 0.2);
    color: var(--color-primary-bright);
}

.orchestrator-badge.advanced {
    background: rgba(139, 92, 246, 0.2);
    color: #a78bfa;
}

.orchestrator-body h4 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--color-text-primary);
}

.orchestrator-body p {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.orchestrator-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.feature-tag {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    background: rgba(59, 130, 246, 0.1);
    border-radius: var(--border-radius-sm);
    font-size: 0.8rem;
    color: var(--color-text-secondary);
}

/* Submit Container */
.submit-container {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

.convert-button {
    position: relative;
    padding: 1.25rem 3rem;
    background: var(--gradient-primary);
    border: none;
    border-radius: var(--border-radius-md);
    color: white;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.convert-button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.button-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: opacity 0.3s ease;
}

.button-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.convert-button.loading .button-content {
    opacity: 0;
}

.convert-button.loading .button-loader {
    opacity: 1;
}

.loader-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 14, 26, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.loading-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.loading-content {
    text-align: center;
    max-width: 500px;
    padding: 2rem;
}

.loading-spinner {
    width: 120px;
    height: 120px;
    margin: 0 auto 2rem;
    position: relative;
}

.spinner-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid transparent;
    border-top-color: var(--color-primary-bright);
    border-radius: 50%;
    animation: spinRing 1.5s linear infinite;
}

.spinner-ring:nth-child(2) {
    animation-delay: 0.3s;
    border-top-color: var(--color-accent-bright);
}

.spinner-ring:nth-child(3) {
    animation-delay: 0.6s;
    border-top-color: var(--color-secondary);
}

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

/* Success Icon */
.success-icon {
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: successPop 0.5s ease-out;
}

.success-icon i {
    font-size: 5rem;
    color: var(--color-secondary);
    filter: drop-shadow(0 0 20px rgba(16, 185, 129, 0.5));
}

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

.loading-title {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    color: var(--color-text-primary);
}

.loading-subtitle {
    color: var(--color-text-muted);
    margin-bottom: 2rem;
}

.loading-steps {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: left;
}

.loading-step {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: rgba(59, 130, 246, 0.05);
    border-radius: var(--border-radius-md);
    opacity: 0.4;
    transition: all 0.5s ease;
}

.loading-step.active {
    opacity: 1;
    background: rgba(59, 130, 246, 0.15);
}

.loading-step i {
    color: var(--color-primary-bright);
}

/* Loading Overlay Close Button */
.close-overlay-btn {
    position: absolute;
    top: 2rem;
    right: 2rem;
    padding: 0.75rem 1.5rem;
    background: var(--gradient-primary);
    border: none;
    border-radius: var(--border-radius-md);
    color: white;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

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

.loading-hint {
    margin-top: 2rem;
    padding: 1rem 1.5rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--color-secondary);
    font-size: 0.95rem;
    text-align: left;
}

.loading-hint i {
    font-size: 1.25rem;
    flex-shrink: 0;
}

/* Notification */
.notification {
    position: fixed;
    top: 2rem;
    right: 2rem;
    padding: 1rem 1.5rem;
    background: var(--color-surface);
    border: 2px solid;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-xl);
    z-index: 2000;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s ease;
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification.error {
    border-color: var(--color-error);
    background: rgba(239, 68, 68, 0.1);
}

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

/* ============================================
   Footer
   ============================================ */

.main-footer {
    position: relative;
    z-index: 100;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(59, 130, 246, 0.2);
    margin-top: auto;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-left p {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin: 0.25rem 0;
}

.footer-version {
    font-family: var(--font-mono);
    font-size: 0.8rem !important;
}

.footer-right {
    display: flex;
    gap: 1.5rem;
}

.footer-link {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-link:hover {
    color: var(--color-primary-bright);
}

/* ============================================
   Animations
   ============================================ */

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

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

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

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .page-header {
        flex-direction: column;
        align-items: center;
    }

    .page-title {
        font-size: 2rem;
        flex-direction: column;
        text-align: center;
    }

    .page-subtitle {
        font-size: 1rem;
    }

    .selection-badge {
        align-self: center;
        width: 100%;
        max-width: 300px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .orchestrator-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-right {
        flex-direction: column;
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .header-content {
        padding: 1rem;
    }

    .logo-text {
        font-size: 1.25rem;
    }

    .hero {
        padding: 2rem 1rem;
    }

    .connection-section,
    .projects-section,
    .security-section {
        padding: 2rem 1rem;
    }
}

/* ============================================
   Completion Action Buttons
   ============================================ */

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

.convert-more-btn {
    padding: 1rem 2rem;
    background: var(--gradient-accent);
    border: none;
    border-radius: var(--border-radius-md);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.convert-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow-green);
}

.convert-more-btn i {
    font-size: 1.1rem;
}

.close-overlay-secondary-btn {
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius-md);
    color: var(--color-text-secondary);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.close-overlay-secondary-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--color-text-primary);
    transform: translateY(-2px);
}

.close-overlay-secondary-btn i {
    font-size: 1rem;
}

@media (max-width: 640px) {
    .completion-buttons {
        flex-direction: column;
        width: 100%;
    }

    .convert-more-btn,
    .close-overlay-secondary-btn {
        width: 100%;
        justify-content: center;
    }
}
