/* Global Styles - Premium & Classy Design */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700;900&display=swap');

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

:root {
    /* ZeBRAND Color Palette */
    --primary-color: #BFB4A3;
    --primary-light: #D4CBB8;
    --primary-dark: #A5A5A5;
    --secondary-color: #716B62;
    --secondary-light: #8B857A;
    --accent-color: #BFB4A3;
    --success-color: #10b981;
    --error-color: #ef4444;
    --warning-color: #f59e0b;

    /* Sophisticated Background Colors */
    --bg-dark: #050505;
    --bg-darker: #050505;
    --bg-card: rgba(113, 107, 98, 0.15);
    --bg-card-hover: rgba(113, 107, 98, 0.25);
    --bg-glass: rgba(191, 180, 163, 0.08);
    --bg-glass-hover: rgba(191, 180, 163, 0.12);

    /* Text Colors */
    --text-primary: #FFFFFF;
    --text-secondary: #A5A5A5;
    --text-muted: #716B62;

    /* Borders & Shadows */
    --border-color: rgba(191, 180, 163, 0.2);
    --border-glow: rgba(191, 180, 163, 0.3);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px rgba(191, 180, 163, 0.15);
    --shadow-premium: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(191, 180, 163, 0.1);
}

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background:
        radial-gradient(ellipse at top, rgba(191, 180, 163, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse at bottom, rgba(113, 107, 98, 0.08) 0%, transparent 50%),
        linear-gradient(180deg, #050505 0%, #050505 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

/* Animated Background */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 50%;
    opacity: 0.3;
    animation: float 20s infinite ease-in-out;
}

.particle:nth-child(1) {
    left: 10%;
    animation-delay: 0s;
    animation-duration: 15s;
}

.particle:nth-child(2) {
    left: 30%;
    animation-delay: 2s;
    animation-duration: 20s;
}

.particle:nth-child(3) {
    left: 50%;
    animation-delay: 4s;
    animation-duration: 18s;
}

.particle:nth-child(4) {
    left: 70%;
    animation-delay: 1s;
    animation-duration: 22s;
}

.particle:nth-child(5) {
    left: 90%;
    animation-delay: 3s;
    animation-duration: 16s;
}

/* Additional particles for richer background */
.particle:nth-child(n+6) {
    width: 3px;
    height: 3px;
    opacity: 0.2;
}

/* Add more particles for richer animation */
.animated-bg::before,
.animated-bg::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(191, 180, 163, 0.05) 0%, transparent 70%);
    animation: float-glow 15s ease-in-out infinite;
}

.animated-bg::before {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.animated-bg::after {
    bottom: 20%;
    right: 10%;
    animation-delay: 5s;
}

@keyframes float-glow {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.3;
    }

    50% {
        transform: translate(50px, -50px) scale(1.2);
        opacity: 0.5;
    }
}

/* Neural Network Nodes */
.neural-network {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.neural-node {
    position: absolute;
    width: 12px;
    height: 12px;
    background: radial-gradient(circle, rgba(191, 180, 163, 0.6), rgba(113, 107, 98, 0.3));
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(191, 180, 163, 0.4);
    animation: node-pulse 3s ease-in-out infinite;
}

.neural-node:nth-child(odd) {
    animation-delay: 0.5s;
    background: radial-gradient(circle, rgba(113, 107, 98, 0.6), rgba(191, 180, 163, 0.3));
}

.neural-node:nth-child(3n) {
    animation-delay: 1s;
    width: 8px;
    height: 8px;
}

@keyframes node-pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.6;
        box-shadow: 0 0 10px rgba(191, 180, 163, 0.4);
    }

    50% {
        transform: scale(1.5);
        opacity: 1;
        box-shadow: 0 0 20px rgba(191, 180, 163, 0.7);
    }
}

/* Neural Network Connections */
.neural-connections {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    opacity: 0.2;
}

.connection {
    stroke: rgba(191, 180, 163, 0.3);
    stroke-width: 0.5;
    animation: connection-flow 4s ease-in-out infinite;
}

.connection:nth-child(odd) {
    animation-delay: 1s;
    stroke: rgba(113, 107, 98, 0.3);
}

.connection:nth-child(3n) {
    animation-delay: 2s;
}

@keyframes connection-flow {

    0%,
    100% {
        stroke-opacity: 0.2;
    }

    50% {
        stroke-opacity: 0.6;
    }
}

