/* Custom styles for VidsFetcher */
body {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    min-height: 100vh;
    transition: all 0.3s ease;
}

/* Light mode styles */
[data-bs-theme="light"] body {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

[data-bs-theme="light"] .navbar {
    background: rgba(255, 255, 255, 0.95) !important;
}

[data-bs-theme="light"] .card {
    border: 1px solid rgba(0, 0, 0, 0.1);
}

[data-bs-theme="light"] footer {
    background: rgba(255, 255, 255, 0.95);
}

.navbar {
    background: rgba(0, 0, 0, 0.9) !important;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.card {
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(45deg, #667eea 0%, #764ba2 100%);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(45deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-2px);
}

.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.text-muted {
    color: #a8a8a8 !important;
}

/* How It Works Section */
.step-card {
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step-card:hover {
    transform: translateY(-5px);
}

.step-number {
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.step-card:hover .step-number {
    transform: scale(1.1);
}

/* Animated Progress Bar Styles */
.animated-bounce {
    animation: bounce 2s infinite;
}

.animated-fade {
    animation: fadeInOut 3s infinite;
}

/* Progress bar barberpole animation */
@keyframes barberpole {
    0% {
        background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    }
    100% {
        background-position: 20px 0, 20px 10px, 30px -10px, 10px 0px;
    }
}

/* Bounce animation for icons */
@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translateY(0);
    }
    40%, 43% {
        transform: translateY(-15px);
    }
    70% {
        transform: translateY(-7px);
    }
    90% {
        transform: translateY(-3px);
    }
}

/* Fade in/out animation for loading messages */
@keyframes fadeInOut {
    0% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0.6;
    }
}

/* Progress bar enhancement */
.progress {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.progress-bar {
    box-shadow: 0 2px 5px rgba(0, 123, 255, 0.3);
    transition: width 0.4s ease;
}

/* Glowing effect for progress text */
.progress-text h6 {
    text-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
}

/* Loading message container styling */
.loading-messages {
    min-height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Enhanced success animation */
@keyframes successPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(40, 167, 69, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
    }
}

.animated-success {
    animation: successPulse 2s infinite;
}

/* Platform selector button animations */
.btn-check:checked + .btn {
    transform: scale(1.02);
    transition: transform 0.2s ease;
}

/* Smooth transitions for all interactive elements */
* {
    transition: all 0.3s ease;
}

/* Smaller version for compact How It Works */
.step-card-small {
    padding: 0.75rem;
    transition: transform 0.2s ease;
}

.step-card-small:hover {
    transform: translateY(-2px);
}

.step-number-small {
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
}

.step-card-small:hover .step-number-small {
    transform: scale(1.05);
}

/* Theme toggle button */
#themeToggle {
    border-radius: 50px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

#themeToggle:hover {
    transform: rotate(180deg);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

/* Animation for download button */
.btn {
    transition: all 0.3s ease;
}

/* Footer styling */
footer {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

/* Light mode text colors */
[data-bs-theme="light"] .navbar-brand,
[data-bs-theme="light"] .nav-link {
    color: #333 !important;
}

[data-bs-theme="light"] .text-white {
    color: #333 !important;
}

[data-bs-theme="light"] .lead {
    color: #555 !important;
}

/* Light mode How It Works section */
[data-bs-theme="light"] .card.bg-dark {
    background-color: var(--bs-light) !important;
    border-color: rgba(0, 0, 0, 0.125);
}

[data-bs-theme="light"] .card.bg-dark .text-white {
    color: var(--bs-dark) !important;
}

/* Responsive design */
@media (max-width: 768px) {
    .display-4 {
        font-size: 2rem;
    }
    
    .step-card {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    #themeToggle {
        width: 35px;
        height: 35px;
    }
}

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

.step-card {
    animation: fadeInUp 0.6s ease-out;
}

.step-card:nth-child(2) {
    animation-delay: 0.2s;
}

.step-card:nth-child(3) {
    animation-delay: 0.4s;
}