/**
 * WAVConverter.com - Custom Styles
 */

 :root {
    --primary-color: #2c7be5;
    --secondary-color: #6c757d;
    --success-color: #00d97e;
    --danger-color: #e63757;
    --warning-color: #f6c343;
    --info-color: #39afd1;
    --light-color: #f9fbfd;
    --dark-color: #12263f;
    --border-color: #edf2f9;
    --body-bg: #f9fbfd;
    --body-color: #12263f;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
    font-family: var(--font-family);
    background-color: var(--body-bg);
    color: var(--body-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* Header & Nav */
.navbar {
    background-color: #fff;
    box-shadow: 0 0.5rem 1.5rem rgba(22, 28, 45, 0.05);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

.navbar-brand .highlight {
    color: var(--primary-color);
}

/* .nav-link {
    font-weight: 500;
} */



.nav-link {
    position: relative;
    display: inline-block; /* So ::after width matches text */
    padding-bottom: 0.3rem;
    font-weight: 500;
  }
  
  .nav-link.active {
    font-weight: 600;
    color: var(--primary-color) !important;
  }
  
  .nav-link.active::after {
    content: '';
    position: absolute;
    left: 8px;
    bottom: 2px; /* Adjust based on spacing needs */
    width: 50%;
    height: 3px;
    background: linear-gradient(to right, #4169E1, #8A2BE2);
    border-radius: 2px;
  }
  
  

/* Cards & Containers */
.card {
    border: none;
    box-shadow: 0 0.75rem 1.5rem rgba(18, 38, 63, 0.03);
    border-radius: 0.5rem;
    overflow: hidden;
}

.card-header {
    background-color: #fff;
    border-bottom: 1px solid var(--border-color);
    padding: 1.25rem 1.5rem;
}

.container {
    max-width: 1140px;
}

/* Buttons */
.btn {
    font-weight: 500;
    padding: 0.5rem 1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover, .btn-primary:focus {
    background-color: #1a68d1;
    border-color: #1862c6;
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

/* Dropzone */
.file-upload-wrapper {
    border: 2px dashed #ddd;
    border-radius: 0.5rem;
    padding: 2.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.file-upload-wrapper:hover, .file-upload-wrapper.highlight {
    border-color: var(--primary-color);
    background-color: rgba(44, 123, 229, 0.05);
}

/* AUDIO WAVE ANIMATION */
       /* Reset any previous wave animation styles */
       .wave-animation {
        position: relative;
        height: 60px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Important: removing any previous styles */
    .wave-bar {
        animation: none !important;
        background: none !important;
    }
    
    /* New wave styles with inline colors */
    [id^="blue-purple-bar-"] {
        width: 5px;
        height: 10px;
        margin: 0 3px;
        border-radius: 3px;
        background-color: #4169E1; /* Start with blue */
    }
    
    /* Individual animations with faster speed (1.4s instead of 2s) */
    #blue-purple-bar-1 {
        animation: wave-blue-purple 1.4s infinite ease-in-out;
    }
    
    #blue-purple-bar-2 {
        animation: wave-blue-purple 1.4s infinite ease-in-out;
        animation-delay: 0.1s;
    }
    
    #blue-purple-bar-3 {
        animation: wave-blue-purple 1.4s infinite ease-in-out;
        animation-delay: 0.2s;
    }
    
    #blue-purple-bar-4 {
        animation: wave-blue-purple 1.4s infinite ease-in-out;
        animation-delay: 0.3s;
    }
    
    #blue-purple-bar-5 {
        animation: wave-blue-purple 1.4s infinite ease-in-out;
        animation-delay: 0.4s;
    }
    
    #blue-purple-bar-6 {
        animation: wave-blue-purple 1.4s infinite ease-in-out;
        animation-delay: 0.5s;
    }
    
    #blue-purple-bar-7 {
        animation: wave-blue-purple 1.4s infinite ease-in-out;
        animation-delay: 0.6s;
    }
    
    #blue-purple-bar-8 {
        animation: wave-blue-purple 1.4s infinite ease-in-out;
        animation-delay: 0.7s;
    }

    #blue-purple-bar-9 {
        animation: wave-blue-purple 1.4s infinite ease-in-out;
        animation-delay: 0.8s;
    }

    #blue-purple-bar-10 {
        animation: wave-blue-purple 1.4s infinite ease-in-out;
        animation-delay: 0.9s;
    }

    #blue-purple-bar-11 {
        animation: wave-blue-purple 1.4s infinite ease-in-out;
        animation-delay: 1s;
    }
    #blue-purple-bar-12 {
        animation: wave-blue-purple 1.4s infinite ease-in-out;
        animation-delay: 1.1s;
    }
    #blue-purple-bar-13 {
        animation: wave-blue-purple 1.4s infinite ease-in-out;
        animation-delay: 1.2s;
    }
    #blue-purple-bar-14 {
        animation: wave-blue-purple 1.4s infinite ease-in-out;
        animation-delay: 1.3s;
    }
    #blue-purple-bar-15 {
        animation: wave-blue-purple 1.4s infinite ease-in-out;
        animation-delay: 1.4s;
    }
    #blue-purple-bar-16 {
        animation: wave-blue-purple 1.4s infinite ease-in-out;
        animation-delay: 1.5s;
    }
    #blue-purple-bar-17 {
        animation: wave-blue-purple 1.4s infinite ease-in-out;
        animation-delay: 1.6s;
    }
    #blue-purple-bar-18 {
        animation: wave-blue-purple 1.4s infinite ease-in-out;
        animation-delay: 1.7s;
    }
    #blue-purple-bar-19 {
        animation: wave-blue-purple 1.4s infinite ease-in-out;
        animation-delay: 1.8s;
    }
    #blue-purple-bar-20 {
        animation: wave-blue-purple 1.4s infinite ease-in-out;
        animation-delay: 1.9s;
    }
    #blue-purple-bar-21 {
        animation: wave-blue-purple 1.4s infinite ease-in-out;
        animation-delay: 2.0s;
    }
    #blue-purple-bar-22 {
        animation: wave-blue-purple 1.4s infinite ease-in-out;
        animation-delay: 2.1s;
    }
    #blue-purple-bar-23 {
        animation: wave-blue-purple 1.4s infinite ease-in-out;
        animation-delay: 2.2s;
    }
    #blue-purple-bar-24 {
        animation: wave-blue-purple 1.4s infinite ease-in-out;
        animation-delay: 2.3s;
    }
    
    /* Simple keyframe animation */
    @keyframes wave-blue-purple {
        0% {
            height: 10px;
            background-color: #4169E1; /* Blue */
        }
        50% {
            height: 80px;
            background-color: #8A2BE2; /* Purple */
        }
        100% {
            height: 10px;
            background-color: #4169E1; /* Blue */
        }
    }