/* AI Icons - Hidden */
.ai-icon {
    display: none !important;
    visibility: hidden !important;
}

.ai-icon:nth-child(odd) {
    animation-duration: 10s;
}

.ai-icon:nth-child(3n) {
    animation-duration: 12s;
    font-size: 1.5rem;
}

@keyframes float-icon-bg {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0.1;
    }

    25% {
        transform: translate(20px, -30px) rotate(90deg);
        opacity: 0.2;
    }

    50% {
        transform: translate(-10px, -50px) rotate(180deg);
        opacity: 0.15;
    }

    75% {
        transform: translate(-20px, -20px) rotate(270deg);
        opacity: 0.2;
    }
}

/* Circuit Patterns */
.circuit-pattern {
    position: absolute;
    opacity: 0.05;
    pointer-events: none;
}

.circuit-1 {
    top: 10%;
    left: 20%;
    width: 200px;
    height: 150px;
    background-image:
        linear-gradient(90deg, rgba(191, 180, 163, 0.2) 1px, transparent 1px),
        linear-gradient(rgba(191, 180, 163, 0.2) 1px, transparent 1px);
    background-size: 20px 20px;
    animation: circuit-move 20s linear infinite;
    clip-path: polygon(0 0, 100% 0, 80% 100%, 0 100%);
}

.circuit-2 {
    bottom: 15%;
    right: 25%;
    width: 180px;
    height: 120px;
    background-image:
        linear-gradient(45deg, rgba(113, 107, 98, 0.2) 1px, transparent 1px),
        linear-gradient(-45deg, rgba(113, 107, 98, 0.2) 1px, transparent 1px);
    background-size: 15px 15px;
    animation: circuit-move 25s linear infinite reverse;
    clip-path: polygon(20% 0, 100% 0, 100% 100%, 0 100%);
}

.circuit-3 {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150px;
    height: 150px;
    background-image:
        radial-gradient(circle, rgba(191, 180, 163, 0.15) 1px, transparent 1px);
    background-size: 25px 25px;
    animation: circuit-rotate 30s linear infinite;
    border-radius: 50%;
}

@keyframes circuit-move {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(30px, -30px);
    }
}

@keyframes circuit-rotate {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Data Streams */
.data-stream {
    position: absolute;
    width: 2px;
    height: 100px;
    background: linear-gradient(to bottom,
            transparent,
            rgba(191, 180, 163, 0.4),
            rgba(113, 107, 98, 0.4),
            transparent);
    opacity: 0.3;
    animation: stream-flow 3s ease-in-out infinite;
    pointer-events: none;
}

.stream-1 {
    left: 25%;
    top: -100px;
    animation-delay: 0s;
}

.stream-2 {
    left: 50%;
    top: -100px;
    animation-delay: 1s;
    height: 150px;
}

.stream-3 {
    left: 75%;
    top: -100px;
    animation-delay: 2s;
    height: 120px;
}

@keyframes stream-flow {
    0% {
        transform: translateY(0);
        opacity: 0;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        transform: translateY(calc(100vh + 100px));
        opacity: 0;
    }
}

/* AI Geometric Shapes */
.ai-shape {
    position: absolute;
    opacity: 0.08;
    pointer-events: none;
}

.shape-1 {
    top: 30%;
    left: 10%;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(191, 180, 163, 0.2), rgba(113, 107, 98, 0.2));
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    animation: shape-float 15s ease-in-out infinite;
}

.shape-2 {
    bottom: 25%;
    right: 15%;
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, rgba(113, 107, 98, 0.2), rgba(191, 180, 163, 0.2));
    clip-path: polygon(25% 0%, 100% 0%, 75% 100%, 0% 100%);
    animation: shape-float 18s ease-in-out infinite reverse;
}

.shape-3 {
    top: 60%;
    left: 50%;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(191, 180, 163, 0.15), rgba(113, 107, 98, 0.15));
    clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
    animation: shape-rotate 20s linear infinite;
}

@keyframes shape-float {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(30px, -30px) rotate(120deg);
    }

    66% {
        transform: translate(-20px, 20px) rotate(240deg);
    }
}

@keyframes shape-rotate {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes float {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }

    10% {
        opacity: 0.3;
    }

    90% {
        opacity: 0.3;
    }

    100% {
        transform: translateY(-100px) scale(1);
        opacity: 0;
    }
}

