:root {
    --emerald-green: #10b981;
    --dark-green: #064e3b;
    --light-green: #34d399;
    --silver: #e5e7eb;
    --dark-silver: #9ca3af;
    --cyan: #06b6d4;
    --dark-cyan: #0891b2;
    --glass-bg: rgba(16, 185, 129, 0.1);
    --glass-border: rgba(16, 185, 129, 0.2);
    --dark-bg: #111827;
    --darker-bg: #0f172a;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--darker-bg) 0%, var(--dark-bg) 50%, var(--dark-green) 100%);
    min-height: 100vh;
    color: #ffffff;
}

.login-page {
    height: 100vh;
    overflow: hidden;
}

/* Brand Gradient */
.bg-brand-gradient {
    background: linear-gradient(135deg, var(--darker-bg) 0%, var(--dark-green) 30%, var(--emerald-green) 70%, var(--cyan) 100%);
    position: relative;
}

.bg-brand-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.05) 50%, transparent 70%);
    animation: shimmer 3s infinite;
}

/* Enhanced login page navigation buttons */
.login-page .btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.8) !important;
    color: rgba(255, 255, 255, 0.95) !important;
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(10px) !important;
    font-weight: 600 !important;
    padding: 8px 16px !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
}

.login-page .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.25) !important;
    border-color: rgba(255, 255, 255, 1) !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3) !important;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Mobile Responsiveness for Login Page */
@media (max-width: 768px) {
    .login-page {
        height: auto;
        min-height: 100vh;
        overflow-x: hidden;
    }
    
    .login-brand-mobile {
        min-height: 40vh;
        padding: 2rem 1rem;
    }
    
    .login-brand-mobile .display-4 {
        font-size: 2rem !important;
    }
    
    .login-brand-mobile .lead {
        font-size: 1rem;
    }
    
    .login-form-mobile {
        min-height: 60vh;
        padding: 2rem 1rem;
    }
    
    .login-form-mobile .glass-card {
        padding: 2rem !important;
        margin: 0;
        width: 100%;
        max-width: 400px;
    }
    
    .login-brand-mobile .d-flex {
        flex-direction: column !important;
        gap: 0.5rem !important;
    }
    
    .login-brand-mobile .btn-outline-light {
        width: 100%;
        max-width: 200px;
        margin: 0 auto;
    }
    
    /* Stack buttons vertically on mobile */
    .login-form-mobile .text-center .btn {
        display: block;
        width: 100%;
        margin: 0.5rem 0;
    }
    
    .login-form-mobile .text-center .me-2 {
        margin-right: 0 !important;
    }
    
    /* Adjust sound waves for mobile */
    .sound-waves {
        margin-top: 1rem !important;
    }
    
    .wave {
        height: 15px !important;
    }
}

@media (max-width: 576px) {
    .login-brand-mobile {
        min-height: 35vh;
        padding: 1.5rem 1rem;
    }
    
    .login-brand-mobile .display-4 {
        font-size: 1.75rem !important;
    }
    
    .login-brand-mobile .fa-5x {
        font-size: 3rem !important;
    }
    
    .login-form-mobile .glass-card {
        padding: 1.5rem !important;
    }
    
    .login-form-mobile .glass-card h2 {
        font-size: 1.5rem;
    }
    
    /* Adjust form elements for small screens */
    .form-control {
        padding: 0.75rem;
        font-size: 1rem;
    }
    
    .btn {
        padding: 0.75rem 1rem;
        font-size: 1rem;
    }
}

@keyframes pulse {
    0% { 
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(25, 135, 84, 0.7);
    }
    50% { 
        transform: scale(1.05);
        box-shadow: 0 0 0 8px rgba(25, 135, 84, 0);
    }
    100% { 
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(25, 135, 84, 0);
    }
}

/* Notification toast styles */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