/* RANDOM WAVEFORM ANIMATION */
/* REALISTIC AUDIO WAVEFORM ANIMATION */

/* .wave-animation {
    position: relative;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wave-bar {
    animation: none !important;
    background: none !important;
}


[id^="blue-purple-bar-"] {
    width: 4px;
    height: 10px;
    margin: 0 2px;
    border-radius: 3px;
    background-color: #4169E1; 
}


@keyframes wave-blue-purple-small {
    0%, 100% {
        height: 10px;
        background-color: #4169E1; 
    }
    50% {
        height: 25px;
        background-color: #8A2BE2; 
    }
}

@keyframes wave-blue-purple-medium {
    0%, 100% {
        height: 10px;
        background-color: #4169E1; 
    }
    50% {
        height: 40px;
        background-color: #8A2BE2; 
    }
}

@keyframes wave-blue-purple-large {
    0%, 100% {
        height: 10px;
        background-color: #4169E1; 
    }
    50% {
        height: 60px;
        background-color: #8A2BE2; 
    }
}

@keyframes wave-blue-purple-xlarge {
    0%, 100% {
        height: 10px;
        background-color: #4169E1; 
    }
    50% {
        height: 75px;
        background-color: #8A2BE2; 
    }
}
 */

/* Varying animation durations */
/*
#blue-purple-bar-1 {
    animation: wave-blue-purple-medium 1.1s infinite ease-in-out;
}

#blue-purple-bar-2 {
    animation: wave-blue-purple-small 0.9s infinite ease-in-out;
}

#blue-purple-bar-3 {
    animation: wave-blue-purple-large 1.3s infinite ease-in-out;
}

#blue-purple-bar-4 {
    animation: wave-blue-purple-medium 1.0s infinite ease-in-out;
}

#blue-purple-bar-5 {
    animation: wave-blue-purple-xlarge 1.4s infinite ease-in-out;
}

#blue-purple-bar-6 {
    animation: wave-blue-purple-small 1.2s infinite ease-in-out;
}

#blue-purple-bar-7 {
    animation: wave-blue-purple-large 0.8s infinite ease-in-out;
}

#blue-purple-bar-8 {
    animation: wave-blue-purple-medium 1.5s infinite ease-in-out;
}

#blue-purple-bar-9 {
    animation: wave-blue-purple-xlarge 1.2s infinite ease-in-out;
}

#blue-purple-bar-10 {
    animation: wave-blue-purple-small 1.0s infinite ease-in-out;
}

#blue-purple-bar-11 {
    animation: wave-blue-purple-medium 1.3s infinite ease-in-out;
}

#blue-purple-bar-12 {
    animation: wave-blue-purple-large 0.9s infinite ease-in-out;
}

#blue-purple-bar-13 {
    animation: wave-blue-purple-small 1.1s infinite ease-in-out;
}

#blue-purple-bar-14 {
    animation: wave-blue-purple-xlarge 1.4s infinite ease-in-out;
}

#blue-purple-bar-15 {
    animation: wave-blue-purple-medium 1.0s infinite ease-in-out;
}

#blue-purple-bar-16 {
    animation: wave-blue-purple-large 1.2s infinite ease-in-out;
}

#blue-purple-bar-17 {
    animation: wave-blue-purple-small 0.8s infinite ease-in-out;
}

#blue-purple-bar-18 {
    animation: wave-blue-purple-medium 1.3s infinite ease-in-out;
}

#blue-purple-bar-19 {
    animation: wave-blue-purple-xlarge 1.1s infinite ease-in-out;
}

#blue-purple-bar-20 {
    animation: wave-blue-purple-large 1.0s infinite ease-in-out;
}
*/

