/* Dark Mode Styles */

/* Base dark mode styles */
.dark {
    color-scheme: dark;
}

/* Form elements */
.dark input[type="text"],
.dark input[type="email"],
.dark input[type="password"],
.dark input[type="number"],
.dark input[type="search"],
.dark textarea,
.dark select {
    background-color: #1e293b;
    border-color: #475569;
    color: #e2e8f0;
}

.dark input[type="text"]:focus,
.dark input[type="email"]:focus,
.dark input[type="password"]:focus,
.dark input[type="number"]:focus,
.dark input[type="search"]:focus,
.dark textarea:focus,
.dark select:focus {
    background-color: #334155;
    border-color: #3b82f6;
    color: #f8fafc;
}

.dark input::placeholder,
.dark textarea::placeholder {
    color: #94a3b8;
}

/* Buttons */
.dark .btn-primary {
    background-color: #3b82f6;
    border-color: #3b82f6;
    color: #ffffff;
}

.dark .btn-primary:hover {
    background-color: #2563eb;
    border-color: #2563eb;
}

.dark .btn-secondary {
    background-color: #64748b;
    border-color: #64748b;
    color: #ffffff;
}

.dark .btn-secondary:hover {
    background-color: #475569;
    border-color: #475569;
}

.dark .btn-outline {
    background-color: transparent;
    border-color: #64748b;
    color: #e2e8f0;
}

.dark .btn-outline:hover {
    background-color: #64748b;
    color: #ffffff;
}

/* Cards */
.dark .card {
    background-color: #1e293b;
    border-color: #334155;
}

.dark .card-header {
    background-color: #334155;
    border-bottom-color: #475569;
}

/* Tables */
.dark table {
    background-color: #1e293b;
}

.dark th {
    background-color: #334155;
    border-color: #475569;
    color: #e2e8f0;
}

.dark td {
    border-color: #475569;
    color: #cbd5e1;
}

.dark tr:hover {
    background-color: #334155;
}

/* Modals */
.dark .modal-content {
    background-color: #1e293b;
    border-color: #475569;
}

.dark .modal-header {
    border-bottom-color: #475569;
}

.dark .modal-footer {
    border-top-color: #475569;
}

/* Dropdowns */
.dark .dropdown-menu {
    background-color: #1e293b;
    border-color: #475569;
}

.dark .dropdown-item {
    color: #e2e8f0;
}

.dark .dropdown-item:hover {
    background-color: #334155;
    color: #ffffff;
}

/* Alerts */
.dark .alert-success {
    background-color: #065f46;
    border-color: #047857;
    color: #d1fae5;
}

.dark .alert-danger {
    background-color: #7f1d1d;
    border-color: #991b1b;
    color: #fecaca;
}

.dark .alert-warning {
    background-color: #78350f;
    border-color: #92400e;
    color: #fef3c7;
}

.dark .alert-info {
    background-color: #1e3a8a;
    border-color: #1d4ed8;
    color: #dbeafe;
}

/* Badges */
.dark .badge-primary {
    background-color: #3b82f6;
    color: #ffffff;
}

.dark .badge-secondary {
    background-color: #64748b;
    color: #ffffff;
}

.dark .badge-success {
    background-color: #10b981;
    color: #ffffff;
}

.dark .badge-danger {
    background-color: #ef4444;
    color: #ffffff;
}

.dark .badge-warning {
    background-color: #f59e0b;
    color: #ffffff;
}

/* Progress bars */
.dark .progress {
    background-color: #334155;
}

.dark .progress-bar {
    background-color: #3b82f6;
}

/* Pagination */
.dark .pagination .page-link {
    background-color: #1e293b;
    border-color: #475569;
    color: #e2e8f0;
}

.dark .pagination .page-link:hover {
    background-color: #334155;
    border-color: #64748b;
    color: #ffffff;
}

.dark .pagination .page-item.active .page-link {
    background-color: #3b82f6;
    border-color: #3b82f6;
    color: #ffffff;
}

.dark .pagination .page-item.disabled .page-link {
    background-color: #1e293b;
    border-color: #475569;
    color: #64748b;
}

/* Tooltips */
.dark .tooltip-inner {
    background-color: #1e293b;
    color: #e2e8f0;
}