/* Additional Animations */
@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

@keyframes bounceIn {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }

    50% {
        transform: scale(1.05);
    }

    70% {
        transform: scale(0.9);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes checkmark {
    0% {
        transform: scale(0);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

@keyframes pulse-border {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(191, 180, 163, 0.4);
    }

    50% {
        box-shadow: 0 0 0 10px rgba(191, 180, 163, 0);
    }
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    10%,
    30%,
    50%,
    70%,
    90% {
        transform: translateX(-10px);
    }

    20%,
    40%,
    60%,
    80% {
        transform: translateX(10px);
    }
}

/* Simple Navigation for Labeling Page */
.navbar-simple {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    margin-bottom: 2rem;
    position: relative;
    z-index: 10;
}

.nav-home {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-home:hover {
    color: var(--primary-color);
    transform: translateX(-5px);
}

.nav-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    font-family: 'Roboto', sans-serif;
    letter-spacing: -0.01em;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 3rem;
}

.title {
    font-size: 3.5rem;
    font-weight: 800;
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary-color) 50%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    letter-spacing: -0.02em;
}

@keyframes gradient-shift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.icon {
    font-size: 3.5rem;
    display: inline-block;
    transition: transform 0.3s ease;
    color: var(--primary-color);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 8px rgba(191, 180, 163, 0.5));
}

.icon:hover {
    transform: scale(1.1);
}

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

    to {
        transform: rotate(360deg);
    }
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

/* Animations */
.animate-fade-in {
    animation: fadeIn 1s ease-in;
}

.animate-fade-in-delay {
    animation: fadeIn 1s ease-in 0.3s both;
}

.animate-slide-up {
    animation: slideUp 0.8s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

/* Upload Section */
.upload-section {
    margin-bottom: 2rem;
}

.upload-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.9));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 3.5rem;
    box-shadow: var(--shadow-premium);
    border: 1px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.upload-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.upload-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-glow), var(--shadow-premium);
    border-color: var(--border-glow);
}

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

@keyframes card-float {

    0%,
    100% {
        transform: translateY(-5px);
    }

    50% {
        transform: translateY(-8px);
    }
}

.upload-icon {
    text-align: center;
    margin-bottom: 1.5rem;
}

.upload-svg {
    width: 80px;
    height: 80px;
    stroke-width: 2;
    color: var(--primary-color);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.upload-card h2 {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.upload-hint {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* File Input */
.file-input-wrapper {
    position: relative;
    margin-bottom: 1.5rem;
}

.file-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* Drag and Drop Zone */
.drop-zone {
    position: relative;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.4), rgba(15, 23, 42, 0.6));
    backdrop-filter: blur(10px);
    border: 2px dashed var(--border-color);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.drop-zone::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 2px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.drop-zone:hover {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(191, 180, 163, 0.1), rgba(113, 107, 98, 0.05));
    transform: scale(1.01);
    box-shadow: 0 8px 32px rgba(191, 180, 163, 0.15);
}

.drop-zone:hover::before {
    opacity: 0.3;
}

.drop-zone.drag-over {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(191, 180, 163, 0.2), rgba(113, 107, 98, 0.1));
    transform: scale(1.02);
    box-shadow: 0 0 40px rgba(191, 180, 163, 0.4), var(--shadow-glow);
}

.drop-zone.drag-over::before {
    opacity: 0.6;
}

.drop-zone-content {
    pointer-events: none;
}

.drop-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.drop-zone:hover .drop-icon {
    transform: translateY(-5px);
}