.custom-toast {
    min-width: 300px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: white;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.custom-toast.success {
    border-left: 4px solid var(--emerald-green);
}

.custom-toast.error {
    border-left: 4px solid #dc3545;
}

.custom-toast.warning {
    border-left: 4px solid #ffc107;
}

/* Voice completion highlight effect */
.voice-completed-highlight {
    animation: completion-glow 2s ease-out;
}

@keyframes completion-glow {
    0% {
        background-color: transparent;
        box-shadow: none;
    }
    50% {
        background-color: rgba(25, 135, 84, 0.2);
        box-shadow: 0 0 15px rgba(25, 135, 84, 0.5);
    }
    100% {
        background-color: rgba(25, 135, 84, 0.1);
        box-shadow: 0 0 5px rgba(25, 135, 84, 0.3);
    }
}

@keyframes slideInRight {
    0% {
        transform: translateX(100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    0% {
        transform: translateX(0);
        opacity: 1;
    }
    100% {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Enhanced dropdown styling */
.dropdown-menu.glass-card {
    background: rgba(16, 185, 129, 0.1) !important;
    backdrop-filter: blur(15px) !important;
    border: 2px solid rgba(16, 185, 129, 0.3) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
    border-radius: 12px !important;
    padding: 8px !important;
    min-width: 180px !important;
}

.dropdown-menu.glass-card .dropdown-item {
    color: #ffffff !important;
    border-radius: 8px !important;
    padding: 8px 12px !important;
    transition: all 0.3s ease !important;
    font-weight: 500 !important;
}

.dropdown-menu.glass-card .dropdown-item:hover {
    background: rgba(16, 185, 129, 0.2) !important;
    color: var(--light-green) !important;
    transform: translateX(2px) !important;
}

.dropdown-menu.glass-card .dropdown-item:focus {
    background: rgba(16, 185, 129, 0.2) !important;
    color: var(--light-green) !important;
}

.dropdown-menu.glass-card .dropdown-item i {
    color: var(--emerald-green) !important;
}

@keyframes fadeInUp {
    0% {
        transform: translateY(20px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Glass Morphism Cards */
.glass-card {
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 20px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(16, 185, 129, 0.1);
    transition: all 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(16, 185, 129, 0.2);
    border-color: rgba(16, 185, 129, 0.3);
}

/* Glass Input Fields */
.glass-input {
    background: rgba(15, 23, 42, 0.6) !important;
    border: 1px solid rgba(16, 185, 129, 0.3) !important;
    border-radius: 10px !important;
    color: #f8fafc !important;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

/* Script textarea specific styling */
textarea.glass-input {
    max-height: 250px;
    overflow-y: auto;
    resize: vertical;
    min-height: 120px;
}

.glass-input:focus {
    background: rgba(15, 23, 42, 0.8) !important;
    border-color: var(--emerald-green) !important;
    box-shadow: 
        0 0 0 0.2rem rgba(16, 185, 129, 0.25),
        inset 0 0 20px rgba(16, 185, 129, 0.1) !important;
}

.glass-input::placeholder {
    color: var(--dark-silver) !important;
}

/* Buttons */
.btn-emerald {
    background: linear-gradient(135deg, var(--emerald-green), var(--light-green));
    border: none;
    border-radius: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-emerald:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
    background: linear-gradient(135deg, var(--light-green), var(--emerald-green));
}

.btn-outline-emerald {
    border: 2px solid var(--emerald-green);
    color: var(--emerald-green);
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-emerald:hover {
    background: var(--emerald-green);
    border-color: var(--emerald-green);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
}

.btn-outline-cyan {
    border: 2px solid var(--cyan);
    color: var(--cyan);
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-cyan:hover {
    background: var(--cyan);
    border-color: var(--cyan);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(6, 182, 212, 0.3);
}

/* Navigation */
.bg-dark-green {
    background: linear-gradient(135deg, var(--dark-green), var(--emerald-green)) !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Text Colors */
.text-emerald {
    color: var(--emerald-green) !important;
    text-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

.text-cyan {
    color: var(--cyan) !important;
    text-shadow: 0 0 10px rgba(6, 182, 212, 0.3);
}

.text-white {
    color: #ffffff !important;
}

/* Make all text white by default */
p, span, div, label, small, th, td, li, h1, h2, h3, h4, h5, h6, .card-title, .card-text, .list-group-item {
    color: #ffffff !important;
}

/* Admin panel specific white text */
.table th, .table td {
    color: #ffffff !important;
}

/* User management section styling - Dark theme matching glass cards */
#userManagement .table th,
#userManagement .table td {
    color: #ffffff !important;
    background: rgba(15, 23, 42, 0.3) !important;
    border-color: rgba(16, 185, 129, 0.15) !important;
}

#userManagement .table tbody tr {
    background: rgba(15, 23, 42, 0.2) !important;
}

#userManagement .table tbody tr:hover {
    background: rgba(16, 185, 129, 0.15) !important;
}

/* User management specific text - white colors for dark theme */
#userManagement h6,
#userManagement small,
#userManagement .text-info,
#userManagement .text-muted {
    color: #ffffff !important;
}

/* Specific user detail text styling */
#userManagement h6 {
    color: #ffffff !important;
    font-weight: 600;
}

#userManagement small {
    color: #d1d5db !important;
}

/* Override inline styles for user details */
#userManagement [style*="color: #1f2937"],
#userManagement [style*="color: #4b5563"],
#userManagement [style*="color: #6b7280"] {
    color: #ffffff !important;
}

/* Icon colors in user management */
#userManagement .fas.fa-microphone {
    color: var(--cyan) !important;
}

#userManagement .fas.fa-font {
    color: var(--emerald-green) !important;
}

#userManagement .fas.fa-coins {
    color: #fbbf24 !important;
}

/* Keep other admin dashboard text white */
.glass-card h6,
.glass-card small {
    color: #ffffff !important;
}

.badge {
    color: #ffffff !important;
}

/* Table headers and content improved visibility */
.table thead th {
    background-color: rgba(16, 185, 129, 0.2) !important;
    color: #ffffff !important;
    border-bottom: 2px solid #10b981;
}

/* User management table headers - dark theme */
#userManagement .table thead th {
    background: rgba(16, 185, 129, 0.3) !important;
    color: #ffffff !important;
    font-weight: 600;
    border-color: rgba(16, 185, 129, 0.4) !important;
}

/* User management table styling */
#userManagement .table {
    background: rgba(15, 23, 42, 0.4) !important;
    border-color: rgba(16, 185, 129, 0.2) !important;
}

/* User management scrollable container */
#userManagement .scrollable-table-container {
    background: rgba(15, 23, 42, 0.2) !important;
    border-radius: 12px;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

/* User management button styling */
#userManagement .btn-outline-emerald {
    color: #10b981 !important;
    border-color: #10b981 !important;
    background: rgba(16, 185, 129, 0.1) !important;
}