.dark .tooltip.bs-tooltip-top .arrow::before {
    border-top-color: #1e293b;
}

.dark .tooltip.bs-tooltip-bottom .arrow::before {
    border-bottom-color: #1e293b;
}

.dark .tooltip.bs-tooltip-left .arrow::before {
    border-left-color: #1e293b;
}

.dark .tooltip.bs-tooltip-right .arrow::before {
    border-right-color: #1e293b;
}

/* Popovers */
.dark .popover {
    background-color: #1e293b;
    border-color: #475569;
}

.dark .popover-header {
    background-color: #334155;
    border-bottom-color: #475569;
    color: #e2e8f0;
}

.dark .popover-body {
    color: #cbd5e1;
}

/* Code blocks */
.dark pre {
    background-color: #0f172a;
    border-color: #475569;
    color: #e2e8f0;
}

.dark code {
    background-color: #334155;
    color: #f1f5f9;
}

/* Links */
.dark a {
    color: #3b82f6;
}

.dark a:hover {
    color: #60a5fa;
}

/* Text colors */
.dark .text-muted {
    color: #94a3b8 !important;
}

.dark .text-secondary {
    color: #64748b !important;
}

/* Background utilities */
.dark .bg-light {
    background-color: #334155 !important;
}

.dark .bg-white {
    background-color: #1e293b !important;
}

/* Border utilities */
.dark .border {
    border-color: #475569 !important;
}

.dark .border-light {
    border-color: #64748b !important;
}

/* Shadow utilities */
.dark .shadow {
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.3), 0 1px 2px 0 rgba(0, 0, 0, 0.2) !important;
}

.dark .shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2) !important;
}

/* Custom scrollbar for dark mode */
.dark ::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.dark ::-webkit-scrollbar-track {
    background: #1e293b;
}

.dark ::-webkit-scrollbar-thumb {
    background: #475569;
    border-radius: 4px;
}

.dark ::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* Firefox scrollbar */
.dark {
    scrollbar-width: thin;
    scrollbar-color: #475569 #1e293b;
}

/* Focus styles */
.dark *:focus {
    outline-color: #3b82f6;
}

/* Selection */
.dark ::selection {
    background-color: #3b82f6;
    color: #ffffff;
}

.dark ::-moz-selection {
    background-color: #3b82f6;
    color: #ffffff;
}

/* Loading spinners */
.dark .spinner-border {
    border-color: #475569;
    border-top-color: #3b82f6;
}

.dark .spinner-grow {
    background-color: #3b82f6;
}

/* Custom components */
.dark .video-card {
    background-color: #1e293b;
    border-color: #475569;
}

.dark .video-card:hover {
    background-color: #334155;
}

.dark .user-card {
    background-color: #1e293b;
    border-color: #475569;
}

.dark .user-card:hover {
    background-color: #334155;
}

.dark .stats-card {
    background-color: #1e293b;
    border-color: #475569;
}

.dark .stats-card .stat-value {
    color: #e2e8f0;
}

.dark .stats-card .stat-label {
    color: #94a3b8;
}

/* Form validation */
.dark .is-valid {
    border-color: #10b981 !important;
}

.dark .is-invalid {
    border-color: #ef4444 !important;
}

.dark .valid-feedback {
    color: #d1fae5;
}

.dark .invalid-feedback {
    color: #fecaca;
}

/* Custom animations for dark mode */
@keyframes darkModeFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dark .animate-fade-in {
    animation: darkModeFadeIn 0.3s ease-out;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .dark {
        --dark-bg: #000000;
        --dark-surface: #1a1a1a;
        --dark-border: #404040;
        --dark-text: #ffffff;
        --dark-text-secondary: #cccccc;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .dark * {
        transition: none !important;
        animation: none !important;
    }
}

/* ===== COMPREHENSIVE DARK MODE FIXES ===== */

/* Page backgrounds */
.dark .bg-gray-50 {
    background-color: #0f172a !important;
}

/* Custom dark background classes */
.dark .bg-dark-900 {
    background-color: #0f172a !important;
}

.dark .bg-dark-800 {
    background-color: #1e293b !important;
}