@keyframes float-icon {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.drop-text {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.drop-subtext {
    font-size: 1rem;
    color: var(--text-secondary);
}

.file-preview {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--bg-card-hover);
    border-radius: 12px;
    display: none;
}

.file-preview.active {
    display: block;
    animation: slideDown 0.3s ease-out;
}

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

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

.file-preview-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.file-preview-icon {
    font-size: 2.5rem;
}

.file-preview-info {
    flex: 1;
}

.file-preview-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.file-preview-size {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.file-name {
    margin-top: 1rem;
    text-align: center;
    color: var(--text-secondary);
    font-style: italic;
}

.file-info {
    margin-top: 0.5rem;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* API Key Inputs - Removed, using environment variables instead */

/* Submit Button - Premium Style */
.submit-btn {
    width: 100%;
    padding: 1.4rem 2rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 50%, var(--primary-light) 100%);
    background-size: 200% 200%;
    border: none;
    border-radius: 16px;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: 'Roboto', sans-serif;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(191, 180, 163, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.submit-btn::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 ease;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(191, 180, 163, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    background-position: 100% 0;
}

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

.submit-btn:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 0 6px 20px rgba(191, 180, 163, 0.3);
}

.submit-btn.loading .btn-text {
    opacity: 0;
}

.submit-btn.loading .btn-loader {
    display: block;
}

.btn-loader {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes spin-border {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Processing Status */
.processing-status {
    margin-bottom: 2rem;
}

.status-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.9));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: var(--shadow-premium);
    border: 1px solid var(--border-color);
    transition: all 0.4s ease;
}

.status-card:hover {
    border-color: var(--border-glow);
    box-shadow: var(--shadow-glow), var(--shadow-premium);
}

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

.status-header h3 {
    font-size: 1.5rem;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
}

/* Progress Bar */
.progress-bar-wrapper {
    margin-bottom: 2rem;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background: rgba(15, 23, 42, 0.6);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 0.5rem;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 50%, var(--primary-light) 100%);
    background-size: 200% 100%;
    border-radius: 12px;
    width: 0%;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(191, 180, 163, 0.5);
    animation: progress-glow 2s ease-in-out infinite, progress-shimmer 2s linear infinite;
}

.progress-fill[style*="width: 0%"] {
    animation: progress-glow 2s ease-in-out infinite;
}

.progress-fill[style*="width"]:not([style*="width: 0%"]) {
    animation: progress-glow 2s ease-in-out infinite, progress-shimmer 2s linear infinite;
}

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

@keyframes progress-glow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(191, 180, 163, 0.5);
    }

    50% {
        box-shadow: 0 0 30px rgba(191, 180, 163, 0.8);
    }
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

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

    100% {
        transform: translateX(100%);
    }
}

.progress-text {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.pulse-dot {
    width: 12px;
    height: 12px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

/* Pipeline Steps */
.pipeline-steps {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.step {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.6), rgba(15, 23, 42, 0.8));
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border-left: 3px solid transparent;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.step::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.step:hover {
    background: linear-gradient(135deg, rgba(191, 180, 163, 0.1), rgba(113, 107, 98, 0.05));
    transform: translateX(5px);
    box-shadow: 0 4px 16px rgba(191, 180, 163, 0.15);
}

.step.active {
    border-left-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(191, 180, 163, 0.2), rgba(113, 107, 98, 0.1));
    transform: translateX(8px);
    box-shadow: 0 8px 24px rgba(191, 180, 163, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    animation: step-breathe 2.5s ease-in-out infinite !important;
    position: relative;
    overflow: visible;
    will-change: transform, box-shadow;
}

.step.active::before {
    opacity: 1;
    animation: step-border-wave 2s ease-in-out infinite;
    background: linear-gradient(180deg, 
        var(--primary-color) 0%,
        var(--primary-light) 50%,
        var(--primary-color) 100%
    );
    background-size: 200% 200%;
    animation: step-border-wave 2s ease-in-out infinite, step-gradient-flow 3s linear infinite;
}

.step.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent,
        var(--primary-color),
        var(--primary-light),
        var(--primary-color),
        transparent
    );
    background-size: 200% 100%;
    animation: step-progress-flow 2s linear infinite;
    border-radius: 0 0 16px 16px;
    pointer-events: none;
    z-index: 1;
}

@keyframes step-breathe {
    0%, 100% {
        box-shadow: 0 8px 24px rgba(191, 180, 163, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.1);
        transform: translateX(8px) scale(1);
    }
    50% {
        box-shadow: 0 12px 32px rgba(191, 180, 163, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.15);
        transform: translateX(10px) scale(1.01);
    }
}

@keyframes step-border-wave {
    0%, 100% {
        opacity: 0.8;
        width: 3px;
    }
    50% {
        opacity: 1;
        width: 4px;
    }
}

@keyframes step-gradient-flow {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 200% 50%;
    }
}

@keyframes step-progress-flow {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.step.completed {
    border-left-color: var(--success-color);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(16, 185, 129, 0.05));
}