#userManagement .btn-outline-emerald:hover {
    background-color: #10b981 !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
}

#userManagement .btn-outline-warning {
    color: #fbbf24 !important;
    border-color: #f59e0b !important;
    background: rgba(245, 158, 11, 0.1) !important;
}

#userManagement .btn-outline-warning:hover {
    background-color: #f59e0b !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.3);
}

#userManagement .btn-outline-success {
    color: #10b981 !important;
    border-color: #10b981 !important;
    background: rgba(16, 185, 129, 0.1) !important;
}

#userManagement .btn-outline-success:hover {
    background-color: #10b981 !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
}

#userManagement .btn-outline-info {
    color: #60a5fa !important;
    border-color: #3b82f6 !important;
    background: rgba(59, 130, 246, 0.1) !important;
}

#userManagement .btn-outline-info:hover {
    background-color: #3b82f6 !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

#userManagement .btn-outline-danger {
    color: #ef4444 !important;
    border-color: #ef4444 !important;
    background: rgba(239, 68, 68, 0.1) !important;
}

#userManagement .btn-outline-danger:hover {
    background-color: #ef4444 !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.3);
}

.table tbody td {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

/* Admin buttons styling */
.btn-group .btn {
    margin-right: 2px;
}

/* Improve table row visibility */
.table-hover tbody tr:hover {
    background-color: rgba(16, 185, 129, 0.1) !important;
}

/* Keep specific colored text but make them more visible on dark background */
.text-muted {
    color: #d1d5db !important;
}

.text-info {
    color: #60a5fa !important;
}

.text-warning {
    color: #fbbf24 !important;
}

.text-danger {
    color: #ef4444 !important;
}

.text-success {
    color: #10b981 !important;
}

/* Recent Audio Files section - Dark theme matching glass cards */
.recent-audio-section {
    /* No need to override glass-card background - inherit the dark glass theme */
}

.recent-audio-section .table {
    background: rgba(15, 23, 42, 0.4) !important;
    border-color: rgba(16, 185, 129, 0.2) !important;
}

.recent-audio-section .table th,
.recent-audio-section .table td {
    color: #ffffff !important;
    background: rgba(15, 23, 42, 0.3) !important;
    border-color: rgba(16, 185, 129, 0.15) !important;
}

.recent-audio-section .table thead th {
    background: rgba(16, 185, 129, 0.3) !important;
    color: #ffffff !important;
    font-weight: 600;
    border-color: rgba(16, 185, 129, 0.4) !important;
}

.recent-audio-section .table tbody tr {
    background: rgba(15, 23, 42, 0.2) !important;
}

.recent-audio-section .table tbody tr:hover {
    background: rgba(16, 185, 129, 0.15) !important;
}

.recent-audio-section .table td small.text-muted {
    color: #d1d5db !important;
}

.recent-audio-section .badge {
    color: #ffffff !important;
}

/* Recent audio section specific text styling - white text for dark theme */
.recent-audio-section .d-block {
    color: #ffffff !important;
}

/* Download button and action text styling - maintain emerald theme consistency */
.recent-audio-section .btn-group .btn,
.recent-audio-section .btn {
    color: #ffffff !important;
}

.recent-audio-section .btn-outline-success,
.recent-audio-section .btn-outline-info,
.recent-audio-section .btn-outline-danger {
    color: #ffffff !important;
    border-color: rgba(16, 185, 129, 0.5) !important;
}

.recent-audio-section .btn-outline-success:hover {
    background-color: #10b981 !important;
    color: #ffffff !important;
}

.recent-audio-section .btn-outline-info:hover {
    background-color: #3b82f6 !important;
    color: #ffffff !important;
}

.recent-audio-section .btn-outline-danger:hover {
    background-color: #ef4444 !important;
    color: #ffffff !important;
}

/* Specific styling for outline-emerald buttons in recent audio section */
.recent-audio-section .btn-outline-emerald {
    color: #10b981 !important;
    border-color: #10b981 !important;
    background: rgba(16, 185, 129, 0.1) !important;
}

.recent-audio-section .btn-outline-emerald:hover {
    background-color: #10b981 !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
}

/* Specific styling for outline-warning buttons in recent audio section */
.recent-audio-section .btn-outline-warning {
    color: #fbbf24 !important;
    border-color: #f59e0b !important;
    background: rgba(245, 158, 11, 0.1) !important;
}

.recent-audio-section .btn-outline-warning:hover {
    background-color: #f59e0b !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.3);
}

/* Specific styling for outline-info buttons in recent audio section */
.recent-audio-section .btn-outline-info {
    color: #60a5fa !important;
    border-color: #3b82f6 !important;
    background: rgba(59, 130, 246, 0.1) !important;
}

.recent-audio-section .btn-outline-info:hover {
    background-color: #3b82f6 !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

/* Header text styling */
.recent-audio-section h3.text-emerald {
    color: var(--emerald-green) !important;
    text-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

/* Scrollable container styling */
.recent-audio-section .scrollable-table-container {
    background: rgba(15, 23, 42, 0.2) !important;
    border-radius: 12px;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

/* Badges */
.bg-emerald {
    background: linear-gradient(135deg, var(--emerald-green), var(--light-green)) !important;
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.3);
}

/* Enhanced Status Badge Colors for Audio Files */
.recent-audio-section .badge.bg-success {
    background: linear-gradient(135deg, #10b981, #34d399) !important;
    color: #ffffff !important;
    border: 2px solid rgba(16, 185, 129, 0.6) !important;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4) !important;
    font-weight: 700;
    padding: 8px 14px;
    font-size: 0.875rem;
    border-radius: 8px;
    letter-spacing: 0.5px;
    animation: pulse-success 2s infinite;
}

.recent-audio-section .badge.bg-success span {
    color: #ffffff !important;
    font-weight: 700;
}

/* Ensure all completed text is white */
.recent-audio-section .badge.bg-success,
.recent-audio-section .badge.bg-success * {
    color: #ffffff !important;
}

/* Voice Library Play Button Styling */
.voice-card .btn-outline-success,
.voice-card .btn-outline-info,
.voice-card .btn-sm {
    background: rgba(16, 185, 129, 0.15) !important;
    border-color: #10b981 !important;
    color: #10b981 !important;
    font-weight: 600;
    backdrop-filter: blur(8px);
    border-width: 2px !important;
    padding: 6px 12px !important;
    font-size: 0.875rem !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.voice-card .btn-outline-success:hover,
.voice-card .btn-outline-info:hover,
.voice-card .btn-sm:hover {
    background: rgba(16, 185, 129, 0.3) !important;
    border-color: #059669 !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(16, 185, 129, 0.4);
}

.voice-card .btn-outline-success i,
.voice-card .btn-outline-info i {
    color: inherit !important;
}

/* Remove ALL text shadows globally from badges and buttons */
.badge,
.btn,
.recent-audio-section .badge,
.recent-audio-section .btn,
.voice-card .badge,
.voice-card .btn {
    text-shadow: none !important;
}

.badge *,
.btn *,
.recent-audio-section .badge *,
.recent-audio-section .btn *,
.voice-card .badge *,
.voice-card .btn * {
    text-shadow: none !important;
}

/* Voice card styling improvements */
.voice-card {
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(16, 185, 129, 0.2) !important;
    transition: all 0.3s ease;
}

.voice-card:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(16, 185, 129, 0.4) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.15);
}

.recent-audio-section .badge.bg-danger {
    background: linear-gradient(135deg, #ef4444, #f87171) !important;
    color: #ffffff !important;
    border: 2px solid rgba(239, 68, 68, 0.6) !important;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4) !important;
    font-weight: 700;
    padding: 8px 14px;
    font-size: 0.875rem;
    border-radius: 8px;
    letter-spacing: 0.5px;
    animation: pulse-error 2s infinite;
}

.recent-audio-section .badge.bg-danger span {
    color: #ffffff !important;
    font-weight: 700;
}

.recent-audio-section .badge.bg-warning {
    background: linear-gradient(135deg, #10b981, #34d399) !important;
    color: #ffffff !important;
    border: 2px solid rgba(16, 185, 129, 0.6) !important;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4) !important;
    font-weight: 700;
    padding: 8px 14px;
    font-size: 0.875rem;
    border-radius: 8px;
    letter-spacing: 0.5px;
    animation: pulse-processing 2s infinite;
}

.recent-audio-section .badge.bg-warning span {
    color: #ffffff !important;
    font-weight: 700;
}

/* Processing status specific styling */
.recent-audio-section .progress-bar.bg-warning {
    background: linear-gradient(135deg, #10b981, #34d399) !important;
    animation: progress-glow 2s infinite;
}

.recent-audio-section .text-warning {
    color: #10b981 !important;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

/* Download button styling - Light blue overlay */
.recent-audio-section .btn-outline-emerald:contains('Download'),
.recent-audio-section a.btn-outline-emerald {
    background: rgba(147, 197, 253, 0.15) !important;
    border-color: #93c5fd !important;
    color: #e0f2fe !important;
    backdrop-filter: blur(10px);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
    font-weight: 500;
}

.recent-audio-section .btn-outline-emerald:contains('Download'):hover,
.recent-audio-section a.btn-outline-emerald:hover {
    background: rgba(147, 197, 253, 0.3) !important;
    border-color: #60a5fa !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(147, 197, 253, 0.3);
}

@keyframes pulse-success {
    0%, 100% { 
        box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 6px 25px rgba(16, 185, 129, 0.6);
        transform: scale(1.05);
    }
}

@keyframes pulse-error {
    0%, 100% { 
        box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 6px 25px rgba(239, 68, 68, 0.6);
        transform: scale(1.05);
    }
}

@keyframes pulse-processing {
    0%, 100% { 
        box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 6px 25px rgba(16, 185, 129, 0.6);
        transform: scale(1.05);
    }
}

@keyframes progress-glow {
    0%, 100% { 
        box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
    }
    50% { 
        box-shadow: 0 0 20px rgba(16, 185, 129, 0.8);
    }
}

/* Sound Wave Animation */
.sound-wave {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

/* Animated Sound Waves */
.sound-waves {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 60px;
}

.wave {
    width: 4px;
    background: linear-gradient(to top, var(--emerald-green), var(--cyan));
    margin: 0 2px;
    border-radius: 2px;
}

.wave1 { height: 20px; animation: wave-animation 1s infinite ease-in-out 0.1s; }
.wave2 { height: 35px; animation: wave-animation 1s infinite ease-in-out 0.2s; }
.wave3 { height: 50px; animation: wave-animation 1s infinite ease-in-out 0.3s; }
.wave4 { height: 35px; animation: wave-animation 1s infinite ease-in-out 0.4s; }

@keyframes wave-animation {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(0.3); }
}

/* Upload Area */
.upload-area {
    border: 2px dashed rgba(16, 185, 129, 0.5);
    border-radius: 15px;
    background: rgba(16, 185, 129, 0.05);
    transition: all 0.3s ease;
    cursor: pointer;
}

.upload-area:hover {
    border-color: var(--emerald-green);
    background: rgba(16, 185, 129, 0.1);
}

.upload-area.drag-over {
    border-color: var(--cyan);
    background: rgba(6, 182, 212, 0.1);
    transform: scale(1.02);
}

/* Audio Player */
.audio-player {
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

/* Voice Cards */
.voice-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(16, 185, 129, 0.2) !important;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.voice-card:hover {
    border-color: rgba(16, 185, 129, 0.5) !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Voice Library specific text styling */
.voice-card h5,
.voice-card p,
.voice-card small,
.voice-card code {
    color: #ffffff !important;
}

.voice-card .text-emerald {
    color: var(--emerald-green) !important;
    text-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

.voice-card .text-cyan {
    color: var(--cyan) !important;
    text-shadow: 0 0 10px rgba(6, 182, 212, 0.3);
}

.voice-card .text-muted {
    color: #d1d5db !important;
}

.voice-card code {
    background: rgba(16, 185, 129, 0.2) !important;
    color: #ffffff !important;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.875em;
}

/* Audio controls styling in voice cards */
.voice-card audio {
    background: rgba(15, 23, 42, 0.8);
    border-radius: 8px;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

/* Global Voice Library section */
.glass-card {
    background: rgba(15, 23, 42, 0.7) !important;
    backdrop-filter: blur(20px) !important;
}

.glass-card h3,
.glass-card p,
.glass-card div,
.glass-card span {
    color: #ffffff !important;
}

.glass-card .text-emerald {
    color: var(--emerald-green) !important;
    text-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

.glass-card .text-muted {
    color: #d1d5db !important;
}

/* Voice Library container overrides */
.voice-library-container * {
    color: #ffffff !important;
}

.voice-library-container .text-emerald {
    color: var(--emerald-green) !important;
}

.voice-library-container .text-muted {
    color: #d1d5db !important;
}

/* Force all elements in voice library to have proper styling */
body .container .glass-card,
body .container .glass-card *,
body .container .voice-card,
body .container .voice-card * {
    background: rgba(15, 23, 42, 0.7) !important;
    color: #ffffff !important;
    border-color: rgba(16, 185, 129, 0.2) !important;
}

/* Override Bootstrap defaults specifically for voice library */
body .glass-card {
    background: rgba(15, 23, 42, 0.7) !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(16, 185, 129, 0.2) !important;
    border-radius: 20px !important;
}

body .glass-card .text-center {
    background: transparent !important;
}

body .glass-card p,
body .glass-card div,
body .glass-card span,
body .glass-card h1,
body .glass-card h2,
body .glass-card h3,
body .glass-card h4,
body .glass-card h5 {
    color: #ffffff !important;
    background: transparent !important;
}

/* Active status badge styling */
.voice-card .badge.bg-success {
    background: rgba(34, 197, 94, 0.9) !important;
    color: #ffffff !important;
    border: 1px solid rgba(34, 197, 94, 0.5);
    backdrop-filter: blur(10px);
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.3);
    animation: pulse-green 2s infinite;
}

/* Personal voice badge styling */
.voice-card .badge.bg-info {
    background: rgba(6, 182, 212, 0.9) !important;
    color: #ffffff !important;
    border: 1px solid rgba(6, 182, 212, 0.5);
    backdrop-filter: blur(10px);
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.3);
}

@keyframes pulse-green {
    0%, 100% { 
        box-shadow: 0 0 10px rgba(34, 197, 94, 0.3);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 0 20px rgba(34, 197, 94, 0.5);
        transform: scale(1.05);
    }
}

/* Voice Library button styling improvements */
.voice-actions .btn {
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.voice-actions .btn-outline-emerald {
    border-color: var(--emerald-green) !important;
    color: var(--emerald-green) !important;
    background: rgba(16, 185, 129, 0.1);
}

/* Enhanced Checkbox Styling */
.checkbox-wrapper {
    position: relative;
    padding: 12px;
    border-radius: 12px;
    background: rgba(16, 185, 129, 0.05);
    border: 1px solid rgba(16, 185, 129, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
}

.checkbox-wrapper:hover {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.4);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.2);
}

.checkbox-wrapper .form-check-input {
    width: 1.5rem;
    height: 1.5rem;
    margin-top: 0;
    background-color: rgba(15, 23, 42, 0.8) !important;
    border: 2px solid rgba(16, 185, 129, 0.5) !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-wrapper .form-check-input:focus {
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.5) !important;
    border-color: var(--emerald-green) !important;
}

.checkbox-wrapper .form-check-input:checked {
    background-color: var(--emerald-green) !important;
    border-color: var(--emerald-green) !important;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.4) !important;
}

.checkbox-wrapper .form-check-input:checked::before {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    font-weight: 900;
    font-size: 1.1rem;
}

.clickable-label {
    cursor: pointer !important;
    color: #ffffff !important;
    margin-left: 0.5rem;
    user-select: none;
    flex: 1;
}

.checkbox-wrapper .clickable-label:hover {
    color: var(--light-green) !important;
}

.checkbox-wrapper .text-muted {
    margin-left: 0.5rem !important;
    color: #d1d5db !important;
    font-size: 0.875rem;
}

/* Ensure checkbox is always interactive */
.form-check {
    display: flex !important;
    align-items: flex-start !important;
    min-height: auto !important;
}

.form-check-input[type="checkbox"] {
    flex-shrink: 0 !important;
    pointer-events: all !important;
    z-index: 10 !important;
}

/* Checked state for checkbox wrapper */
.checkbox-wrapper.checked {
    background: rgba(16, 185, 129, 0.15) !important;
    border-color: rgba(16, 185, 129, 0.6) !important;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.25) !important;
}

/* Specific download button styling for better light blue overlay */
.recent-audio-section a.btn-outline-emerald[href*="download"] {
    background: rgba(59, 130, 246, 0.2) !important;
    border-color: #3b82f6 !important;
    color: #ffffff !important;
    backdrop-filter: blur(15px);
    font-weight: 600;
    border-width: 2px !important;
    padding: 6px 12px !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.25);
}

.recent-audio-section a.btn-outline-emerald[href*="download"]:hover {
    background: rgba(59, 130, 246, 0.35) !important;
    border-color: #2563eb !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.5);
}

.recent-audio-section a.btn-outline-emerald[href*="download"] i {
    color: #ffffff !important;
}

.recent-audio-section a.btn-outline-emerald[href*="download"]:hover i {
    color: #ffffff !important;
}

.recent-audio-section a.btn-outline-emerald[href*="download"] span {
    color: #ffffff !important;
    font-weight: 600;
}

.voice-actions .btn-outline-emerald:hover {
    background: rgba(16, 185, 129, 0.2);
    border-color: var(--emerald-green) !important;
    color: #ffffff !important;
    transform: translateY(-1px);
}

.voice-actions .btn-outline-info {
    border-color: var(--cyan) !important;
    color: var(--cyan) !important;
    background: rgba(6, 182, 212, 0.1);
}

.voice-actions .btn-outline-info:hover {
    background: rgba(6, 182, 212, 0.2);
    border-color: var(--cyan) !important;
    color: #ffffff !important;
    transform: translateY(-1px);
}

.voice-actions .btn-outline-success {
    border-color: rgba(34, 197, 94, 1) !important;
    color: rgba(34, 197, 94, 1) !important;
    background: rgba(34, 197, 94, 0.1);
}

.voice-actions .btn-outline-success:hover {
    background: rgba(34, 197, 94, 0.2);
    color: #ffffff !important;
    transform: translateY(-1px);
}

/* Sample audio section styling */
.sample-audio-section {
    background: rgba(6, 182, 212, 0.08);
    border: 1px solid rgba(6, 182, 212, 0.3);
    border-radius: 10px;
    padding: 10px;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(6, 182, 212, 0.1);
}

.sample-audio-section small {
    color: var(--cyan) !important;
    text-shadow: 0 0 8px rgba(6, 182, 212, 0.6);
    font-weight: 500;
}

.sample-audio-section audio {
    border-radius: 6px;
    backdrop-filter: blur(5px);
    background: rgba(15, 23, 42, 0.3);
}

.sample-audio-section audio::-webkit-media-controls-panel {
    background: rgba(15, 23, 42, 0.8);
}

/* Enhanced voice card styling */
.voice-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(16, 185, 129, 0.2) !important;
}

.voice-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.4) !important;
}

/* Download section improvements with overlay */
.recent-audio-section .table,
.recent-audio-section .btn,
.recent-audio-section .progress,
.recent-audio-section .badge {
    backdrop-filter: blur(15px);
    border: 1px solid rgba(16, 185, 129, 0.2) !important;
}

.recent-audio-section .btn {
    color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    background: rgba(15, 23, 42, 0.9) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    transition: all 0.3s ease;
}

.recent-audio-section .btn:hover {
    background: rgba(15, 23, 42, 1) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.3) !important;
}