/* WAVEFORM WITH VARIED AMPLITUDES */
.wave-animation {
    position: relative;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Reset previous styles */
.wave-bar {
    animation: none !important;
    background: none !important;
}

/* Base styles for all bars */
[id^="blue-purple-bar-"] {
    width: 5px;
    height: 10px;
    margin: 0 3px;
    border-radius: 3px;
    background-color: #4169E1; /* Blue */
}

/* Create several different amplitude variations */
@keyframes wave-height-30 {
    0%, 100% {
        height: 10px;
        background-color: #4169E1; /* Blue */
    }
    50% {
        height: 30px;
        background-color: #8A2BE2; /* Purple */
    }
}

@keyframes wave-height-40 {
    0%, 100% {
        height: 10px;
        background-color: #4169E1; /* Blue */
    }
    50% {
        height: 40px;
        background-color: #8A2BE2; /* Purple */
    }
}

@keyframes wave-height-50 {
    0%, 100% {
        height: 10px;
        background-color: #4169E1; /* Blue */
    }
    50% {
        height: 50px;
        background-color: #8A2BE2; /* Purple */
    }
}

@keyframes wave-height-60 {
    0%, 100% {
        height: 10px;
        background-color: #4169E1; /* Blue */
    }
    50% {
        height: 60px;
        background-color: #8A2BE2; /* Purple */
    }
}

@keyframes wave-height-70 {
    0%, 100% {
        height: 10px;
        background-color: #4169E1; /* Blue */
    }
    50% {
        height: 70px;
        background-color: #8A2BE2; /* Purple */
    }
}

/* Distribute animations in a pseudo-random pattern */
#blue-purple-bar-1 { 
    animation: wave-height-50 1.4s infinite ease-in-out;
    animation-delay: 0.0s;
}

#blue-purple-bar-2 { 
    animation: wave-height-30 1.4s infinite ease-in-out;
    animation-delay: 0.1s;
}