.dark .bg-dark-700 {
    background-color: #334155 !important;
}

.dark .bg-dark-600 {
    background-color: #475569 !important;
}

.dark .bg-gray-100 {
    background-color: #1e293b !important;
}

.dark .bg-gray-200 {
    background-color: #334155 !important;
}

.dark .bg-gray-300 {
    background-color: #475569 !important;
}

.dark .bg-gray-400 {
    background-color: #64748b !important;
}

.dark .bg-gray-500 {
    background-color: #94a3b8 !important;
}

.dark .bg-gray-600 {
    background-color: #cbd5e1 !important;
}

.dark .bg-gray-700 {
    background-color: #e2e8f0 !important;
}

.dark .bg-gray-800 {
    background-color: #f1f5f9 !important;
}

.dark .bg-gray-900 {
    background-color: #f8fafc !important;
}

/* Text colors */
.dark .text-gray-50 {
    color: #f8fafc !important;
}

.dark .text-gray-100 {
    color: #f1f5f9 !important;
}

.dark .text-gray-200 {
    color: #e2e8f0 !important;
}

.dark .text-gray-300 {
    color: #cbd5e1 !important;
}

.dark .text-gray-400 {
    color: #94a3b8 !important;
}

.dark .text-gray-500 {
    color: #64748b !important;
}

.dark .text-gray-600 {
    color: #475569 !important;
}

.dark .text-gray-700 {
    color: #334155 !important;
}

.dark .text-gray-800 {
    color: #1e293b !important;
}

.dark .text-gray-900 {
    color: #0f172a !important;
}

/* Custom dark text color classes */
.dark .text-dark-100 {
    color: #f8fafc !important;
}

.dark .text-dark-200 {
    color: #e2e8f0 !important;
}

.dark .text-dark-300 {
    color: #cbd5e1 !important;
}

.dark .text-dark-400 {
    color: #94a3b8 !important;
}

.dark .text-dark-600 {
    color: #475569 !important;
}

.dark .text-dark-700 {
    color: #334155 !important;
}

.dark .text-dark-800 {
    color: #1e293b !important;
}

.dark .text-dark-900 {
    color: #0f172a !important;
}

/* Gradient backgrounds */
.dark .bg-gradient-to-br {
    background-image: linear-gradient(to bottom right, #0f172a, #1e293b) !important;
}

.dark .bg-gradient-to-r {
    background-image: linear-gradient(to right, #0f172a, #1e293b) !important;
}

.dark .from-gray-50 {
    --tw-gradient-from: #0f172a !important;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(15, 23, 42, 0)) !important;
}

.dark .from-gray-100 {
    --tw-gradient-from: #1e293b !important;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(30, 41, 59, 0)) !important;
}

.dark .to-gray-100 {
    --tw-gradient-to: #1e293b !important;
}

.dark .to-gray-800 {
    --tw-gradient-to: #1e293b !important;
}

/* Card backgrounds */
.dark .bg-white {
    background-color: #1e293b !important;
}

.dark .bg-white\/90 {
    background-color: rgba(30, 41, 59, 0.9) !important;
}

.dark .bg-white\/95 {
    background-color: rgba(30, 41, 59, 0.95) !important;
}

/* Border colors */
.dark .border-gray-100 {
    border-color: #334155 !important;
}

.dark .border-gray-200 {
    border-color: #475569 !important;
}

.dark .border-gray-300 {
    border-color: #64748b !important;
}

.dark .border-gray-400 {
    border-color: #94a3b8 !important;
}

/* Custom dark border color classes */
.dark .border-dark-600 {
    border-color: #475569 !important;
}

.dark .border-dark-700 {
    border-color: #475569 !important;
}

.dark .border-dark-800 {
    border-color: #1e293b !important;
}

/* Input backgrounds */
.dark .bg-gray-50 {
    background-color: #1e293b !important;
}

.dark .focus\:bg-white:focus {
    background-color: #334155 !important;
}

/* Button backgrounds */
.dark .bg-gray-100 {
    background-color: #334155 !important;
}

.dark .hover\:bg-gray-200:hover {
    background-color: #475569 !important;
}

.dark .hover\:bg-gray-50:hover {
    background-color: #1e293b !important;
}

/* Search filter buttons */
.dark .search-filter-btn {
    background-color: #334155 !important;
    color: #e2e8f0 !important;
    border-color: #475569 !important;
}

.dark .search-filter-btn:hover {
    background-color: #475569 !important;
}

.dark .search-filter-btn.active {
    background-color: #3b82f6 !important;
    color: #ffffff !important;
    border-color: #3b82f6 !important;
}

/* Tab buttons - Enhanced styling */
.dark .tab-btn {
    background-color: transparent !important;
    color: #94a3b8 !important;
    border-color: transparent !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    padding: 1rem 1.5rem !important;
    border-radius: 0.75rem 0.75rem 0 0 !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    min-height: 4rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.dark .tab-btn:hover {
    background-color: #334155 !important;
    color: #e2e8f0 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
}

.dark .tab-btn.active {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%) !important;
    color: #ffffff !important;
    border-color: #3b82f6 !important;
    transform: translateY(-4px) !important;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4) !important;
    font-weight: 700 !important;
    font-size: 1.15rem !important;
}

.dark .tab-btn.active::before {
    content: '' !important;
    position: absolute !important;
    bottom: -1px !important;
    left: 0 !important;
    right: 0 !important;
    height: 2px !important;
    background: linear-gradient(90deg, #3b82f6 0%, #1d4ed8 100%) !important;
    border-radius: 1px !important;
}

.dark .tab-btn svg {
    width: 1.5rem !important;
    height: 1.5rem !important;
    margin-right: 0.75rem !important;
    transition: all 0.3s ease !important;
}

.dark .tab-btn:hover svg {
    transform: scale(1.1) !important;
}

.dark .tab-btn.active svg {
    transform: scale(1.15) !important;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3)) !important;
}