.recent-audio-section .btn-success {
    background: rgba(34, 197, 94, 0.9) !important;
    border-color: rgba(34, 197, 94, 0.6) !important;
    color: #ffffff !important;
}

.recent-audio-section .btn-success:hover {
    background: rgba(34, 197, 94, 1) !important;
    border-color: rgba(34, 197, 94, 0.8) !important;
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.4);
}

.recent-audio-section .btn-primary {
    background: rgba(16, 185, 129, 0.9) !important;
    border-color: rgba(16, 185, 129, 0.6) !important;
    color: #ffffff !important;
}

.recent-audio-section .btn-primary:hover {
    background: rgba(16, 185, 129, 1) !important;
    border-color: rgba(16, 185, 129, 0.8) !important;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
}

.recent-audio-section .btn-warning {
    background: rgba(245, 158, 11, 0.9) !important;
    border-color: rgba(245, 158, 11, 0.6) !important;
    color: #ffffff !important;
}

.recent-audio-section .btn-warning:hover {
    background: rgba(245, 158, 11, 1) !important;
    border-color: rgba(245, 158, 11, 0.8) !important;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.4);
}

.recent-audio-section .btn-danger {
    background: rgba(239, 68, 68, 0.9) !important;
    border-color: rgba(239, 68, 68, 0.6) !important;
    color: #ffffff !important;
}

