:root {
    --bg-color: #0b1121;
    --card-bg: #1e293b;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --primary-glow: #3b82f6;
    --accent-glow: #8b5cf6;
    --success-color: #10b981;
}

body {
    font-family: 'Inter', Arial, sans-serif;
    background: var(--bg-color);
    color: var(--text-primary);
    margin: 0;
    padding: 30px;
    min-height: 100vh;
}

.container {
    max-width: 800px;
    margin: auto;
    position: relative;
}

/* Fancy Header */
h1 {
    text-align: center;
    font-weight: 600;
    letter-spacing: -0.5px;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.ai-badge {
    background: linear-gradient(135deg, var(--primary-glow), var(--accent-glow));
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.4);
}

/* Search Box Styles */
.search-box {
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
    position: relative;
    z-index: 10;
}

input {
    flex: 1;
    padding: 16px 20px;
    font-size: 16px;
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: white;
    outline: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

input:focus {
    border-color: var(--primary-glow);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
}

button {
    padding: 16px 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    background: linear-gradient(135deg, var(--primary-glow), var(--accent-glow));
    border: none;
    border-radius: 12px;
    color: white;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

/* AI Pipeline Loader Styles */
.hidden {
    display: none !important;
}

#loader {
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.5);
    font-family: 'JetBrains Mono', monospace; /* Tech feel */
}

.loader-header {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--primary-glow);
    font-weight: bold;
    margin-bottom: 20px;
    font-size: 14px;
}

.spinner {
    width: 18px;
    height: 18px;
    border: 3px solid rgba(59, 130, 246, 0.3);
    border-top-color: var(--primary-glow);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.pipeline-tree {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 14px;
    color: var(--text-secondary);
}

.step {
    opacity: 0.4;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
}

.step.active {
    opacity: 1;
    color: var(--primary-glow);
    text-shadow: 0 0 8px rgba(59, 130, 246, 0.4);
}

.step.completed {
    opacity: 1;
    color: var(--text-primary);
}

.step.completed .status::after {
    content: "[OK]";
    color: var(--success-color);
}

.step.active .status::after {
    content: "[Processing...]";
    animation: pulse 1.5s infinite;
}

/* Result Cards */
.card {
    background: var(--card-bg);
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    animation: slideUp 0.4s ease forwards;
    opacity: 0;
    transform: translateY(10px);
}

.card h3 {
    margin: 0 0 10px 0;
    color: var(--primary-glow);
}

.org {
    color: var(--text-secondary);
    font-size: 14px;
}

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

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

@keyframes slideUp {
    to { opacity: 1; transform: translateY(0); }
}