/* Glass Card */
.glass-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    backdrop-filter: blur(12px);
    transition: border-color 0.2s ease;
}

/* Input Field */
.input-field {
    width: 100%;
    padding: 0.625rem 0.875rem;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.75rem;
    color: #f1f5f9;
    font-size: 0.875rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.input-field:focus {
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}
.input-field::placeholder {
    color: #64748b;
}

/* Primary Button */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: 0.75rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.25);
}
.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.35);
    transform: translateY(-1px);
}
.btn-primary:active {
    transform: translateY(0);
}

/* Nav Link */
.nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.75rem;
    border-radius: 0.5rem;
    color: #94a3b8;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.15s ease;
}
.nav-link:hover {
    color: #f1f5f9;
    background: rgba(255, 255, 255, 0.04);
}
.nav-link.active {
    color: #f1f5f9;
    background: rgba(139, 92, 246, 0.1);
}
.nav-link.active svg {
    color: #a78bfa;
}

/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.625rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.5;
}
.status-pending { background: rgba(245, 158, 11, 0.1); color: #fbbf24; }
.status-queued { background: rgba(59, 130, 246, 0.1); color: #60a5fa; }
.status-processing { background: rgba(99, 102, 241, 0.1); color: #a5b4fc; }
.status-completed { background: rgba(16, 185, 129, 0.1); color: #34d399; }
.status-failed { background: rgba(244, 63, 94, 0.1); color: #fb7185; }
.status-ready { background: rgba(16, 185, 129, 0.1); color: #34d399; }
.status-uploading { background: rgba(59, 130, 246, 0.1); color: #60a5fa; }
.status-downloading { background: rgba(245, 158, 11, 0.1); color: #fbbf24; }
.status-error { background: rgba(244, 63, 94, 0.1); color: #fb7185; }

/* Spinner */
.spinner {
    width: 2rem;
    height: 2rem;
    border: 3px solid rgba(139, 92, 246, 0.15);
    border-top-color: #8b5cf6;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Progress animation */
@keyframes progress {
    0% { width: 0%; margin-left: 0; }
    50% { width: 60%; margin-left: 20%; }
    100% { width: 0%; margin-left: 100%; }
}
.animate-progress {
    animation: progress 2.5s ease-in-out infinite;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Select styling */
select.input-field {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}