.step.completed::before {
    background: linear-gradient(180deg, var(--success-color), rgba(16, 185, 129, 0.6));
    opacity: 1;
}

.step.completed:hover {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(16, 185, 129, 0.1));
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.2);
}

.step-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 8px rgba(191, 180, 163, 0.2));
}

.step-icon svg {
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease;
}

.step:hover .step-icon {
    transform: scale(1.1);
    filter: drop-shadow(0 4px 12px rgba(191, 180, 163, 0.4));
}

.step:hover .step-icon svg {
    transform: rotate(5deg);
}

.step.active .step-icon {
    filter: drop-shadow(0 4px 12px rgba(191, 180, 163, 0.5));
    animation: icon-wave 2s ease-in-out infinite !important;
    transform: scale(1);
    position: relative;
    will-change: transform, filter;
}

.step.active .step-icon::before {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(191, 180, 163, 0.3) 0%, transparent 70%);
    animation: icon-ripple 2s ease-out infinite;
    z-index: -1;
}

.step.active .step-icon svg {
    animation: icon-float 3s ease-in-out infinite;
    transform-origin: center;
}

@keyframes icon-wave {
    0%, 100% {
        transform: translateY(0px) scale(1);
        filter: drop-shadow(0 4px 12px rgba(191, 180, 163, 0.5));
    }
    25% {
        transform: translateY(-6px) scale(1.1);
        filter: drop-shadow(0 8px 20px rgba(191, 180, 163, 0.8));
    }
    50% {
        transform: translateY(0px) scale(1.12);
        filter: drop-shadow(0 10px 24px rgba(191, 180, 163, 1));
    }
    75% {
        transform: translateY(-6px) scale(1.1);
        filter: drop-shadow(0 8px 20px rgba(191, 180, 163, 0.8));
    }
}

@keyframes icon-ripple {
    0% {
        transform: scale(0.8);
        opacity: 0.6;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

@keyframes icon-float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    33% {
        transform: translateY(-3px) rotate(3deg);
    }
    66% {
        transform: translateY(-2px) rotate(-3deg);
    }
}

.step-content {
    flex: 1;
}

.step-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.step-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.step-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, margin-top 0.4s ease, opacity 0.4s ease;
    opacity: 0;
    margin-top: 0;
}

.step.expanded .step-details {
    max-height: 200px;
    opacity: 1;
    margin-top: 0.75rem;
}

.step.expanded .step-desc {
    color: var(--primary-color);
    font-weight: 500;
}

.step-details p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    padding: 0.5rem 0;
    border-left: 2px solid var(--primary-color);
    padding-left: 0.75rem;
    margin: 0;
}

.step-status {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    position: relative;
}

.step.active .step-status {
    border-color: var(--primary-color);
    background: var(--primary-color);
    animation: status-bounce 1.2s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite !important;
    box-shadow: 0 0 20px rgba(191, 180, 163, 0.8);
    position: relative;
    overflow: visible;
    will-change: transform, box-shadow;
}

.step.active .step-status::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    animation: dot-bounce 0.8s ease-in-out infinite;
}

.step.active .step-status::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: ripple-wave 1.5s ease-out infinite;
    opacity: 0.9;
}

@keyframes status-bounce {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 20px rgba(191, 180, 163, 0.8);
    }
    25% {
        transform: scale(1.25);
        box-shadow: 0 0 40px rgba(191, 180, 163, 1);
    }
    50% {
        transform: scale(1.15);
        box-shadow: 0 0 35px rgba(191, 180, 163, 0.95);
    }
    75% {
        transform: scale(1.25);
        box-shadow: 0 0 40px rgba(191, 180, 163, 1);
    }
}

@keyframes dot-bounce {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        transform: translate(-50%, -50%) scale(0.7);
    }
}

@keyframes ripple-wave {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.9;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        transform: translate(-50%, -50%) scale(3);
        opacity: 0;
    }
}

@keyframes text-pulse {
    0%, 100% {
        opacity: 1;
        transform: translateX(0);
    }
    25% {
        opacity: 0.9;
        transform: translateX(2px);
    }
    50% {
        opacity: 0.8;
        transform: translateX(0);
    }
    75% {
        opacity: 0.9;
        transform: translateX(-2px);
    }
}

.step.completed .step-status {
    border-color: var(--success-color);
    background: var(--success-color);
}

