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

body {
    font-family: 'Raleway', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* Navigation */
.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: #fff !important;
}

.navbar-nav .nav-link {
    font-weight: 500;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: #007bff !important;
}

.navbar-nav .nav-link.active {
    color: #007bff !important;
}

/* Hero Section */
.hero-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

.hero-section h1 {
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-section .lead {
    font-size: 1.2rem;
    font-weight: 400;
}

/* Upload Section */
.upload-section {
    padding: 60px 0;
}

.upload-container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 40px;
    margin-bottom: 40px;
}

.upload-area {
    border: 3px dashed #007bff;
    border-radius: 10px;
    padding: 60px 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    background-color: #f8f9ff;
}

.upload-area:hover {
    border-color: #0056b3;
    background-color: #e6f3ff;
    transform: translateY(-2px);
}

.upload-area.dragover {
    border-color: #28a745;
    background-color: #e8f5e8;
}

.upload-icon {
    font-size: 4rem;
    color: #007bff;
    margin-bottom: 20px;
}

.upload-content h3 {
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.upload-content p {
    color: #666;
    margin-bottom: 25px;
}

.btn-primary {
    background: linear-gradient(45deg, #007bff, #0056b3);
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.4);
}

/* Supported Formats */
.supported-formats {
    text-align: center;
}

.supported-formats h5 {
    font-weight: 600;
    color: #333;
}

.format-list {
    margin-bottom: 15px;
}

.badge {
    font-size: 0.9rem;
    padding: 8px 12px;
    margin: 5px;
    border-radius: 20px;
}

/* Editor Section */
.editor-section {
    padding: 60px 0;
    background-color: #fff;
}

.editor-container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 40px;
}

.editor-container h3 {
    font-weight: 600;
    color: #333;
}

/* Audio Player */
.audio-player {
    text-align: center;
}

.audio-player audio {
    max-width: 100%;
    border-radius: 10px;
}

/* Waveform Container */
.waveform-container {
    position: relative;
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin: 30px 0;
    min-height: 200px;
}

#waveform {
    width: 100%;
    height: 150px;
}

.time-indicators {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

/* Controls Section */
.controls-section {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 30px;
    margin-top: 30px;
}

.mode-toggle .btn-group {
    width: 100%;
}

.mode-toggle .btn {
    font-weight: 600;
    border-radius: 20px;
}

.time-inputs {
    margin-bottom: 20px;
}

.time-inputs .form-label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.time-inputs .input-group {
    border-radius: 10px;
    overflow: hidden;
}

.time-inputs .form-control {
    border: none;
    background: white;
    font-weight: 500;
}

.time-inputs .btn {
    border: none;
    background: #e9ecef;
    color: #495057;
    font-weight: 600;
}

.time-inputs .btn:hover {
    background: #dee2e6;
}

.fade-controls {
    margin-bottom: 20px;
}

.fade-controls .form-check {
    margin-bottom: 10px;
}

.fade-controls .form-check-label {
    font-weight: 500;
    color: #333;
}

.output-format .form-label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.output-format .form-select {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    font-weight: 500;
}

.output-format .form-select:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

#cropBtn {
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 30px;
    background: linear-gradient(45deg, #28a745, #20c997);
    border: none;
    transition: all 0.3s ease;
}

#cropBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.4);
}

/* Instructions Section */
.instructions-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.instructions-content h2 {
    font-weight: 700;
    margin-bottom: 40px;
}

.instruction-item {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.instruction-number {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    margin-right: 20px;
    flex-shrink: 0;
}

.instruction-text h5 {
    font-weight: 600;
    margin-bottom: 8px;
}

.instruction-text p {
    margin: 0;
    opacity: 0.9;
}

/* Footer */
footer {
    margin-top: auto;
}

footer a {
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #007bff !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: 40px 0;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .upload-container,
    .editor-container {
        padding: 20px;
    }
    
    .upload-area {
        padding: 40px 15px;
    }
    
    .upload-icon {
        font-size: 3rem;
    }
    
    .controls-section {
        padding: 20px;
    }
    
    .controls-section .row > div {
        margin-bottom: 20px;
    }
    
    .instruction-item {
        flex-direction: column;
        text-align: center;
    }
    
    .instruction-number {
        margin-right: 0;
        margin-bottom: 15px;
    }
}

@media (max-width: 576px) {
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .hero-section h1 {
        font-size: 1.8rem;
    }
    
    .hero-section .lead {
        font-size: 1rem;
    }
    
    .upload-area {
        padding: 30px 10px;
    }
    
    .btn-primary {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .badge {
        font-size: 0.8rem;
        padding: 6px 10px;
        margin: 3px;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

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

/* Progress Bar */
.progress-container {
    margin: 20px 0;
    display: none;
}

.progress {
    height: 10px;
    border-radius: 5px;
    background-color: #e9ecef;
}

.progress-bar {
    background: linear-gradient(45deg, #007bff, #0056b3);
    border-radius: 5px;
    transition: width 0.3s ease;
}

/* Utility Classes */
.text-muted {
    color: #6c757d !important;
}

.mt-auto {
    margin-top: auto !important;
}

.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

.shadow {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.shadow-lg {
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;
}