#blue-purple-bar-3 { 
    animation: wave-height-60 1.4s infinite ease-in-out;
    animation-delay: 0.2s;
}

#blue-purple-bar-4 { 
    animation: wave-height-40 1.4s infinite ease-in-out;
    animation-delay: 0.3s;
}

#blue-purple-bar-5 { 
    animation: wave-height-60 1.4s infinite ease-in-out;
    animation-delay: 0.4s;
}

#blue-purple-bar-6 { 
    animation: wave-height-50 1.4s infinite ease-in-out;
    animation-delay: 0.5s;
}

#blue-purple-bar-7 { 
    animation: wave-height-70 1.4s infinite ease-in-out;
    animation-delay: 0.6s;
}

#blue-purple-bar-8 { 
    animation: wave-height-30 1.4s infinite ease-in-out;
    animation-delay: 0.7s;
}

#blue-purple-bar-9 { 
    animation: wave-height-60 1.4s infinite ease-in-out;
    animation-delay: 0.8s;
}

#blue-purple-bar-10 { 
    animation: wave-height-40 1.4s infinite ease-in-out;
    animation-delay: 0.9s;
}

#blue-purple-bar-11 { 
    animation: wave-height-70 1.4s infinite ease-in-out;
    animation-delay: 1.0s;
}

#blue-purple-bar-12 { 
    animation: wave-height-50 1.4s infinite ease-in-out;
    animation-delay: 1.1s;
}

#blue-purple-bar-13 { 
    animation: wave-height-30 1.4s infinite ease-in-out;
    animation-delay: 1.2s;
}

#blue-purple-bar-14 { 
    animation: wave-height-60 1.4s infinite ease-in-out;
    animation-delay: 1.3s;
}

#blue-purple-bar-15 { 
    animation: wave-height-40 1.4s infinite ease-in-out;
    animation-delay: 0.0s;
}

#blue-purple-bar-16 { 
    animation: wave-height-70 1.4s infinite ease-in-out;
    animation-delay: 0.1s;
}

#blue-purple-bar-17 { 
    animation: wave-height-50 1.4s infinite ease-in-out;
    animation-delay: 0.2s;
}

#blue-purple-bar-18 { 
    animation: wave-height-60 1.4s infinite ease-in-out;
    animation-delay: 0.3s;
}

#blue-purple-bar-19 { 
    animation: wave-height-30 1.4s infinite ease-in-out;
    animation-delay: 0.4s;
}

#blue-purple-bar-20 { 
    animation: wave-height-50 1.4s infinite ease-in-out;
    animation-delay: 0.5s;
}
#blue-purple-bar-21 { 
    animation: wave-height-60 1.4s infinite ease-in-out;
    animation-delay: 0.6s;
}
#blue-purple-bar-22 { 
    animation: wave-height-40 1.4s infinite ease-in-out;
    animation-delay: 0.7s;
}
#blue-purple-bar-23 { 
    animation: wave-height-50 1.4s infinite ease-in-out;
    animation-delay: 0.8s;
}
#blue-purple-bar-24 { 
    animation: wave-height-30 1.4s infinite ease-in-out;
    animation-delay: 0.9s;
}

/* CONVERT NOW BUTTON */
/* Button Color Transition Effect */

/* BUTTON ANIMATION MATCHING WAVE TIMING */

/* Base styles for all buttons with the class */
.btn-color-transition {
    position: relative !important;
    overflow: hidden !important;
    background: #4169E1 !important;
    border: none !important;
    color: #fff !important;
    transition: none !important;
    z-index: 1;
}

/* Animation for all buttons with the class (default behavior) */
.btn-color-transition::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 300%;
    height: 100%;
    background: linear-gradient(45deg, #4169E1, #8A2BE2, #4169E1);
    animation: waveStyleGradient 4s ease-in-out infinite;
    z-index: -1;
}

/* EXCEPTION: Convert button only animates when enabled */
#convert-btn::before {
    display: none; /* Remove default animation */
}