.step.completed .step-status::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

/* Results Section */
.results-section {
    margin-bottom: 2rem;
}

.results-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.9));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: var(--shadow-premium);
    border: 1px solid var(--border-color);
    transition: all 0.4s ease;
}

.results-card:hover {
    border-color: var(--border-glow);
    box-shadow: var(--shadow-glow), var(--shadow-premium);
}

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

.results-header h3 {
    font-size: 1.5rem;
}

.copy-btn {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.9));
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.copy-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.copy-btn:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(191, 180, 163, 0.3);
}

.copy-btn:hover::before {
    opacity: 1;
}

.copy-btn span {
    position: relative;
    z-index: 1;
}

@keyframes button-pulse {

    0%,
    100% {
        transform: scale(1.05) rotate(5deg);
    }

    50% {
        transform: scale(1.1) rotate(-5deg);
    }
}

.results-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Results Grid */
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.result-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.6), rgba(15, 23, 42, 0.8));
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 1.75rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.result-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.interactive-card {
    cursor: pointer;
}

.interactive-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary-color);
    box-shadow: 0 12px 32px rgba(191, 180, 163, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    background: linear-gradient(135deg, rgba(191, 180, 163, 0.1), rgba(113, 107, 98, 0.05));
}

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

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

.result-card-icon {
    font-size: 1.5rem;
}

.result-card .result-label {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.result-card .result-value {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
}

/* Quality Display */
.quality-display {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.quality-bar-wrapper {
    width: 100%;
    height: 12px;
    background: var(--bg-dark);
    border-radius: 10px;
    overflow: hidden;
}

.quality-bar {
    height: 100%;
    border-radius: 10px;
    transition: width 1s ease;
    background: linear-gradient(90deg, var(--error-color), var(--warning-color), var(--success-color));
    width: 0%;
}

.quality-text {
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Expandable Sections */
.result-section {
    background: var(--bg-card-hover);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.result-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.result-section-header:hover {
    background: rgba(191, 180, 163, 0.1);
}

.expand-btn {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    transition: transform 0.3s ease;
    padding: 0.25rem 0.5rem;
}

.expand-btn:hover {
    transform: scale(1.2);
}

.result-section.expanded .expand-btn {
    transform: rotate(180deg);
}

.result-section-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.result-section.expanded .result-section-content {
    max-height: 2000px;
}

/* Labels Grid */
.labels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.label-tag {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 24px;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(191, 180, 163, 0.3);
    position: relative;
    overflow: hidden;
}

.label-tag::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.5s ease;
}

.label-tag:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(191, 180, 163, 0.5);
}

.label-tag:hover::before {
    left: 100%;
}

@keyframes tag-bounce {

    0%,
    100% {
        transform: scale(1.1) rotate(2deg);
    }

    50% {
        transform: scale(1.15) rotate(-2deg);
    }
}

.result-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-card-hover);
    border-radius: 8px;
}

.result-item.full-width {
    flex-direction: column;
}

.result-label {
    font-weight: 600;
    color: var(--text-secondary);
    min-width: 150px;
}

.result-value {
    color: var(--text-primary);
    flex: 1;
}

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 24px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: badge-appear 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(191, 180, 163, 0.3);
    position: relative;
    overflow: hidden;
}

@keyframes badge-appear {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(10px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.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.5s ease;
}

.badge:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(191, 180, 163, 0.5);
}

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

.result-json {
    background: var(--bg-dark);
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    font-size: 0.9rem;
    max-height: 400px;
    overflow-y: auto;
}

/* Error Section */
.error-section {
    margin-bottom: 2rem;
}

.error-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.95));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 3rem 2rem;
    box-shadow: var(--shadow-premium), 0 0 40px rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.3);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.error-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--error-color), transparent);
    opacity: 0.6;
}

.error-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.error-card h3 {
    color: var(--error-color);
    margin-bottom: 1rem;
}

/* Footer */
.footer {
    text-align: center;
    padding: 2rem 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    border-top: 1px solid var(--border-color);
    margin-top: 2rem;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

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

    .upload-card {
        padding: 2rem;
    }

    .api-key-section {
        flex-direction: column;
    }

    .results-header {
        flex-direction: column;
        gap: 1rem;
    }

    .result-item {
        flex-direction: column;
    }
}