.recent-audio-section .btn-danger:hover {
    background: rgba(239, 68, 68, 1) !important;
    border-color: rgba(239, 68, 68, 0.8) !important;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.4);
}

.recent-audio-section .btn-info {
    background: rgba(6, 182, 212, 0.9) !important;
    border-color: rgba(6, 182, 212, 0.6) !important;
    color: #ffffff !important;
}

.recent-audio-section .btn-info:hover {
    background: rgba(6, 182, 212, 1) !important;
    border-color: rgba(6, 182, 212, 0.8) !important;
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.4);
}

/* Dashboard button improvements */
.btn-outline-warning {
    border: 1px solid rgba(245, 158, 11, 0.6) !important;
    color: rgba(245, 158, 11, 1) !important;
    background: rgba(245, 158, 11, 0.1) !important;
    backdrop-filter: blur(10px);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
    transition: all 0.3s ease;
}

.btn-outline-warning:hover {
    background: rgba(245, 158, 11, 0.2) !important;
    border-color: rgba(245, 158, 11, 0.8) !important;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.btn-outline-emerald {
    border: 1px solid rgba(16, 185, 129, 0.6) !important;
    color: rgba(16, 185, 129, 1) !important;
    background: rgba(16, 185, 129, 0.1) !important;
    backdrop-filter: blur(10px);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
    transition: all 0.3s ease;
}

.btn-outline-emerald:hover {
    background: rgba(16, 185, 129, 0.2) !important;
    border-color: rgba(16, 185, 129, 0.8) !important;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-outline-cyan {
    border: 1px solid rgba(6, 182, 212, 0.6) !important;
    color: rgba(6, 182, 212, 1) !important;
    background: rgba(6, 182, 212, 0.1) !important;
    backdrop-filter: blur(10px);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
    transition: all 0.3s ease;
}

.btn-outline-cyan:hover {
    background: rgba(6, 182, 212, 0.2) !important;
    border-color: rgba(6, 182, 212, 0.8) !important;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
}

/* Form check styling improvements for Speaker Boost and Generate Subtitles */
.form-check {
    backdrop-filter: blur(10px);
    background: rgba(15, 23, 42, 0.3);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 8px;
    padding: 10px 15px;
    transition: all 0.3s ease;
}

.form-check:hover {
    background: rgba(15, 23, 42, 0.5);
    border-color: rgba(16, 185, 129, 0.4);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.1);
}

.form-check-input {
    background: rgba(15, 23, 42, 0.8) !important;
    border: 2px solid rgba(16, 185, 129, 0.5) !important;
    backdrop-filter: blur(5px);
}

.form-check-input:checked {
    background: rgba(16, 185, 129, 0.8) !important;
    border-color: rgba(16, 185, 129, 1) !important;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

.form-check-input:focus {
    border-color: rgba(16, 185, 129, 0.8) !important;
    box-shadow: 0 0 0 0.2rem rgba(16, 185, 129, 0.25) !important;
}

.form-check-label {
    color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
    cursor: pointer;
}

/* Main buttons styling */
.btn-emerald {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.8), rgba(16, 185, 129, 0.9)) !important;
    border: 1px solid rgba(16, 185, 129, 0.6) !important;
    color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.2);
    transition: all 0.3s ease;
}

