/* Maintenance alert styling */
.maintenance-alert {
    background-color: #fff3cd;
    border-color: #ffeeba;
    color: #856404;
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin-bottom: 2rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.maintenance-alert h4 {
    color: #856404;
    margin-bottom: 1rem;
    font-weight: 600;
}

.maintenance-alert p {
    margin-bottom: 0.5rem;
}


:root {
    --primary-grey: #333333;
    --secondary-grey: #666666;
    --accent-grey: #999999;
    --light-grey: #f5f5f5;
    --white: #ffffff;
    --shadow: rgba(0, 0, 0, 0.1);
    --bg-color: var(--white);
    --text-color: var(--primary-grey);
    --nav-bg: var(--white);
    --card-bg: var(--white);
    --border-color: var(--light-grey);
}

[data-theme="dark"] {
    --primary-grey: #e1e1e1;
    --secondary-grey: #b0b0b0;
    --accent-grey: #808080;
    --light-grey: #2a2a2a;
    --white: #1a1a1a;
    --shadow: rgba(0, 0, 0, 0.2);
    --bg-color: #121212;
    --text-color: #e1e1e1;
    --nav-bg: #1a1a1a;
    --card-bg: #1a1a1a;
    --border-color: #2a2a2a;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: background-color 0.3s ease;
}

/* Navbar styles */
.navbar {
    background-color: var(--nav-bg);
    padding: 1rem 0;
    box-shadow: 0 2px 4px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.navbar-brand img {
    height: 24px;
    width: auto;
    object-fit: contain;
}

[data-theme="dark"] .navbar-brand {
    color: var(--text-color);
}

/* Download form styles */
.download-form {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px var(--shadow);
}

.input-group {
    display: flex;
    align-items: stretch;
    margin-bottom: 1rem;
}

.input-group .form-control {
    flex: 1;
    border-radius: 0.5rem 0 0 0.5rem;
    border: 2px solid var(--border-color);
    border-right: none;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.input-group .btn {
    border-radius: 0 0.5rem 0.5rem 0;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    font-weight: 500;
}

/* Quality badges */
.quality-badges {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.quality-badges:not(.d-none) {
    opacity: 1;
    transform: translateY(0);
}

.quality-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.875rem;
}

.quality-badge:hover {
    border-color: var(--secondary-grey);
    background-color: var(--light-grey);
}

.quality-badge.selected {
    border-color: var(--primary-grey);
    background-color: var(--primary-grey);
    color: var(--white);
}

.quality-badge.premium-badge {
    position: relative;
    background: linear-gradient(135deg, #3a7bd5, #00d2ff);
    color: white;
    border: none;
}

.quality-badge.premium-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.premium-tooltip {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    pointer-events: none;
}

.quality-badge.premium-badge:hover .premium-tooltip {
    opacity: 1;
    visibility: visible;
    top: -30px;
}

/* Modal styles */
.modal-content {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    box-shadow: 0 4px 20px var(--shadow);
}

.modal-header {
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem;
}

.modal-body {
    padding: 2rem;
}

/* Form styles */
.form-label {
    color: var(--text-color);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-control {
    background-color: var(--bg-color);
    border: 2px solid var(--border-color);
    color: var(--text-color);
    padding: 0.75rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.form-control::placeholder {
    color: var(--accent-grey);
    opacity: 1;
}

[data-theme="dark"] .form-control::placeholder {
    color: var(--accent-grey);
    opacity: 0.7;
}

.form-control:focus {
    border-color: var(--secondary-grey);
    box-shadow: 0 0 0 0.2rem rgba(102, 102, 102, 0.25);
}

/* Alert styles */
.alert {
    border-radius: 0.5rem;
    border: none;
    padding: 1rem;
    margin-bottom: 1rem;
}

.alert-danger {
    background-color: #ff4444;
    color: white;
}

.alert-success {
    background-color: #00C851;
    color: white;
}

/* Theme toggle */
.theme-toggle {
    background: none;
    border: none;
    color: var(--text-color);
    padding: 0.5rem;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.theme-toggle:hover {
    opacity: 0.8;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

/* URL input enhancements */
.url-input-container {
    position: relative;
    flex: 1;
}

.url-input-container.focused {
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
    border-radius: 0.5rem 0 0 0.5rem;
}

.url-clear-button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--secondary-grey);
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.6;
    transition: opacity 0.2s, color 0.2s;
    z-index: 10;
}

.url-clear-button:hover {
    color: var(--primary-grey);
}

.url-input-container:hover .url-clear-button {
    display: block;
}


/* Platform icons */
.platform {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-right: 1rem;
}

.platform-icon {
    width: 16px;
    height: 16px;
}

/* Loading animation for buttons */
.btn.loading {
    position: relative;
    color: transparent !important;
}

.btn.loading::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-top: -8px;
    margin-left: -8px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

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

/* Video preview enhancements */
.video-info .platform-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.5rem;
    border-radius: 2rem;
    font-size: 0.8rem;
    background-color: var(--light-grey);
    margin-right: 0.5rem;
}

.quality-badge-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

/* Status bar improvements */
#statusBar {
    position: fixed;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 500px;
    background-color: #00C851;
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

#statusBar.active {
    opacity: 1;
    visibility: visible;
}

#statusBar button {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s;
}

#statusBar button:hover {
    opacity: 1;
}

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

/* Hero section styles */
.hero-section {
    padding: 6rem 0 12rem;
    background: linear-gradient(135deg, var(--bg-color) 0%, var(--light-grey) 100%);
    position: relative;
    overflow: hidden;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255,255,255,0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-grey);
    margin-bottom: 1.5rem;
    text-align: center;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--secondary-grey);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
}