#convert-btn:enabled::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 300%;
    height: 100%;
    background: linear-gradient(45deg, #4169E1, #8A2BE2, #4169E1);
    animation: waveStyleGradient 4s ease-in-out infinite;
    z-index: -1;
    display: block; /* Show animation only when enabled */
}

/* Disabled styling only for convert button */
#convert-btn:disabled {
    background: #86aeea !important;
    opacity: 0.6;
    cursor: not-allowed;
}

/* Hover states for all buttons with the class */
.btn-color-transition:hover,
.btn-color-transition:focus,
.btn-color-transition:active,
.btn-color-transition.active {
    /* background: #87CEEB !important; */
    border: none !important;
    color: #fff !important;
    box-shadow: none !important;
}

.btn-color-transition:hover::before,
.btn-color-transition:focus::before,
.btn-color-transition:active::before,
.btn-color-transition.active::before {
    display: none;
}

/* Special hover handling for convert button when disabled */
#convert-btn:disabled:hover {
    background: #6c757d !important; /* Keep gray on hover when disabled */
}

/* Animation keyframes (unchanged) */
@keyframes waveStyleGradient {
    0% {
        transform: translateX(0);
        opacity: 1;
    }
    50% {
        transform: translateX(33.333%);
        opacity: 0.9;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Alternative direct animation classes (unchanged) */
.btn-color-transition-direct {
    position: relative !important;
    border: none !important;
    color: #fff !important;
    transition: none !important;
    /* background-color: #4169E1 !important; */
    animation: wave-button-color 1.4s ease-in-out infinite !important;
}

@keyframes wave-button-color {
    0% {
        background-color: #4169E1;
    }
    50% {
        background-color: #8A2BE2;
    }
    100% {
        background-color: #4169E1;
    }
}

/* Bootstrap-specific selectors (unchanged for other buttons) */
.btn.btn-primary.btn-lg.btn-color-transition,
.btn.btn-color-transition {
    background: #4169E1 !important;
    border: none !important;
    position: relative !important;
    overflow: hidden !important;
    z-index: 1;
}

.btn.btn-primary.btn-lg.btn-color-transition::before,
.btn.btn-color-transition::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 300%;
    height: 100%;
    background: linear-gradient(45deg, #4169E1, #8A2BE2, #4169E1);
    animation: waveStyleGradient 4s ease-in-out infinite;
    z-index: -1;
}


/* Feature Icons */
.feature-icon {
    font-size: 2rem;
    height: 4rem;
    width: 4rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

/* Process Steps */
.process-step {
    position: relative;
    padding-left: 50px;
    margin-bottom: 1.5rem;
}

.process-step:before {
    content: attr(data-step);
    position: absolute;
    left: 0;
    top: 0;
    width: 36px;
    height: 36px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.process-step:not(:last-child):after {
    content: '';
    position: absolute;
    top: 36px;
    left: 18px;
    height: calc(100% - 36px + 1.5rem);
    width: 2px;
    background-color: var(--border-color);
}

/* File Format Badges */
.format-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: #e9ecef;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--dark-color);
    margin: 0.25rem;
    transition: all 0.2s;
}

/* .format-badge:hover {
    background-color: var(--primary-color);
    color: white;
    cursor: pointer;
} */

/* Progress */
.progress {
    height: 0.75rem;
    background-color: var(--light-color);
    border-radius: 0.5rem;
    overflow: hidden;
}

.progress-bar {
    background-color: var(--primary-color);
}

/* Footer */
.footer {
    background-color: white;
    border-top: 1px solid var(--border-color);
    padding: 1.5rem 0;
    margin-top: auto;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .display-4 {
        font-size: 2rem;
    }
    
    .feature-icon {
        height: 3.5rem;
        width: 3.5rem;
        font-size: 1.5rem;
    }
    
    .card-body {
        padding: 1.25rem;
    }
    
    .file-upload-wrapper {
        padding: 1.5rem;
    }
}

/* Animation effects */
.fade-in {
    animation: fadeIn 1.4s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --primary-color: #4d89ea;
        --light-color: #1e2e42;
        --dark-color: #edf2f9;
        --border-color: #2d3f55;
        --body-bg: #12263f;
        --body-color: #edf2f9;
    }
    
    body {
        background-color: var(--body-bg);
        color: var(--body-color);
    }
    
    .navbar, .card, .footer {
        background-color: #1a2c46;
    }
    
    .text-muted {
        color: #a7b5c5 !important;
    }
    
    .format-badge {
        background-color: #2d3f55;
        color: #edf2f9;
    }
    
    .file-upload-wrapper {
        border-color: #2d3f55;
    }
    
    .alert-light {
        background-color: #1a2c46;
        color: #edf2f9;
        border-color: #2d3f55;
    }
    
    .form-control, .form-select {
        background-color: #1e2e42;
        border-color: #2d3f55;
        color: #edf2f9;
    }
    
    .form-control:focus, .form-select:focus {
        background-color: #1e2e42;
        color: #edf2f9;
    }
}

  /* Gradient divider for headings */
  .heading-with-divider {
    position: relative;     /* Required for absolute positioning of the divider */
    padding-bottom: 0.3rem;  /* Space for the divider */
    margin-bottom: 1.25rem;   /* Space after the divider */
    /* color: #000 !important; */
  }
  
  .heading-with-divider::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(to right, #4169E1, #8A2BE2);
  }
  
  /* Center the divider if heading is centered */
  .heading-with-divider.text-center::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  /* Make divider span full width if needed */
  .heading-with-divider.full-width::after {
    width: 100%;
  }

    /* Gradient divider for headings */
    .heading-with-divider-dark {
        position: relative;     /* Required for absolute positioning of the divider */
        padding-bottom: 0.3rem;  /* Space for the divider */
        margin-bottom: 1.25rem;   /* Space after the divider */
        color: #000 !important;
      }
      
      .heading-with-divider-dark::after {
        content: '';
        position: absolute;
        left: 0;
        bottom: 0;
        width: 50px;
        height: 3px;
        background: linear-gradient(to right, #4169E1, #8A2BE2);
      }
      
      /* Center the divider if heading is centered */
      .heading-with-divider-dark.text-center::after {
        left: 50%;
        transform: translateX(-50%);
      }
      
      /* Make divider span full width if needed */
      .heading-with-divider-dark.full-width::after {
        width: 100%;
      }

  /* Navbar logo styling */
.navbar-logo {
    height: 40px;           /* Adjust height as needed */
    width: auto;            /* Maintain aspect ratio */
    margin-right: 10px;     /* Space between logo and text */
}

/* Alternative sizes for different needs */
.navbar-logo.small {
    height: 30px;
}

.navbar-logo.large {
    height: 50px;
}

/* For logo-only navbar */
.navbar-brand .navbar-logo {
    height: 45px;
    margin-right: 0;        /* No margin if no text */
}

/* For stacked logo and text */
.navbar-brand.d-flex .navbar-logo {
    height: 35px;
    margin-right: 0;
    margin-bottom: 5px;
}

.brand-text {
    font-size: 0.9rem;
    line-height: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .navbar-logo {
        height: 35px;       /* Smaller on mobile */
    }
    
    .brand-text {
        font-size: 0.8rem;  /* Smaller text on mobile */
    }
}

/* Ensure proper alignment */
.navbar-brand {
    display: flex;
    align-items: center;
}

.conversion-card {
    transition: all 0.3s ease;
    background: white;
    border-radius: 0.375rem;
    border: 2px solid #c4a5e1 !important; /* Added visible border */
    position: relative; /* Add this for the pseudo-element */
}

.conversion-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, #4169E1, #8A2BE2);
    border: 2px solid  #8A2BE2 !important;
    border-radius: 0.375rem; /* Same radius as the card */
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1; /* Behind the card content */
}

.conversion-card:hover::before {
    opacity: 0.1; /* Adjust opacity to taste (0.05 for very subtle, 0.2 for more prominent) */
}

.conversion-card:hover {
    transform: translateY(-2px);
    border-color: #8A2BE2 !important; /* Change border color to purple on hover */
    box-shadow: 
        0 0 0 2px #4169E1,
        0 0 0 4px #6A5ACD,
        0 0 0 6px #8A2BE2,
        0 30px 25px rgba(65, 105, 225, 0.15);
}

.conversion-card:hover .fas {
    background: linear-gradient(45deg, #4169E1, #8A2BE2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: hue-rotate(15deg) saturate(1.2);
    transform: scale(1.1);
    transition: all 0.3s ease;
}

/* ERROR STYLING */
/* Error message styling */
.alert {
    padding: 15px 20px;
    margin: 20px auto;
    border-radius: 8px;
    text-align: center;
    max-width: 600px;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.alert-error {
    background-color: rgba(220, 53, 69, 0.15); /* Transparent red */
    border: 1px solid rgba(220, 53, 69, 0.3);
    color: #721c24;
}

.alert-success {
    background-color: rgba(40, 167, 69, 0.15); /* Transparent green */
    border: 1px solid rgba(40, 167, 69, 0.3);
    color: #155724;
}

.alert-warning {
    background-color: rgba(255, 193, 7, 0.15); /* Transparent yellow */
    border: 1px solid rgba(255, 193, 7, 0.3);
    color: #856404;
}

/* Container for messages */
.messages-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin: 20px 0;
}


/* SUCCESS MODAL */
/* Modal Styling */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    border-radius: 12px;
    padding: 0;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

.modal-header {
    padding: 20px 25px 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    color: #28a745;
    font-size: 20px;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

.modal-body {
    padding: 25px;
    text-align: center;
}

.filename {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 6px;
    font-family: monospace;
    margin: 15px 0;
}

.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

.btn {
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: #007bff;
    color: white;
}

.btn-primary:hover {
    background: #0056b3;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* NEW SUCCESS SECTION */

/* Success section styling */
.success-section {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #f8fff9 0%, #e8f8ed 100%);
    border-radius: 12px;
    border: 2px solid #d4edda;
    margin-bottom: 20px;
}

.success-content {
    max-width: 500px;
    margin: 0 auto;
}

.success-icon {
    margin-bottom: 20px;
}

.file-info {
    background: white;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    display: inline-block;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.filename {
    font-family: 'Courier New', monospace;
    font-weight: 500;
    color: #495057;
    margin-left: 8px;
}

.success-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.btn-lg {
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 500;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .success-actions {
        flex-direction: column;
    }
    
    .success-actions .btn {
        width: 100%;
        margin: 5px 0;
    }
}


/* Add white background to navbar-brand */
.navbar-brand {
    background: white !important;
    padding: 8px 16px !important;
    border-radius: 8px !important;
    position: relative;
}

/* Animate the highlight span */
.navbar-brand .highlight {
    background: linear-gradient(45deg, #4169E1, #8A2BE2, #4169E1);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: waveTextGradient 4s ease-in-out infinite;
    font-weight: 900;
    font-size: 2rem;
}

/* Logo container with W-shaped bars */
.logo-color-transition {
    display: inline-flex;
    align-items: flex-end;
    height: 40px;
    gap: 3px;
    padding: 5px;
    margin-top: 10px; /* Add this - adjust value as needed */
    margin-right: 5px;
}

/* Hide the PNG image */
.navbar-logo-mask {
    display: none;
}

/* Base bar styles */
.logo-bar {
    width: 6px;
    border-radius: 3px;
    background-color: #4169E1; /* Blue */
}

/* Individual bar heights and positions to form W shape */
.logo-bar-1 {
    height: 40px; /* Tallest */
    animation: wave-bar-animation 4s infinite ease-in-out;
    animation-delay: 0s;
}

.logo-bar-2 {
    height: 20px; /* Shortest */
    margin-bottom: 5px; /* Raised from bottom */
    animation: wave-bar-animation 4s infinite ease-in-out;
    animation-delay: 0.2s;
}

.logo-bar-3 {
    height: 22px; /* Medium */
    margin-bottom: 11px; /* Slightly raised */
    animation: wave-bar-animation 4s infinite ease-in-out;
    animation-delay: 0.4s;
}

.logo-bar-4 {
    height: 20px; /* Shortest */
    margin-bottom: 5px; /* Raised from bottom */
    animation: wave-bar-animation 4s infinite ease-in-out;
    animation-delay: 0.6s;
}

.logo-bar-5 {
    height: 40px; /* Tallest */
    animation: wave-bar-animation 4s infinite ease-in-out;
    animation-delay: 0.8s;
}

/* Wave animation - color change */
@keyframes wave-bar-animation {
    0%, 100% {
        background-color: #4169E1; /* Blue */
        transform: scaleY(1);
    }
    50% {
        background-color: #8A2BE2; /* Purple */
        
    }
}

/* Text gradient animation */
@keyframes waveTextGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}



.cloud-wrapper {
    display: flex;
    justify-content: center;
    transform: scale(0.6);
    transform-origin: top center;
  }
  

.cloud-upload-icon {
    transform: scale(0.3);
    transform-origin: top center;
    width: 350px;
    height: 75px;
    margin: 0 auto;
    animation: float 3s ease-in-out infinite;
}

.cloud {
    position: relative;
    width: 350px;
    height: 120px;
    background-color: #2C7BE5;
    box-shadow: 10px 10px rgba(0, 0, 0, 0.2);
    border-radius: 100px;
    animation: cloudColorPulse 4s ease-in-out infinite;
}

.cloud::before,
.cloud::after {
    content: "";
    position: absolute;
    background-color: inherit;
    border-radius: 50%;
}

.cloud::before {
    width: 180px;
    height: 180px;
    top: -80px;
    left: 130px;
}

.cloud::after {
    width: 100px;
    height: 100px;
    top: -40px;
    left: 70px;
}

.arrow-up {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 75px;
    height: 80px;
    background: #ffffff; /* stays white */
    clip-path: polygon(50% 0, 100% 50%, 66% 50%, 66% 100%, 34% 100%, 34% 50%, 0 50%);
    animation: arrowBounce 4s ease-in-out infinite;
}

/* Color pulse animation */
/* @keyframes cloudColorPulse {
    0%, 100% {
        background-color: #2C7BE5;
    }
    50% {
        /* background-color: #8A2BE2; 
    }
} */

@keyframes arrowBounce {
    0% {
        transform: translateX(-50%) translateY(0);
        opacity: 0.9;
    }
    50% {
        transform: translateX(-50%) translateY(-5px);
        opacity: 1;
    }
    100% {
        transform: translateX(-50%) translateY(0);
        opacity: 0.9;
    }
}

@keyframes float {
    0%, 100% {
        transform: scale(0.4) translateY(0);
        transform-origin: top center;
    }
    50% {
        transform: scale(0.4) translateY(-20px); /* was -8px */
        transform-origin: top center;
    }
}



.file-info {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    max-width: 800px; /* Increase from 100% to specific width */
    width: 100%;
}

.filename {
    word-wrap: break-word;
    word-break: break-all;
    overflow-wrap: break-word;
    line-height: 1.4;
    flex: 1;
}

.file-info {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    max-width: 850px; /* Increase from 100% to specific width */
    width: 100%;
}

.filename {
    word-wrap: break-word;
    word-break: break-all;
    overflow-wrap: break-word;
    line-height: 1.4;
    flex: 1;
}

.fas {
    margin-top: 2px;
    flex-shrink: 0;
}   


.success-actions {
    width: 100%;
    max-width: 800px; /* Adjust as needed */
    margin: 0 auto; /* Center the container */
}

.success-actions .btn {
    flex: 0 0 auto; /* Don't grow or shrink */
}

.border-purple {
    border-color: #8A2BE2 !important;
}


/* Text color transition styling */
.text-color-transition {
    position: relative;
    display: inline-block;
    font-weight: bold;
    background: linear-gradient(45deg, #4169E1, #8A2BE2);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textColorWave 4s ease-in-out infinite;
}

@keyframes textColorWave {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Fallback for browsers that don't support background-clip: text */
@supports not (-webkit-background-clip: text) {
    .text-color-transition {
        color: #4169E1;
        animation: textColorFallback 4s ease-in-out infinite;
    }
    
    @keyframes textColorFallback {
        0% { color: #4169E1; }
        50% { color: #8A2BE2; }
        100% { color: #4169E1; }
    }
}


.custom-header {
    color: #2c7be5;
    font-weight: 600; /* You can also try 700 for bold */
}