/* Tab count badges */
.dark .tab-btn span[id$="Count"] {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 0.875rem !important;
    padding: 0.375rem 0.75rem !important;
    border-radius: 9999px !important;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3) !important;
    margin-left: 0.75rem !important;
    transition: all 0.3s ease !important;
}

.dark .tab-btn:hover span[id$="Count"] {
    transform: scale(1.1) !important;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4) !important;
}

.dark .tab-btn.active span[id$="Count"] {
    background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%) !important;
    color: #1d4ed8 !important;
    transform: scale(1.15) !important;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3) !important;
}

/* Tab container styling */
.dark .border-b.border-gray-200.dark\:border-dark-700 {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%) !important;
    border-bottom: 2px solid #475569 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
}

/* Tab navigation container */
.dark nav[aria-label="Tabs"] {
    padding: 0.5rem 2rem !important;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%) !important;
    border-radius: 0.75rem 0.75rem 0 0 !important;
}

/* Profile stats cards */
.dark .bg-gradient-to-br.from-blue-50.to-blue-100 {
    background-image: linear-gradient(to bottom right, #1e3a8a, #1d4ed8) !important;
}

.dark .bg-gradient-to-br.from-green-50.to-green-100 {
    background-image: linear-gradient(to bottom right, #065f46, #047857) !important;
}

.dark .bg-gradient-to-br.from-purple-50.to-purple-100 {
    background-image: linear-gradient(to bottom right, #581c87, #7c3aed) !important;
}

.dark .bg-gradient-to-br.from-orange-50.to-orange-100 {
    background-image: linear-gradient(to bottom right, #78350f, #92400e) !important;
}

.dark .border-blue-200 {
    border-color: #1d4ed8 !important;
}

.dark .border-green-200 {
    border-color: #047857 !important;
}

.dark .border-purple-200 {
    border-color: #7c3aed !important;
}

.dark .border-orange-200 {
    border-color: #92400e !important;
}

.dark .text-blue-700 {
    color: #dbeafe !important;
}

.dark .text-green-700 {
    color: #d1fae5 !important;
}

.dark .text-purple-700 {
    color: #e9d5ff !important;
}

.dark .text-orange-700 {
    color: #fed7aa !important;
}

.dark .text-blue-600 {
    color: #bfdbfe !important;
}

.dark .text-green-600 {
    color: #a7f3d0 !important;
}

.dark .text-purple-600 {
    color: #c4b5fd !important;
}

.dark .text-orange-600 {
    color: #fdba74 !important;
}

/* Credit pack cards */
.dark .bg-gradient-to-r.from-green-50.to-blue-50 {
    background-image: linear-gradient(to right, #065f46, #1e3a8a) !important;
}

.dark .border-green-200 {
    border-color: #047857 !important;
}

.dark .bg-green-100 {
    background-color: #065f46 !important;
}

.dark .text-green-800 {
    color: #bbf7d0 !important;
}

/* Status badge improvements */
.dark .bg-green-100.text-green-800 {
    background-color: #065f46 !important;
    color: #bbf7d0 !important;
    font-size: 0.75rem !important;
    padding: 0.25rem 0.5rem !important;
    border-radius: 0.375rem !important;
    font-weight: 500 !important;
}

/* Light mode status badge improvements */
.bg-green-100.text-green-800 {
    font-size: 0.75rem !important;
    padding: 0.25rem 0.5rem !important;
    border-radius: 0.375rem !important;
    font-weight: 500 !important;
}

.dark .text-green-600 {
    color: #a7f3d0 !important;
}

.dark .bg-green-600 {
    background-color: #059669 !important;
}

.dark .hover\:bg-green-700:hover {
    background-color: #047857 !important;
}

/* Video player backgrounds */
.dark .bg-gray-200 {
    background-color: #334155 !important;
}

/* Chat system */
.dark .bg-gradient-to-b.from-gray-50.to-white {
    background-image: linear-gradient(to bottom, #0f172a, #1e293b) !important;
}

.dark .bg-gradient-to-r.from-blue-600.to-blue-700 {
    background-image: linear-gradient(to right, #2563eb, #1d4ed8) !important;
}

.dark .text-blue-100 {
    color: #dbeafe !important;
}

.dark .bg-blue-500 {
    background-color: #3b82f6 !important;
}

.dark .hover\:bg-blue-600:hover {
    background-color: #2563eb !important;
}

.dark .hover\:from-blue-600:hover {
    --tw-gradient-from: #2563eb !important;
}

.dark .hover\:to-blue-700:hover {
    --tw-gradient-to: #1d4ed8 !important;
}

/* Video cards in search and other pages */
.dark .hover\:bg-gray-50:hover {
    background-color: #1e293b !important;
}

.dark .hover\:shadow-lg:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2) !important;
}

/* Loading states */
.dark .bg-gray-300 {
    background-color: #475569 !important;
}

.dark .bg-gray-400 {
    background-color: #64748b !important;
}

/* Modal and overlay backgrounds */
.dark .bg-black.bg-opacity-50 {
    background-color: rgba(0, 0, 0, 0.7) !important;
}

/* Form elements in dark mode */
.dark input[type="text"],
.dark input[type="email"],
.dark input[type="password"],
.dark input[type="number"],
.dark input[type="search"],
.dark textarea,
.dark select {
    background-color: #1e293b !important;
    border-color: #475569 !important;
    color: #e2e8f0 !important;
}

.dark input[type="text"]:focus,
.dark input[type="email"]:focus,
.dark input[type="password"]:focus,
.dark input[type="number"]:focus,
.dark input[type="search"]:focus,
.dark textarea:focus,
.dark select:focus {
    background-color: #334155 !important;
    border-color: #3b82f6 !important;
    color: #f8fafc !important;
}

.dark input::placeholder,
.dark textarea::placeholder {
    color: #94a3b8 !important;
}

/* Specific page fixes */
.dark .min-h-screen.bg-gray-50 {
    background-color: #0f172a !important;
}

.dark .min-h-screen.bg-gray-50.py-8 {
    background-color: #0f172a !important;
}

.dark .min-h-screen.bg-gray-50.py-12 {
    background-color: #0f172a !important;
}

/* Dashboard specific */
.dark .text-gray-900 {
    color: #f8fafc !important;
}

.dark .text-gray-600 {
    color: #94a3b8 !important;
}

.dark .text-gray-500 {
    color: #64748b !important;
}

/* Profile page specific */
.dark .bg-gradient-to-br.from-gray-50.to-gray-100 {
    background-image: linear-gradient(to bottom right, #0f172a, #1e293b) !important;
}

/* Search page specific */
.dark .min-h-screen.bg-gray-50 {
    background-color: #0f172a !important;
}

/* Credit packs page specific */
.dark .min-h-screen.bg-gray-50 {
    background-color: #0f172a !important;
}

/* Video watch page specific */
.dark .min-h-screen.bg-gray-50.dark\:bg-dark-900 {
    background-color: #0f172a !important;
}

/* Ensure all white backgrounds are properly handled */
.dark [class*="bg-white"] {
    background-color: #1e293b !important;
}

/* Ensure all gray backgrounds are properly handled */
.dark [class*="bg-gray-"] {
    background-color: var(--dark-bg-color, #1e293b) !important;
}

/* Ensure all gray text is properly handled */
.dark [class*="text-gray-"] {
    color: var(--dark-text-color, #e2e8f0) !important;
}

/* ===== SPECIFIC PAGE FIXES ===== */

/* Index page specific fixes */
.dark .bg-gradient-to-r.from-blue-50.via-purple-50.to-pink-50 {
    background-image: linear-gradient(to right, rgba(30, 58, 138, 0.1), rgba(147, 51, 234, 0.1), rgba(236, 72, 153, 0.1)) !important;
}

.dark .bg-blue-50 {
    background-color: rgba(30, 58, 138, 0.1) !important;
}

.dark .bg-purple-50 {
    background-color: rgba(147, 51, 234, 0.1) !important;
}

.dark .bg-pink-50 {
    background-color: rgba(236, 72, 153, 0.1) !important;
}

/* Watch page specific fixes */
.dark .bg-gradient-to-b.from-gray-50.to-white {
    background-image: linear-gradient(to bottom, #0f172a, #1e293b) !important;
}

.dark .bg-gradient-to-r.from-blue-600.to-blue-700 {
    background-image: linear-gradient(to right, #2563eb, #1d4ed8) !important;
}

.dark .bg-gradient-to-r.from-gray-50.to-gray-100 {
    background-image: linear-gradient(to right, #0f172a, #1e293b) !important;
}

/* Profile page specific fixes */
.dark .bg-gradient-to-br.from-gray-50.to-gray-100 {
    background-image: linear-gradient(to bottom right, #0f172a, #1e293b) !important;
}

.dark .bg-gradient-to-r.from-gray-50.to-gray-100 {
    background-image: linear-gradient(to right, #0f172a, #1e293b) !important;
}

/* Search page specific fixes */
.dark .bg-gradient-to-r.from-gray-50.to-gray-100 {
    background-image: linear-gradient(to right, #0f172a, #1e293b) !important;
}

/* Credit packs page specific fixes */
.dark .bg-gradient-to-r.from-green-50.to-blue-50 {
    background-image: linear-gradient(to right, rgba(6, 95, 70, 0.1), rgba(30, 58, 138, 0.1)) !important;
}

.dark .bg-green-50 {
    background-color: rgba(6, 95, 70, 0.1) !important;
}

.dark .bg-blue-50 {
    background-color: rgba(30, 58, 138, 0.1) !important;
}

/* Additional text color fixes */
.dark .text-gray-700 {
    color: #cbd5e1 !important;
}

.dark .text-gray-800 {
    color: #e2e8f0 !important;
}

/* Additional background fixes */
.dark .bg-gray-50\/90 {
    background-color: rgba(15, 23, 42, 0.9) !important;
}

.dark .bg-gray-50\/95 {
    background-color: rgba(15, 23, 42, 0.95) !important;
}

/* Button and interactive element fixes */
.dark .bg-gray-100.dark\:bg-dark-700 {
    background-color: #334155 !important;
}

.dark .hover\:bg-gray-50.dark\:hover\:bg-dark-700:hover {
    background-color: #334155 !important;
}

.dark .border-gray-300.dark\:border-dark-600 {
    border-color: #64748b !important;
}

.dark .text-gray-700.dark\:text-gray-300 {
    color: #cbd5e1 !important;
}

/* Form element specific fixes */
.dark .bg-white.dark\:bg-dark-700 {
    background-color: #334155 !important;
}

.dark .border-gray-300.dark\:border-dark-600 {
    border-color: #64748b !important;
}

.dark .text-gray-900.dark\:text-gray-200 {
    color: #e2e8f0 !important;
}

/* Focus state fixes */
.dark .focus\:bg-white.dark\:focus\:bg-dark-600:focus {
    background-color: #475569 !important;
}

/* Hover state fixes */
.dark .hover\:bg-gray-50.dark\:hover\:bg-dark-700:hover {
    background-color: #334155 !important;
}

.dark .hover\:bg-gray-200.dark\:hover\:bg-dark-600:hover {
    background-color: #475569 !important;
}

/* Border fixes */
.dark .border-gray-100.dark\:border-dark-700 {
    border-color: #475569 !important;
}

.dark .border-gray-200.dark\:border-dark-700 {
    border-color: #475569 !important;
}

/* Text color fixes for specific elements */
.dark .text-gray-600.dark\:text-gray-400 {
    color: #94a3b8 !important;
}

.dark .text-gray-500.dark\:text-gray-400 {
    color: #94a3b8 !important;
}

/* Background fixes for specific elements */
.dark .bg-white.dark\:bg-dark-800 {
    background-color: #1e293b !important;
}

.dark .bg-gray-50.dark\:bg-dark-700 {
    background-color: #334155 !important;
}

/* Additional gradient fixes */
.dark .from-gray-50.dark\:from-dark-900 {
    --tw-gradient-from: #0f172a !important;
}

.dark .to-gray-100.dark\:to-dark-800 {
    --tw-gradient-to: #1e293b !important;
}

/* Ensure all text is readable in dark mode */
.dark * {
    color-scheme: dark;
}

/* Fix for any remaining white text */
.dark .text-white {
    color: #f8fafc !important;
}

/* Fix for any remaining black text */
.dark .text-black {
    color: #f8fafc !important;
}

/* Fix for any remaining white backgrounds */
.dark .bg-white {
    background-color: #1e293b !important;
}

/* Fix for any remaining black backgrounds */
.dark .bg-black {
    background-color: #0f172a !important;
}

/* ===== LIGHT MODE TAB ENHANCEMENTS ===== */

/* Light mode tab buttons - Enhanced styling */
.tab-btn {
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    padding: 1rem 1.5rem !important;
    border-radius: 0.75rem 0.75rem 0 0 !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    min-height: 4rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.tab-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

.tab-btn.active {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%) !important;
    color: #ffffff !important;
    transform: translateY(-4px) !important;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3) !important;
    font-weight: 700 !important;
    font-size: 1.15rem !important;
}

.tab-btn.active::before {
    content: '' !important;
    position: absolute !important;
    bottom: -1px !important;
    left: 0 !important;
    right: 0 !important;
    height: 2px !important;
    background: linear-gradient(90deg, #3b82f6 0%, #1d4ed8 100%) !important;
    border-radius: 1px !important;
}

.tab-btn svg {
    width: 1.5rem !important;
    height: 1.5rem !important;
    margin-right: 0.75rem !important;
    transition: all 0.3s ease !important;
}

.tab-btn:hover svg {
    transform: scale(1.1) !important;
}

.tab-btn.active svg {
    transform: scale(1.15) !important;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2)) !important;
}

/* Light mode tab count badges */
.tab-btn span[id$="Count"] {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 0.875rem !important;
    padding: 0.375rem 0.75rem !important;
    border-radius: 9999px !important;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2) !important;
    margin-left: 0.75rem !important;
    transition: all 0.3s ease !important;
}

.tab-btn:hover span[id$="Count"] {
    transform: scale(1.1) !important;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3) !important;
}

.tab-btn.active span[id$="Count"] {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%) !important;
    color: #1d4ed8 !important;
    transform: scale(1.15) !important;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.4) !important;
}

/* Light mode tab container styling */
.border-b.border-gray-200 {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%) !important;
    border-bottom: 2px solid #cbd5e1 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
}

/* Light mode tab navigation container */
nav[aria-label="Tabs"] {
    padding: 0.5rem 2rem !important;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%) !important;
    border-radius: 0.75rem 0.75rem 0 0 !important;
} 