/* Feature cards */
.feature-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 3rem auto;
    max-width: 1200px;
    padding: 0 1rem;
}

.feature-card {
    background: var(--card-bg);
    border-radius: 1rem;
    padding: 3rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 6px var(--shadow);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px var(--shadow);
}

.feature-icon {
    width: 48px;
    height: 48px;
    color: var(--primary-grey);
    margin-bottom: 1.5rem;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-grey);
    margin-bottom: 1rem;
}

.feature-description {
    color: var(--secondary-grey);
    font-size: 1rem;
    line-height: 1.6;
}

/* Download form styles */
.download-form-container {
    position: relative;
    z-index: 10;
    margin-top: -5rem;
}

.download-form {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: 0 8px 32px var(--shadow);
}

/* Main content area spacing */
.main-content {
    position: relative;
    margin-top: -30px;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .feature-cards {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 992px) {
    .feature-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Download Status Card Styles */
.download-status-card {
    background: linear-gradient(135deg, var(--card-bg) 0%, var(--light-grey) 100%);
    border-radius: 1rem;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 12px var(--shadow);
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.download-count-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-right: 1.5rem;
    border-right: 1px solid var(--border-color);
    margin-right: 1.5rem;
}

.count-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3a7bd5, #00d2ff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    color: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    margin-bottom: 0.5rem;
    border: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.count-circle::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(255, 255, 255, 0.2), transparent);
    border-radius: 50%;
}

.count-circle:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}

.count-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--secondary-grey);
    text-align: center;
    line-height: 1.2;
}

[data-theme="dark"] .count-circle {
    background: linear-gradient(135deg, #1a2980, #26d0ce);
}

[data-theme="dark"] .count-label {
    color: var(--text-color);
}

[data-theme="dark"] .download-status-card {
    background: linear-gradient(135deg, #1f2229, #121212);
    border-color: #333;
}

.premium-info {
    flex: 1;
}

.premium-info h5 {
    color: var(--primary-grey);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.premium-info p {
    color: var(--secondary-grey);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

/* URL Input Clear Button Styles */
.url-input-container {
    position: relative;
    flex: 1;
}

.url-clear-button {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--accent-grey);
    cursor: pointer;
    font-size: 1.2rem;
    display: none;
    z-index: 10;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.url-clear-button:hover {
    color: var(--primary-grey);
    background-color: rgba(0,0,0,0.05);
}

.url-input-container.has-content .url-clear-button {
    display: flex;
}

[data-theme="dark"] .url-clear-button:hover {
    background-color: rgba(255,255,255,0.1);
}

@media (max-width: 768px) {
    .hero-section {
        padding: 4rem 0;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
        padding: 0 1rem;
    }

    .hero-features {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .feature-item {
        max-width: 100%;
        width: 90%;
    }

    .download-status-card {
        flex-direction: column;
        text-align: center;
    }

    .download-count-indicator {
        padding-right: 0;
        border-right: none;
        margin-right: 0;
        margin-bottom: 1.5rem;
        padding-bottom: 1.5rem;
        border-bottom: 1px solid var(--border-color);
    }
}

/* About page styles */
.about-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--bg-color) 0%, var(--light-grey) 100%);
}

.about-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background: var(--card-bg);
    border-radius: 1rem;
    box-shadow: 0 4px 6px var(--shadow);
}

.about-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-grey);
    margin-bottom: 2rem;
    text-align: center;
}

.about-content {
    color: var(--secondary-grey);
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-features {
    margin-top: 3rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.about-feature {
    text-align: center;
    padding: 1.5rem;
    background: var(--bg-color);
    border-radius: 0.8rem;
    transition: all 0.3s ease;
}

.about-feature:hover {
    transform: translateY(-5px);
}

.about-feature-icon {
    width: 40px;
    height: 40px;
    color: var(--primary-grey);
    margin-bottom: 1rem;
}

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

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .feature-cards {
        grid-template-columns: 1fr;
    }

    .about-title {
        font-size: 2rem;
    }
}
.url-input-container .url-clear-button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    display: none;
    visibility: hidden;
    color: #aaa;
    font-size: 18px;
    z-index: 10;
}