/* Cars4Go - Professional flat theme */

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --text: #111827;
    --text-muted: #6b7280;
    --border: #e5e7eb;
    --bg: #f8fafc;
    --surface: #ffffff;
    --success: #16a34a;
    --error: #dc2626;
    --warning: #d97706;
}

/* Dark mode */
:root.dark {
    --primary: #3b82f6;
    --primary-dark: #60a5fa;
    --text: #f9fafb;
    --text-muted: #9ca3af;
    --border: #374151;
    --bg: #111827;
    --surface: #1f2937;
    --success: #22c55e;
    --error: #ef4444;
    --warning: #f59e0b;
}

html {
    scroll-behavior: auto;
}

html.dark {
    color-scheme: dark;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text);
    background-color: var(--bg);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

@keyframes pulse-slow {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.9;
    }
}

.animate-pulse-slow {
    animation: pulse-slow 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Flat hero */
.hero-bg {
    background-color: var(--primary);
}

/* Cards */
.card {
    border: 1px solid var(--border);
    background-color: var(--surface);
    border-radius: 0.75rem;
}

.card-hover:hover {
    border-color: #d1d5db;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary);
    color: #ffffff;
    padding: 0.625rem 1.25rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: background-color 0.2s ease;
}

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

.btn-secondary {
    background-color: var(--surface);
    color: #374151;
    border: 1px solid #d1d5db;
    padding: 0.625rem 1.25rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.btn-secondary:hover {
    background-color: #f9fafb;
    border-color: #9ca3af;
}

/* Dark mode buttons */
:root.dark .btn-secondary {
    color: #d1d5db;
    border-color: #4b5563;
}

:root.dark .btn-secondary:hover {
    background-color: #374151;
    border-color: #6b7280;
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.625rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.badge-blue { background-color: #eff6ff; color: #1e40af; }
.badge-green { background-color: #f0fdf4; color: #166534; }
.badge-yellow { background-color: #fefce8; color: #854d0e; }
.badge-red { background-color: #fef2f2; color: #991b1b; }
.badge-gray { background-color: #f3f4f6; color: #374151; }
.badge-purple { background-color: #f3e8ff; color: #6b21a8; }
.badge-orange { background-color: #fff7ed; color: #9a3412; }

/* Dark mode badges */
:root.dark .badge-blue { background-color: #1e3a8a; color: #93c5fd; }
:root.dark .badge-green { background-color: #14532d; color: #86efac; }
:root.dark .badge-yellow { background-color: #713f12; color: #fde047; }
:root.dark .badge-red { background-color: #7f1d1d; color: #fca5a5; }
:root.dark .badge-gray { background-color: #374151; color: #d1d5db; }
:root.dark .badge-purple { background-color: #581c87; color: #d8b4fe; }
:root.dark .badge-orange { background-color: #7c2d12; color: #fdba74; }

/* Section headings */
.section-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.02em;
}

/* Form focus - flat */
input, select, textarea {
    border-radius: 0.5rem;
    transition: border-color 0.15s ease;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
}

/* Tables */
table th {
    font-weight: 600;
    letter-spacing: 0.025em;
}

/* Image gallery */
.gallery-main {
    background-color: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    overflow: hidden;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-thumb {
    border: 2px solid transparent;
    cursor: pointer;
    border-radius: 0.5rem;
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.gallery-thumb.active {
    border-color: #f97316;
}

/* Dark mode gallery */
:root.dark .gallery-main {
    background-color: #1f2937;
    border-color: #374151;
}

/* Breadcrumbs */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.breadcrumb a:hover {
    color: #2563eb;
}

/* Dark mode breadcrumbs */
:root.dark .breadcrumb {
    color: #9ca3af;
}

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

/* Footer flat */
.footer-link {
    color: #94a3b8;
}

.footer-link:hover {
    color: #f97316;
}

/* Star rating */
.star-filled { color: #f59e0b; }
.star-empty { color: #d1d5db; }

/* Full-bleed sections that break out of max-width container */
.full-bleed {
    position: relative;
    width: 100%;
    left: 0;
    transform: none;
}

@media (min-width: 641px) {
    .full-bleed {
        width: 100vw;
        left: 50%;
        transform: translateX(-50%);
    }
}

/* Responsive tables */
.responsive-table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.responsive-table table {
    min-width: 640px;
    width: 100%;
}

/* Mobile-safe images */
img {
    max-width: 100%;
    height: auto;
}

/* Prevent horizontal overflow on mobile */
body {
    overflow-x: hidden;
}

/* Mobile-safe buttons and text */
@media (max-width: 640px) {
    .section-title {
        font-size: 1.25rem;
    }

    .btn-primary, .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .btn-primary + .btn-secondary, .btn-secondary + .btn-primary {
        margin-top: 0.5rem;
    }

    input, select, textarea {
        max-width: 100%;
    }

    h1 {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
}

/* Toast notifications */
#toast-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    pointer-events: none;
}

.toast {
    pointer-events: auto;
    min-width: 280px;
    max-width: 400px;
    background-color: #ffffff;
    border-left: 4px solid #2563eb;
    border-radius: 0.375rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    padding: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    animation: toast-in 0.2s ease-out;
}

/* Dark mode toast */
:root.dark .toast {
    background-color: #1f2937;
    border-left-color: #3b82f6;
}

.toast.success { border-left-color: #16a34a; }
.toast.error { border-left-color: #dc2626; }
.toast.info { border-left-color: #2563eb; }

/* Dark mode toast states */
:root.dark .toast.success { border-left-color: #22c55e; }
:root.dark .toast.error { border-left-color: #ef4444; }
:root.dark .toast.info { border-left-color: #3b82f6; }

.toast-icon {
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.125rem;
}

.toast.success .toast-icon { color: #16a34a; }
.toast.error .toast-icon { color: #dc2626; }
.toast.info .toast-icon { color: #2563eb; }

:root.dark .toast.success .toast-icon { color: #22c55e; }
:root.dark .toast.error .toast-icon { color: #ef4444; }
:root.dark .toast.info .toast-icon { color: #3b82f6; }

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    font-size: 0.875rem;
    color: #111827;
}

.toast-message {
    font-size: 0.875rem;
    color: #4b5563;
    margin-top: 0.125rem;
}

:root.dark .toast-title {
    color: #f9fafb;
}

:root.dark .toast-message {
    color: #d1d5db;
}

.toast-close {
    background: none;
    border: none;
    cursor: pointer;
    color: #9ca3af;
    padding: 0;
    line-height: 1;
}

.toast-close:hover {
    color: #374151;
}

.toast-exit {
    animation: toast-out 0.2s ease-in forwards;
}

@keyframes toast-in {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes toast-out {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

/* Ad banners */
.ad-banner img {
    display: block;
}

.ad-adsense {
    min-height: 90px;
}

/* Hide scrollbar for horizontal scroll sections */
.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

/* Ad spaces */
.ad-space {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 0 1rem;
}

.ad-space-top {
    margin-bottom: 2rem;
    margin-top: 0.5rem;
}

.ad-space-bottom {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.ad-space-sidebar {
    margin-bottom: 1.5rem;
}

.ad-space-sell_top,
.ad-space-listings_top,
.ad-space-message_top,
.ad-space-conversation_top {
    margin-bottom: 1.5rem;
    margin-top: 0.5rem;
}

.ad-space-sell_bottom,
.ad-space-listings_bottom {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.ad-space-inner {
    position: relative;
    width: 100%;
    max-width: 64rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.ad-space-sidebar .ad-space-inner {
    max-width: 100%;
}

.ad-space-inner:hover {
    border-color: #d1d5db;
}

.ad-space-label {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    z-index: 10;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.2rem 0.5rem;
    border-radius: 0.25rem;
    pointer-events: none;
    backdrop-filter: blur(4px);
}

.ad-space-link {
    display: block;
    line-height: 0;
}

.ad-space-img {
    width: 100%;
    height: auto;
    max-height: 180px;
    object-fit: contain;
    object-position: center;
    display: block;
    transition: opacity 0.2s ease;
}

.ad-space-sidebar .ad-space-img {
    max-height: 280px;
}

.ad-space-link:hover .ad-space-img {
    opacity: 0.92;
}

@media (max-width: 768px) {
    .ad-space-img {
        max-height: 120px;
    }
    .ad-space-sidebar .ad-space-img {
        max-height: 200px;
    }
}

/* Admin dark mode */
:root.dark main {
    background-color: #111827;
}

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

:root.dark .bg-gray-50 {
    background-color: #1f2937 !important;
}

:root.dark .bg-gray-100 {
    background-color: #374151 !important;
}

:root.dark .text-gray-900 {
    color: #f9fafb !important;
}

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

:root.dark .text-gray-600 {
    color: #9ca3af !important;
}

:root.dark .text-gray-500 {
    color: #6b7280 !important;
}

:root.dark .border-gray-100 {
    border-color: #374151 !important;
}

:root.dark .border-gray-200 {
    border-color: #4b5563 !important;
}

:root.dark .border-gray-300 {
    border-color: #6b7280 !important;
}

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

:root.dark .hover\:bg-orange-50:hover {
    background-color: #451a03 !important;
}

:root.dark .hover\:text-orange-600:hover {
    color: #fb923c !important;
}

/* Container dark mode fixes */
:root.dark .container,
:root.dark .max-w-7xl,
:root.dark .max-w-6xl,
:root.dark .max-w-5xl,
:root.dark .max-w-4xl,
:root.dark .w-full {
    background-color: transparent !important;
}

:root.dark .px-4,
:root.dark .px-6,
:root.dark .px-8,
:root.dark .py-4,
:root.dark .py-6,
:root.dark .py-8 {
    background-color: transparent !important;
}

:root.dark .bg-slate-50 {
    background-color: #1f2937 !important;
}

:root.dark .bg-slate-100 {
    background-color: #374151 !important;
}

:root.dark .bg-slate-200 {
    background-color: #4b5563 !important;
}

:root.dark .bg-slate-300 {
    background-color: #6b7280 !important;
}

:root.dark .bg-slate-800 {
    background-color: #1f2937 !important;
}

:root.dark .bg-slate-900 {
    background-color: #111827 !important;
}

:root.dark .text-slate-900 {
    color: #f9fafb !important;
}

:root.dark .text-slate-800 {
    color: #e5e7eb !important;
}

:root.dark .text-slate-700 {
    color: #d1d5db !important;
}

:root.dark .text-slate-600 {
    color: #9ca3af !important;
}

:root.dark .text-slate-500 {
    color: #6b7280 !important;
}

:root.dark .text-slate-400 {
    color: #9ca3af !important;
}

:root.dark .text-slate-300 {
    color: #d1d5db !important;
}

:root.dark .border-slate-100 {
    border-color: #374151 !important;
}

:root.dark .border-slate-200 {
    border-color: #4b5563 !important;
}

:root.dark .border-slate-300 {
    border-color: #6b7280 !important;
}

:root.dark .border-slate-800 {
    border-color: #374151 !important;
}

/* Additional dark mode fixes for common elements */
:root.dark .bg-blue-50 {
    background-color: #1e3a8a !important;
}

:root.dark .bg-green-50 {
    background-color: #14532d !important;
}

:root.dark .bg-red-50 {
    background-color: #7f1d1d !important;
}

:root.dark .bg-yellow-50 {
    background-color: #713f12 !important;
}

:root.dark .bg-purple-50 {
    background-color: #581c87 !important;
}

:root.dark .bg-orange-50 {
    background-color: #7c2d12 !important;
}

:root.dark .bg-indigo-50 {
    background-color: #312e81 !important;
}

:root.dark .bg-emerald-50 {
    background-color: #064e3b !important;
}

:root.dark .bg-amber-50 {
    background-color: #78350f !important;
}

:root.dark .bg-rose-50 {
    background-color: #881337 !important;
}

:root.dark .bg-cyan-50 {
    background-color: #164e63 !important;
}

:root.dark .text-blue-900 {
    color: #93c5fd !important;
}

:root.dark .text-green-900 {
    color: #86efac !important;
}

:root.dark .text-red-900 {
    color: #fca5a5 !important;
}

:root.dark .text-yellow-900 {
    color: #fde047 !important;
}

:root.dark .text-purple-900 {
    color: #d8b4fe !important;
}

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

:root.dark .text-indigo-900 {
    color: #a5b4fc !important;
}

:root.dark .text-emerald-900 {
    color: #6ee7b7 !important;
}

:root.dark .text-amber-900 {
    color: #fcd34d !important;
}

:root.dark .text-rose-900 {
    color: #fda4af !important;
}

:root.dark .text-cyan-900 {
    color: #67e8f9 !important;
}

:root.dark .text-white {
    color: #f9fafb !important;
}

:root.dark .text-black {
    color: #f9fafb !important;
}

:root.dark .border-white {
    border-color: #374151 !important;
}

:root.dark .border-black {
    border-color: #374151 !important;
}

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

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

:root.dark .border-red-200 {
    border-color: #991b1b !important;
}

:root.dark .border-yellow-200 {
    border-color: #854d0e !important;
}

:root.dark .border-purple-200 {
    border-color: #6b21a8 !important;
}

:root.dark .border-orange-200 {
    border-color: #9a3412 !important;
}

:root.dark .border-indigo-200 {
    border-color: #4338ca !important;
}

:root.dark .border-emerald-200 {
    border-color: #059669 !important;
}

:root.dark .border-amber-200 {
    border-color: #b45309 !important;
}

:root.dark .border-rose-200 {
    border-color: #be123c !important;
}

:root.dark .border-cyan-200 {
    border-color: #0891b2 !important;
}

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

:root.dark .shadow-md {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.5), 0 2px 4px -1px rgba(0, 0, 0, 0.3) !important;
}

:root.dark .shadow-sm {
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.5) !important;
}

:root.dark .shadow {
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.5), 0 1px 2px 0 rgba(0, 0, 0, 0.3) !important;
}

/* Form elements dark mode */
:root.dark input,
:root.dark select,
:root.dark textarea {
    background-color: #1f2937 !important;
    color: #f9fafb !important;
    border-color: #4b5563 !important;
}

:root.dark input::placeholder,
:root.dark textarea::placeholder {
    color: #9ca3af !important;
}

:root.dark input:focus,
:root.dark select:focus,
:root.dark textarea:focus {
    border-color: #f97316 !important;
    outline-color: #f97316 !important;
}

:root.dark .bg-orange-100 {
    background-color: #7c2d12 !important;
}

:root.dark .bg-orange-200 {
    background-color: #9a3412 !important;
}

:root.dark .bg-orange-300 {
    background-color: #c2410c !important;
}

:root.dark .bg-orange-400 {
    background-color: #ea580c !important;
}

:root.dark .bg-orange-500 {
    background-color: #f97316 !important;
}

:root.dark .bg-orange-600 {
    background-color: #fb923c !important;
}

:root.dark .bg-red-100 {
    background-color: #7f1d1d !important;
}

:root.dark .bg-red-200 {
    background-color: #991b1b !important;
}

:root.dark .bg-red-300 {
    background-color: #b91c1c !important;
}

:root.dark .bg-red-400 {
    background-color: #dc2626 !important;
}

:root.dark .bg-red-500 {
    background-color: #ef4444 !important;
}

:root.dark .bg-red-600 {
    background-color: #f87171 !important;
}

:root.dark .bg-green-100 {
    background-color: #14532d !important;
}

:root.dark .bg-green-200 {
    background-color: #166534 !important;
}

:root.dark .bg-green-300 {
    background-color: #15803d !important;
}

:root.dark .bg-green-400 {
    background-color: #16a34a !important;
}

:root.dark .bg-green-500 {
    background-color: #22c55e !important;
}

:root.dark .bg-green-600 {
    background-color: #4ade80 !important;
}

:root.dark .bg-blue-100 {
    background-color: #1e3a8a !important;
}

:root.dark .bg-blue-200 {
    background-color: #1e40af !important;
}

:root.dark .bg-blue-300 {
    background-color: #2563eb !important;
}

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

:root.dark .bg-blue-500 {
    background-color: #60a5fa !important;
}

:root.dark .bg-blue-600 {
    background-color: #93c5fd !important;
}

:root.dark .bg-purple-100 {
    background-color: #581c87 !important;
}

:root.dark .bg-purple-200 {
    background-color: #6b21a8 !important;
}

:root.dark .bg-purple-300 {
    background-color: #7c3aed !important;
}

:root.dark .bg-purple-400 {
    background-color: #8b5cf6 !important;
}

:root.dark .bg-purple-500 {
    background-color: #a78bfa !important;
}

:root.dark .bg-purple-600 {
    background-color: #c4b5fd !important;
}

:root.dark .bg-indigo-100 {
    background-color: #312e81 !important;
}

:root.dark .bg-indigo-200 {
    background-color: #4338ca !important;
}

:root.dark .bg-indigo-300 {
    background-color: #4f46e5 !important;
}

:root.dark .bg-indigo-400 {
    background-color: #6366f1 !important;
}

:root.dark .bg-indigo-500 {
    background-color: #818cf8 !important;
}

:root.dark .bg-indigo-600 {
    background-color: #a5b4fc !important;
}

:root.dark .bg-emerald-100 {
    background-color: #064e3b !important;
}

:root.dark .bg-emerald-200 {
    background-color: #059669 !important;
}

:root.dark .bg-emerald-300 {
    background-color: #10b981 !important;
}

:root.dark .bg-emerald-400 {
    background-color: #34d399 !important;
}

:root.dark .bg-emerald-500 {
    background-color: #6ee7b7 !important;
}

:root.dark .bg-emerald-600 {
    background-color: #a7f3d0 !important;
}

:root.dark .bg-amber-100 {
    background-color: #78350f !important;
}

:root.dark .bg-amber-200 {
    background-color: #b45309 !important;
}

:root.dark .bg-amber-300 {
    background-color: #d97706 !important;
}

:root.dark .bg-amber-400 {
    background-color: #f59e0b !important;
}

:root.dark .bg-amber-500 {
    background-color: #fbbf24 !important;
}

:root.dark .bg-amber-600 {
    background-color: #fcd34d !important;
}

:root.dark .bg-rose-100 {
    background-color: #881337 !important;
}

:root.dark .bg-rose-200 {
    background-color: #be123c !important;
}

:root.dark .bg-rose-300 {
    background-color: #e11d48 !important;
}

:root.dark .bg-rose-400 {
    background-color: #f43f5e !important;
}

:root.dark .bg-rose-500 {
    background-color: #fb7185 !important;
}

:root.dark .bg-rose-600 {
    background-color: #fda4af !important;
}

:root.dark .bg-cyan-100 {
    background-color: #164e63 !important;
}

:root.dark .bg-cyan-200 {
    background-color: #0891b2 !important;
}

:root.dark .bg-cyan-300 {
    background-color: #06b6d4 !important;
}

:root.dark .bg-cyan-400 {
    background-color: #22d3ee !important;
}

:root.dark .bg-cyan-500 {
    background-color: #67e8f9 !important;
}

:root.dark .bg-cyan-600 {
    background-color: #a5f3fc !important;
}

/* Main content area dark mode */
:root.dark main,
:root.dark .main-content {
    background-color: #111827 !important;
}

:root.dark body {
    background-color: #111827 !important;
}

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

:root.dark .bg-slate-50 {
    background-color: #1f2937 !important;
}

:root.dark .bg-gray-50 {
    background-color: #1f2937 !important;
}

:root.dark .bg-gray-100 {
    background-color: #374151 !important;
}

:root.dark .bg-slate-100 {
    background-color: #374151 !important;
}

:root.dark .bg-slate-200 {
    background-color: #4b5563 !important;
}

:root.dark .bg-slate-900 {
    background-color: #111827 !important;
}

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

:root.dark nav,
:root.dark header {
    background-color: #111827 !important;
}

:root.dark footer {
    background-color: #111827 !important;
}

:root.dark .card {
    background-color: #1f2937 !important;
    border-color: #374151 !important;
}

:root.dark .rounded-xl,
:root.dark .rounded-2xl,
:root.dark .rounded-lg {
    background-color: #1f2937 !important;
    border-color: #374151 !important;
}

:root.dark .container,
:root.dark .max-w-7xl,
:root.dark .max-w-6xl,
:root.dark .max-w-5xl,
:root.dark .max-w-4xl {
    background-color: transparent !important;
}

/* Text color overrides for dark mode */
:root.dark h1,
:root.dark h2,
:root.dark h3,
:root.dark h4,
:root.dark h5,
:root.dark h6 {
    color: #f9fafb !important;
}

:root.dark p,
:root.dark span,
:root.dark div,
:root.dark a,
:root.dark li,
:root.dark td,
:root.dark th,
:root.dark label {
    color: #d1d5db !important;
}

:root.dark .text-gray-900,
:root.dark .text-slate-900,
:root.dark .text-black {
    color: #f9fafb !important;
}

:root.dark .text-gray-800,
:root.dark .text-slate-800 {
    color: #e5e7eb !important;
}

:root.dark .text-gray-700,
:root.dark .text-slate-700 {
    color: #d1d5db !important;
}

:root.dark .text-gray-600,
:root.dark .text-slate-600 {
    color: #9ca3af !important;
}

:root.dark .text-gray-500,
:root.dark .text-slate-500 {
    color: #6b7280 !important;
}

:root.dark .text-gray-400,
:root.dark .text-slate-400 {
    color: #9ca3af !important;
}

:root.dark .text-gray-300,
:root.dark .text-slate-300 {
    color: #d1d5db !important;
}

:root.dark .text-gray-200,
:root.dark .text-slate-200 {
    color: #e5e7eb !important;
}

:root.dark .text-white {
    color: #f9fafb !important;
}

:root.dark .text-black {
    color: #f9fafb !important;
}

:root.dark .text-blue-900,
:root.dark .text-blue-800,
:root.dark .text-blue-700,
:root.dark .text-blue-600 {
    color: #93c5fd !important;
}

:root.dark .text-green-900,
:root.dark .text-green-800,
:root.dark .text-green-700,
:root.dark .text-green-600 {
    color: #86efac !important;
}

:root.dark .text-red-900,
:root.dark .text-red-800,
:root.dark .text-red-700,
:root.dark .text-red-600 {
    color: #fca5a5 !important;
}

:root.dark .text-yellow-900,
:root.dark .text-yellow-800,
:root.dark .text-yellow-700,
:root.dark .text-yellow-600 {
    color: #fde047 !important;
}

:root.dark .text-orange-900,
:root.dark .text-orange-800,
:root.dark .text-orange-700,
:root.dark .text-orange-600 {
    color: #fdba74 !important;
}

:root.dark .text-purple-900,
:root.dark .text-purple-800,
:root.dark .text-purple-700,
:root.dark .text-purple-600 {
    color: #d8b4fe !important;
}

:root.dark .text-indigo-900,
:root.dark .text-indigo-800,
:root.dark .text-indigo-700,
:root.dark .text-indigo-600 {
    color: #a5b4fc !important;
}

:root.dark .text-emerald-900,
:root.dark .text-emerald-800,
:root.dark .text-emerald-700,
:root.dark .text-emerald-600 {
    color: #6ee7b7 !important;
}

:root.dark .text-amber-900,
:root.dark .text-amber-800,
:root.dark .text-amber-700,
:root.dark .text-amber-600 {
    color: #fcd34d !important;
}

:root.dark .text-rose-900,
:root.dark .text-rose-800,
:root.dark .text-rose-700,
:root.dark .text-rose-600 {
    color: #fda4af !important;
}

:root.dark .text-cyan-900,
:root.dark .text-cyan-800,
:root.dark .text-cyan-700,
:root.dark .text-cyan-600 {
    color: #67e8f9 !important;
}

:root.dark .font-bold,
:root.dark .font-semibold,
:root.dark .font-black {
    color: #f9fafb !important;
}

/* Specific overrides for prices and locations */
:root.dark .text-black {
    color: #ffffff !important;
}

:root.dark .text-gray-500 {
    color: #d1d5db !important;
}

:root.dark .text-gray-400 {
    color: #9ca3af !important;
}

:root.dark .text-slate-300 {
    color: #e5e7eb !important;
}

:root.dark .text-slate-400 {
    color: #9ca3af !important;
}

:root.dark .text-slate-500 {
    color: #d1d5db !important;
}

:root.dark .text-orange-100 {
    color: #ffffff !important;
}

:root.dark .text-orange-200 {
    color: #ffffff !important;
}

:root.dark .text-orange-300 {
    color: #ffffff !important;
}

:root.dark .text-orange-400 {
    color: #ffffff !important;
}

:root.dark .text-orange-500 {
    color: #ffffff !important;
}

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

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

:root.dark .text-orange-800 {
    color: #ffffff !important;
}

:root.dark .text-orange-900 {
    color: #ffffff !important;
}