.btn-emerald:hover {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.9), rgba(16, 185, 129, 1)) !important;
    border-color: rgba(16, 185, 129, 0.8) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3);
}

/* Progress bar styling */
.progress {
    background: rgba(15, 23, 42, 0.5) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 10px;
}

.bg-emerald {
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.8), rgba(16, 185, 129, 0.9)) !important;
}

/* Progress Bar */
.progress {
    height: 25px;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.8);
    overflow: hidden;
}

.progress-bar {
    border-radius: 12px;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Tables */
.table {
    background: rgba(15, 23, 42, 0.3);
    border-radius: 15px;
    overflow: hidden;
}

.table th {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.2);
    font-weight: 600;
    color: var(--emerald-green);
}

.table td {
    border-color: rgba(16, 185, 129, 0.1);
}

.table-hover tbody tr:hover {
    background: rgba(16, 185, 129, 0.05);
}

/* Scrollable table container */
.scrollable-table-container {
    max-height: 500px;
    overflow-y: auto;
    background: rgba(15, 23, 42, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.scrollable-table-container .table {
    margin-bottom: 0;
    background: transparent;
    border-radius: 0;
}

.scrollable-table-container .table thead th {
    position: sticky;
    top: 0;
    background: rgba(16, 185, 129, 0.15);
    backdrop-filter: blur(15px);
    border-bottom: 2px solid rgba(16, 185, 129, 0.3);
    z-index: 10;
}

/* Custom scrollbar for theme consistency */
.scrollable-table-container::-webkit-scrollbar {
    width: 8px;
}

.scrollable-table-container::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.3);
    border-radius: 4px;
}

