/* Premium Dark Theme with Electric Blue Accents */
html, body {
    font-family: 'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    min-height: 100vh;
}

#app {
    min-height: 100vh;
}

.logo-text {
    font-family: 'Sora', sans-serif;
    letter-spacing: 0.02em;
}

.nav-link {
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: #93c5fd;
}

[tabindex="-1"]:focus {
    outline: none;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.mobile-menu {
    animation: slide-down 0.25s ease-out;
    transform-origin: top;
}

.mobile-menu-overlay {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 50;
}

.mobile-menu-panel {
    animation: slide-down 0.25s ease-out;
}

@keyframes slide-down {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.select-modern {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M6 8l4 4 4-4' stroke='%2393c5fd' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1rem 1rem;
    padding-right: 2.75rem;
}

.select-modern:focus {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.35);
}

.select-modern option {
    background-color: #1e293b;
    color: #e2e8f0;
}

/* Loading Spinner */
.spinner {
    width: 50px;
    height: 50px;
    animation: rotate 2s linear infinite;
}

.spinner .path {
    stroke: #3b82f6;
    stroke-linecap: round;
    animation: dash 1.5s ease-in-out infinite;
}

@keyframes rotate {
    100% { transform: rotate(360deg); }
}

@keyframes dash {
    0% {
        stroke-dasharray: 1, 150;
        stroke-dashoffset: 0;
    }
    50% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -35;
    }
    100% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -124;
    }
}

/* Drag and Drop Zone */
.drop-zone {
    border: 2px dashed #475569;
    border-radius: 12px;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    transition: all 0.3s ease;
    cursor: pointer;
}

.drop-zone:hover {
    border-color: #3b82f6;
    background: linear-gradient(135deg, #1e293b 0%, #2d3e57 100%);
}

.drop-zone.drag-over {
    border-color: #3b82f6;
    background: linear-gradient(135deg, #1e3a5f 0%, #2d4a7c 100%);
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.3);
}

.drop-zone.has-files {
    border-color: #22c55e;
    box-shadow: 0 0 18px rgba(34, 197, 94, 0.25);
}

/* Image Preview Cards */
.image-card {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border: 1px solid #334155;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.image-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.2);
    transform: translateY(-2px);
}

/* Image Preview */
.image-preview {
    border-radius: 8px;
    overflow: hidden;
    background: #0f172a;
}

.image-preview img {
    object-fit: cover;
    transition: transform 0.3s ease;
}

.image-card:hover .image-preview img {
    transform: scale(1.05);
}

.image-card.drag-target {
    border-color: #60a5fa;
    box-shadow: 0 0 24px rgba(96, 165, 250, 0.35);
}

.format-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.format-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 10px 26px rgba(59, 130, 246, 0.2);
    transform: translateY(-3px);
}

/* Progress Bar */
.progress-bar-container {
    background: #1e293b;
    border-radius: 9999px;
    overflow: hidden;
    height: 8px;
}

.progress-bar {
    background: linear-gradient(90deg, #3b82f6 0%, #60a5fa 100%);
    height: 100%;
    transition: width 0.3s ease;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.6);
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.5);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-success:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.5);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.btn-danger:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(239, 68, 68, 0.5);
}

/* Badge */
.badge-electric {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Glow Effects */
.glow-blue {
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #0f172a;
}

::-webkit-scrollbar-thumb {
    background: #475569;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* Animations */
@keyframes pulse-blue {
    0%, 100% {
        box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
    }
    50% {
        box-shadow: 0 0 40px rgba(59, 130, 246, 0.8);
    }
}

.animate-pulse-blue {
    animation: pulse-blue 2s ease-in-out infinite;
}


small.text-success {
    display: block;
    margin-top: 0.5rem;
}

.alert {
    border-radius: 8px;
    border: none;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
}

@media (max-width: 768px) {
    .card-body {
        padding: 1.5rem 1rem;
    }

    .container {
        padding: 0 1rem;
    }
}
