/* Custom CSS Variables */
:root {
    --blood-red: #8B0000;
    --blood-red-light: #A52A2A;
    --blood-red-dark: #660000;
    --black: #000000;
    --dark-gray: #1a1a1a;
    --medium-gray: #2d2d2d;
    --light-gray: #404040;
    --white: #ffffff;
    --text-light: #e0e0e0;
    --text-muted: #b0b0b0;
    --sidebar-width: 250px;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, var(--black) 0%, var(--dark-gray) 100%);
    color: var(--text-light);
    overflow-x: hidden;
    min-height: 100vh;
}

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

::-webkit-scrollbar-track {
    background: var(--dark-gray);
}

::-webkit-scrollbar-thumb {
    background: var(--blood-red);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--blood-red-light);
}

/* Typography */
.text-blood-red {
    color: var(--blood-red) !important;
}

/* Left Sidebar */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: linear-gradient(180deg, var(--black) 0%, var(--dark-gray) 100%);
    border-right: 1px solid var(--medium-gray);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.sidebar-header {
    padding: 2rem 1.5rem;
    border-bottom: 1px solid var(--medium-gray);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
}

.sidebar-brand i {
    color: var(--blood-red);
    font-size: 1.5rem;
}

/* Sidebar Navigation */
.sidebar-nav {
    flex: 1;
    padding: 1rem 0;
}

.nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    margin: 0.25rem 0;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--white);
    background: rgba(139, 0, 0, 0.1);
}

.nav-item.active .nav-link {
    color: var(--white);
    background: rgba(139, 0, 0, 0.2);
    border-right: 3px solid var(--blood-red);
}

.nav-link i {
    width: 20px;
    text-align: center;
}

.nav-badge {
    margin-left: auto;
    background: var(--medium-gray);
    color: var(--text-light);
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    min-width: 24px;
    text-align: center;
}

.nav-badge.pro {
    background: var(--blood-red);
    color: var(--white);
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 1rem;
    border-top: 1px solid var(--medium-gray);
}

.upgrade-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, var(--blood-red) 0%, var(--blood-red-dark) 100%);
    color: var(--white);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    width: 100%;
}

.upgrade-btn:hover {
    background: linear-gradient(135deg, var(--blood-red-light) 0%, var(--blood-red) 100%);
    transform: translateY(-2px);
    color: var(--white);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1001;
    background: var(--blood-red);
    border: none;
    border-radius: 8px;
    padding: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: var(--blood-red-light);
}

.menu-icon {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.menu-icon .wave-bar {
    width: 20px;
    height: 3px;
    background: var(--white);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Main Content */
.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    transition: margin-left 0.3s ease;
    position: relative;
    z-index: 1;
}

.content-section {
    display: none;
    min-height: 100vh;
    padding: 2rem;
}

.content-section.active {
    display: block;
}

/* Hero Section */
.hero-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
}