.scrollable-table-container::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--emerald-green), var(--cyan));
    border-radius: 4px;
    transition: all 0.3s ease;
}

.scrollable-table-container::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--light-green), var(--emerald-green));
}

/* Firefox scrollbar styling */
.scrollable-table-container {
    scrollbar-width: thin;
    scrollbar-color: var(--emerald-green) rgba(15, 23, 42, 0.3);
}

/* Balance Display */
.balance-display {
    animation: glow 2s infinite alternate;
}

@keyframes glow {
    from { text-shadow: 0 0 10px rgba(16, 185, 129, 0.5); }
    to { text-shadow: 0 0 20px rgba(16, 185, 129, 0.8); }
}

/* Modals */
.modal-content.bg-dark {
    background: rgba(15, 23, 42, 0.95) !important;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 20px;
}

/* Range Sliders */
.form-range {
    background: transparent;
}

.form-range::-webkit-slider-track {
    background: rgba(16, 185, 129, 0.2);
    border-radius: 10px;
    height: 6px;
}

.form-range::-webkit-slider-thumb {
    background: var(--emerald-green);
    border: none;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
    height: 20px;
    width: 20px;
}

.form-range::-moz-range-track {
    background: rgba(16, 185, 129, 0.2);
    border-radius: 10px;
    height: 6px;
}

