
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

/* Light Theme (Default) */
body {
    background: #f5f7fb;
    color: #333;
    text-align: center;
    padding: 20px;
    transition: all 0.3s ease;
    min-height: 100vh;
}

/* Dark Theme */
body.dark-theme {
    background: #121212;
    color: #f5f5f5;
}

.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.theme-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.theme-toggle i {
    font-size: 1.4rem;
    color: #3a86ff;
}

.light-theme .fa-moon {
    display: block;
}

.light-theme .fa-sun {
    display: none;
}

.dark-theme .fa-moon {
    display: none;
}

.dark-theme .fa-sun {
    display: block;
    color: #ffd60a;
}

.header {
    padding: 15px 20px;
    margin: 0 auto 20px;
    border-radius: 15px;
    text-align: center;
    letter-spacing: 1px;
    max-width: 600px;
    transition: all 0.3s ease;
}

.light-theme .header {
    background: white;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.dark-theme .header {
    background: #1e1e1e;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.header .logo {
    font-size: 26px;
    font-weight: bold;
    color: #3a86ff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.header .logo i {
    color: #ff0050;
}

.dark-theme .header .logo {
    color: #60a5fa;
}

.container {
    padding: 30px;
    border-radius: 15px;
    max-width: 600px;
    margin: 20px auto;
    transition: all 0.3s ease;
}

.light-theme .container {
    background: white;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.dark-theme .container {
    background: #1e1e1e;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

h2 {
    font-size: 26px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.light-theme h2 {
    color: #3a86ff;
}

.dark-theme h2 {
    color: #60a5fa;
}

h2 span {
    font-size: 26px;
}

.input-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

input {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    margin: 10px 0;
    font-size: 16px;
    text-align: center;
    transition: all 0.3s ease;
}

.light-theme input {
    background: #f0f4f8;
    color: #333;
    border: 1px solid #e0e0e0;
}

.dark-theme input {
    background: #2d2d2d;
    color: #f5f5f5;
    border: 1px solid #444;
}

input:focus {
    outline: none;
}

.light-theme input:focus {
    border-color: #3a86ff;
    box-shadow: 0 0 0 2px rgba(58, 134, 255, 0.3);
}

.dark-theme input:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.3);
}

input::placeholder {
    color: #999;
}

button {
    background: linear-gradient(90deg, #3a86ff, #60a5fa);
    color: white;
    padding: 12px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(58, 134, 255, 0.4);
}

.dark-theme button {
    background: linear-gradient(90deg, #60a5fa, #3b82f6);
}

.preview {
    margin-top: 30px;
    display: none;
}

.preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.preview-header h3 {
    font-size: 18px;
    font-weight: 600;
}

.video-id {
    font-size: 14px;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 500;
}

.light-theme .video-id {
    background: #f0f4f8;
    color: #3a86ff;
}

.dark-theme .video-id {
    background: #2d2d2d;
    color: #60a5fa;
}

.image-container {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 15px;
}

img {
    width: 100%;
    display: block;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

img:hover {
    transform: scale(1.02);
}

.light-theme img {
    border: 1px solid #e0e0e0;
}

.dark-theme img {
    border: 1px solid #444;
}

#downloadButtons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    justify-content: center;
    margin-top: 15px;
}

.download-btn {
    padding: 10px;
    font-weight: 600;
    border: none;
    color: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.download-btn i {
    font-size: 14px;
}

.light-theme .download-btn {
    background: linear-gradient(90deg, #3a86ff, #60a5fa);
}

.dark-theme .download-btn {
    background: linear-gradient(90deg, #60a5fa, #3b82f6);
}

.download-btn:hover {
    transform: translateY(-2px);
}

/* Add new styles for the download progress indicator */
.download-progress {
    margin-top: 15px;
    padding: 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.progress-container {
    width: 100%;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    margin-bottom: 5px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #ff416c, #ff4b2b);
    border-radius: 5px;
    transition: width 0.2s ease;
}

.progress-text {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
}

.fade-out {
    opacity: 0;
    transform: translateY(10px);
}

/* Add to existing light-theme class */
.light-theme .download-progress {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.light-theme .progress-container {
    background-color: rgba(0, 0, 0, 0.1);
}

.light-theme .progress-text {
    color: rgba(0, 0, 0, 0.7);
}

/* Mobile Responsive */
@media (max-width: 600px) {
    #downloadButtons {
        grid-template-columns: 1fr;
    }

    h2 {
        font-size: 20px;
    }

    .header .logo {
        font-size: 22px;
    }
}

.faq-container {
    max-width: 600px;
    margin: 30px auto;
    padding: 20px;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.light-theme .faq-container {
    background: white;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.dark-theme .faq-container {
    background: #1e1e1e;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.faq-container h2 {
    margin-bottom: 20px;
}

.faq {
    margin-bottom: 10px;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.light-theme .faq {
    background: #f8f9fa;
}

.dark-theme .faq {
    background: #2d2d2d;
}

.faq-question {
    border: none;
    width: 100%;
    text-align: left;
    padding: 15px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.light-theme .faq-question {
    background: #f8f9fa;
    color: #333;
}

.dark-theme .faq-question {
    background: #2d2d2d;
    color: #f5f5f5;
}

.faq-question:focus {
    outline: none;
}

.faq-answer {
    display: none;
    padding: 0 15px 15px;
    font-size: 15px;
    line-height: 1.6;
}

.light-theme .faq-answer {
    color: #555;
}

.dark-theme .faq-answer {
    color: #ddd;
}

.faq-icon {
    font-size: 18px;
    transition: transform 0.3s ease;
    display: inline-block;
    width: 24px;
    height: 24px;
    text-align: center;
    line-height: 24px;
    border-radius: 50%;
}

.light-theme .faq-icon {
    background: #e9ecef;
    color: #3a86ff;
}

.dark-theme .faq-icon {
    background: #3a3a3a;
    color: #60a5fa;
}

.faq.active .faq-answer {
    display: block;
}

.faq.active .faq-icon {
    transform: rotate(180deg);
}

.footer {
    padding: 20px;
    margin: 30px auto 0;
    border-radius: 15px;
    text-align: center;
    font-size: 14px;
    max-width: 600px;
    transition: all 0.3s ease;
}

.light-theme .footer {
    background: white;
    color: #777;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.dark-theme .footer {
    background: #1e1e1e;
    color: #aaa;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Toast Styles */
.toast-container {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.toast {
    padding: 12px 20px;
    border-radius: 50px;
    margin-bottom: 10px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s, transform 0.3s;
    min-width: 250px;
    text-align: center;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.light-theme .toast {
    background: #333;
    color: white;
}

.dark-theme .toast {
    background: #f5f5f5;
    color: #333;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}