.hero-content {
    max-width: 600px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, var(--white) 0%, var(--text-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    line-height: 1.6;
}

/* Audio Wave Visual */
.audio-wave-visual {
    margin: 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.wave-line {
    width: 300px;
    height: 4px;
    background: var(--medium-gray);
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.wave-dot {
    width: 16px;
    height: 16px;
    background: var(--blood-red);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    animation: waveDot 3s ease-in-out infinite;
}

.wave-line:first-child .wave-dot {
    left: 40%;
    animation-delay: 0s;
}

.wave-line:last-child .wave-dot {
    left: 60%;
    animation-delay: 1.5s;
}

@keyframes waveDot {
    0%, 100% { opacity: 0.5; transform: translateY(-50%) scale(1); }
    50% { opacity: 1; transform: translateY(-50%) scale(1.2); }
}

/* Upload Button */
.upload-button-container {
    margin-top: 2rem;
}

.upload-btn {
    background: linear-gradient(135deg, var(--blood-red) 0%, var(--blood-red-dark) 100%);
    border: none;
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 600;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.upload-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.6s ease;
}

.upload-btn:hover::before {
    left: 100%;
}

.upload-btn:hover {
    background: linear-gradient(135deg, var(--blood-red-light) 0%, var(--blood-red) 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(139, 0, 0, 0.4);
}

/* Processing Interface */
.processing-interface {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background: var(--medium-gray);
    border-radius: 20px;
    border: 1px solid var(--light-gray);
}

.audio-player-container {
    background: var(--light-gray);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.audio-info h3 {
    color: var(--white);
    margin-bottom: 0.5rem;
}

.audio-info p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.audio-controls audio {
    width: 100%;
    height: 50px;
}

/* Real-Time Controls */
.real-time-controls {
    background: var(--light-gray);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 2px solid var(--blood-red);
}

.real-time-section h5 {
    color: var(--white);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.real-time-section p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.real-time-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.real-time-btn {
    background: linear-gradient(135deg, var(--blood-red) 0%, var(--blood-red-dark) 100%);
    border: none;
    color: var(--white);
    font-weight: 600;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
}

.real-time-btn:hover {
    background: linear-gradient(135deg, var(--blood-red-light) 0%, var(--blood-red) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(139, 0, 0, 0.4);
}

.real-time-btn i {
    font-size: 1rem;
}

/* Quick Actions */
.quick-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.action-btn {
    background: var(--light-gray);
    border: 2px solid transparent;
    color: var(--text-light);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    min-width: 120px;
}

.action-btn:hover {
    border-color: var(--blood-red);
    background: rgba(139, 0, 0, 0.1);
    transform: translateY(-2px);
}

.action-btn.active {
    border-color: var(--blood-red);
    background: rgba(139, 0, 0, 0.2);
    color: var(--white);
}

.action-btn i {
    font-size: 1.5rem;
    color: var(--blood-red);
}

/* Custom Controls */
.custom-controls {
    background: var(--light-gray);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.controls-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.control-group {
    background: var(--medium-gray);
    border-radius: 12px;
    padding: 1.5rem;
}

.control-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--white);
    font-weight: 600;
    margin-bottom: 1rem;
}

.control-slider {
    position: relative;
}

.form-range {
    width: 100%;
    height: 8px;
    background: var(--dark-gray);
    border-radius: 4px;
    outline: none;
    -webkit-appearance: none;
    margin-bottom: 0.5rem;
}

.form-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: var(--blood-red);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-range::-webkit-slider-thumb:hover {
    background: var(--blood-red-light);
    transform: scale(1.2);
}

.slider-value {
    display: block;
    text-align: center;
    background: var(--blood-red);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 600;
    width: fit-content;
    margin: 0 auto;
}

/* Process Button */
.process-section {
    text-align: center;
    margin-bottom: 2rem;
}

.process-btn {
    background: linear-gradient(135deg, var(--blood-red) 0%, var(--blood-red-dark) 100%);
    border: none;
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0 auto;
}

.process-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--blood-red-light) 0%, var(--blood-red) 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(139, 0, 0, 0.4);
}

.process-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Processing Status */
.processing-status {
    text-align: center;
    margin-bottom: 2rem;
}

.progress-container {
    width: 100%;
    height: 8px;
    background: var(--dark-gray);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--blood-red), var(--blood-red-light));
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 4px;
}

.processing-text {
    color: var(--text-muted);
    margin: 0;
}

/* Download Section */
.download-section {
    text-align: center;
}

.download-card {
    background: var(--light-gray);
    border: 2px solid var(--blood-red);
    border-radius: 15px;
    padding: 2rem;
}

.download-card h4 {
    color: var(--white);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.download-card i {
    color: var(--blood-red);
}

/* Download Options */
.download-options {
    margin-bottom: 2rem;
}

.download-options h5 {
    color: var(--white);
    margin-bottom: 1rem;
}

.format-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.format-btn {
    background: var(--medium-gray);
    border: 2px solid transparent;
    color: var(--text-light);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    min-width: 120px;
}

.format-btn:hover {
    border-color: var(--blood-red);
    background: rgba(139, 0, 0, 0.1);
}

.format-btn.active {
    border-color: var(--blood-red);
    background: rgba(139, 0, 0, 0.2);
    color: var(--white);
}

.format-btn i {
    font-size: 1.5rem;
    color: var(--blood-red);
}

/* Video Options */
.video-options {
    margin-bottom: 2rem;
}

.video-options h6 {
    color: var(--white);
    margin-bottom: 1rem;
}

.image-upload-area {
    border: 3px dashed var(--blood-red);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    background: rgba(139, 0, 0, 0.05);
    margin-bottom: 1rem;
}

.image-upload-area:hover {
    border-color: var(--blood-red-light);
    background: rgba(139, 0, 0, 0.1);
}

.image-upload-area .upload-content i {
    font-size: 2rem;
    color: var(--blood-red);
    margin-bottom: 1rem;
}

.image-upload-area .upload-content p {
    color: var(--white);
    margin-bottom: 0.5rem;
}

.image-upload-area .upload-content small {
    color: var(--text-muted);
}

.image-preview {
    position: relative;
    display: inline-block;
    max-width: 300px;
}

.image-preview img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    border: 2px solid var(--blood-red);
}

.remove-image-btn {
    position: absolute;
    top: -10px;
    right: -10px;
    background: var(--blood-red);
    border: none;
    color: var(--white);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.remove-image-btn:hover {
    background: var(--blood-red-light);
    transform: scale(1.1);
}

.download-btn {
    background: var(--blood-red);
    border: none;
    color: var(--white);
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0 auto;
}

.download-btn:hover {
    background: var(--blood-red-light);
    transform: translateY(-2px);
}

/* Section Styles */
.section-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

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

/* Settings */
.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.setting-item {
    background: var(--medium-gray);
    border-radius: 15px;
    padding: 2rem;
}

.setting-item h4 {
    color: var(--white);
    margin-bottom: 1rem;
}

.form-select {
    background: var(--light-gray);
    border: 1px solid var(--light-gray);
    color: var(--text-light);
    border-radius: 8px;
    padding: 0.75rem;
}

.form-check-input:checked {
    background-color: var(--blood-red);
    border-color: var(--blood-red);
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-item {
    background: var(--medium-gray);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(139, 0, 0, 0.2);
}

.feature-item i {
    font-size: 3rem;
    color: var(--blood-red);
    margin-bottom: 1rem;
}

.feature-item h4 {
    color: var(--white);
    margin-bottom: 1rem;
}

.feature-item p {
    color: var(--text-muted);
    line-height: 1.6;
}

/* Footer */
.footer {
    background: var(--black);
    border-top: 1px solid var(--medium-gray);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
    margin-left: var(--sidebar-width);
    position: relative;
    z-index: 2;
    transition: margin-left 0.3s ease;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-brand i {
    color: var(--blood-red);
    font-size: 1.75rem;
}

.footer-description {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 0;
}

.footer-title {
    color: var(--white);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--blood-red);
}

.footer-divider {
    border: none;
    height: 1px;
    background: var(--medium-gray);
    margin: 2rem 0 1rem;
}

.footer-copyright {
    color: var(--text-muted);
    margin: 0;
}

.social-links {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--medium-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-links a:hover {
    background: var(--blood-red);
    color: var(--white);
    transform: translateY(-2px);
}

/* Buttons */
.btn-outline-light {
    border: 2px solid var(--text-light);
    color: var(--text-light);
    font-weight: 600;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background: var(--text-light);
    color: var(--black);
}

/* Responsive Design */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .footer {
        margin-left: 0;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .processing-interface {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .quick-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .controls-grid {
        grid-template-columns: 1fr;
    }
    
    .content-section {
        padding: 1rem;
    }
    
    .format-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .social-links {
        justify-content: center;
        margin-top: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .upload-btn {
        font-size: 1rem;
        padding: 0.875rem 2rem;
    }
    
    .wave-line {
        width: 250px;
    }
    
    .footer {
        padding: 2rem 0 1rem;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Overlay for mobile menu */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.sidebar-overlay.active {
    display: block;
}

@media (max-width: 768px) {
    .sidebar-overlay.active {
        display: block;
    }
}