.form-range::-moz-range-thumb {
    background: var(--emerald-green);
    border: none;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
    height: 20px;
    width: 20px;
}

/* Notification Container */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 400px;
    pointer-events: none;
}

/* Professional Alerts */
.alert {
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 12px;
    color: #f8fafc;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.3s ease-out;
}

.alert-success {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.4);
    color: #34d399;
}

.alert-info {
    background: rgba(6, 182, 212, 0.15);
    border-color: rgba(6, 182, 212, 0.4);
    color: #06b6d4;
}

.alert-warning {
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.4);
    color: #fbbf24;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.4);
    color: #f87171;
}

/* Responsive Design */
@media (max-width: 768px) {
    .glass-card {
        border-radius: 15px;
        margin: 10px;
        padding: 20px !important;
    }
    
    .brand-logo i {
        font-size: 3rem !important;
    }
    
    .display-4 {
        font-size: 2rem !important;
    }
    
    .sound-waves {
        height: 40px;
    }
    
    .wave1 { height: 15px; }
    .wave2 { height: 25px; }
    .wave3 { height: 35px; }
    .wave4 { height: 25px; }
    
    /* Mobile navbar improvements */
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .balance-display {
        margin-top: 10px;
    }
    
    /* Mobile form improvements */
    .form-control, .form-select {
        font-size: 16px !important; /* Prevents zoom on iOS */
        padding: 12px 15px;
    }
    
    textarea.form-control {
        min-height: 120px;
        max-height: 200px;
        overflow-y: auto;
        resize: vertical;
    }
    
    /* Mobile button improvements */
    .btn {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .btn-lg {
        padding: 15px 25px;
        font-size: 16px;
    }
    
    /* Mobile dashboard improvements */
    .dashboard-stats .col-md-3 {
        margin-bottom: 15px;
    }
    
    /* Mobile table improvements */
    .table-responsive {
        font-size: 14px;
    }
    
    .table th, .table td {
        padding: 8px 4px;
        white-space: nowrap;
    }
    
    /* Hide less important columns on mobile */
    .table .d-none-mobile {
        display: none !important;
    }
    
    /* Mobile scrollable container adjustments */
    .scrollable-table-container {
        max-height: 350px;
        font-size: 14px;
    }
    
    .scrollable-table-container::-webkit-scrollbar {
        width: 6px;
    }
    
    /* Mobile audio player */
    .custom-audio-controls {
        flex-direction: column;
        gap: 10px;
    }
    
    .custom-audio-controls .d-flex {
        flex-wrap: wrap;
        gap: 5px;
    }
    
    .volume-control {
        width: 100% !important;
        margin-top: 10px;
    }
    
    /* Mobile voice cards */
    .voice-card {
        margin-bottom: 15px;
    }
    
    /* Mobile upload area */
    .upload-area {
        padding: 20px 10px;
    }
    
    .upload-area .fa-3x {
        font-size: 2rem !important;
    }
    
    /* Mobile progress bar */
    .progress {
        height: 30px;
        font-size: 14px;
    }
    
    /* Mobile range sliders */
    .form-range {
        margin: 10px 0;
    }
    
    /* Mobile modal improvements */
    .modal-dialog {
        margin: 10px;
        max-width: calc(100% - 20px);
    }
    
    .modal-body {
        padding: 15px;
    }
}

/* Small mobile phones */
@media (max-width: 480px) {
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .glass-card {
        margin: 5px;
        padding: 15px !important;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.2rem;
    }
    
    .btn {
        padding: 10px 15px;
        font-size: 13px;
    }
    
    .navbar-brand {
        font-size: 1rem;
    }
    
    /* Stack voice parameter sliders vertically on very small screens */
    .voice-params-mobile .col-md-3 {
        margin-bottom: 15px;
    }
    
    /* Simplify login layout for very small screens */
    .login-page .col-md-6 {
        padding: 10px;
    }
    
    /* Hide brand side on very small screens */
    .login-brand-mobile {
        display: none;
    }
    
    .login-form-mobile {
        width: 100%;
    }
}

/* Footer */
footer {
    margin-top: auto;
    background: linear-gradient(135deg, var(--dark-green), var(--darker-bg)) !important;
    border-top: 1px solid rgba(16, 185, 129, 0.2);
}

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

::-webkit-scrollbar-track {
    background: var(--darker-bg);
}

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

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

/* Loading Animation */
.fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
