:root {
    --ginga-blue: #1a73e8;
    --ginga-green: #0f9d58;
    --ginga-bg: #f8f9fa;
    --ginga-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.ginga-body {
    background: var(--ginga-bg);
    color: #2d3436;
}

.ginga-container {
    max-width: 1000px;
}

.ginga-hero {
    padding: 5rem 0 4rem;
}

.ginga-title-xl {
    font-size: clamp(2rem, 3.5vw, 3rem);
    line-height: 1.2;
    font-weight: 800;
    color: #2d3436;
    letter-spacing: -0.02em;
}

.ginga-title-lg {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    line-height: 1.2;
    font-weight: 800;
    color: #2d3436;
    letter-spacing: -0.02em;
}

.ginga-title-md {
    font-size: 1.5rem;
    line-height: 1.2;
    font-weight: 700;
    color: #2d3436;
}

.ginga-subtitle {
    color: #636e72;
    margin-top: 0.6rem;
}

.ginga-card {
    border-radius: 1rem;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.03);
    box-shadow: var(--ginga-shadow);
    transition: all 0.25s ease-in-out;
}

.ginga-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.btn-ginga-primary {
    background-color: var(--ginga-green);
    border-color: var(--ginga-green);
    color: #fff;
}

.btn-ginga-primary:hover {
    background-color: #0b874c;
    border-color: #0b874c;
    color: #fff;
}

.ginga-lyrics {
    white-space: pre-wrap;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    background: #f8f9fa;
    padding: 1rem;
    font-size: 0.95rem;
}

.ritmos-panel {
    border: 1px solid #e9ecef;
}

.ritmos-instruments {
    display: grid;
    gap: 0.75rem;
}

.ritmos-track {
    padding: 0.75rem 0.5rem;
    border-radius: 0.6rem;
    background: #f8f9fa;
}

.ritmos-steps {
    display: grid;
    grid-template-columns: repeat(16, minmax(0, 1fr));
    gap: 0.4rem;
}

.ritmos-step-dot {
    display: block;
    width: 100%;
    min-height: 0.8rem;
    border-radius: 999px;
    background: #d0d7de;
    transition: background-color 0.12s ease-in-out, transform 0.12s ease-in-out;
}

.ritmos-step-dot.is-active {
    background: var(--ginga-green);
    transform: scaleY(1.25);
}

/* Theme Toggle styles */
[data-bs-theme="light"] .theme-toggle-btn .bi-moon-stars-fill {
    display: none;
}
[data-bs-theme="light"] .theme-toggle-btn .bi-sun-fill {
    display: inline-block;
}
[data-bs-theme="dark"] .theme-toggle-btn .bi-sun-fill {
    display: none;
}
[data-bs-theme="dark"] .theme-toggle-btn .bi-moon-stars-fill {
    display: inline-block;
}

/* Ginga Theme-aware elements */
.ginga-header {
    background-color: #ffffff;
}
.ginga-footer {
    background-color: #ffffff;
}

/* Dark mode style overrides */
[data-bs-theme="dark"] {
    --ginga-bg: #121212;
    --ginga-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

[data-bs-theme="dark"] .ginga-body {
    background: var(--ginga-bg);
    color: #e0e0e0;
}

[data-bs-theme="dark"] .ginga-header {
    background-color: #1e1e1e;
    border-color: #2b3035 !important;
}

[data-bs-theme="dark"] .ginga-footer {
    background-color: #1e1e1e;
    border-color: #2b3035 !important;
}

[data-bs-theme="dark"] .ginga-card {
    background: #1e1e1e;
    border-color: rgba(255, 255, 255, 0.08);
}

[data-bs-theme="dark"] .ginga-title-xl,
[data-bs-theme="dark"] .ginga-title-lg,
[data-bs-theme="dark"] .ginga-title-md {
    color: #ffffff;
}

[data-bs-theme="dark"] .ginga-subtitle {
    color: #a0a0a0;
}

[data-bs-theme="dark"] .ginga-lyrics {
    border-color: #2b3035;
    background: #1e1e1e;
    color: #e0e0e0;
}


/* Table dark mode overrides */
[data-bs-theme="dark"] .table-light {
    --bs-table-color: #e0e0e0;
    --bs-table-bg: #2b3035;
    --bs-table-border-color: #373b3e;
}

/* Select2 dark mode overrides */
[data-bs-theme="dark"] .select2-container--krajee-bs5 .select2-selection--single,
[data-bs-theme="dark"] .select2-container--krajee-bs5 .select2-selection--multiple,
[data-bs-theme="dark"] .select2-selection--single,
[data-bs-theme="dark"] .select2-selection--multiple {
    background: #2b2b2b !important;
    background-color: #2b2b2b !important;
    border-color: #3b3b3b !important;
    color: #ffffff !important;
}

[data-bs-theme="dark"] .select2-container--krajee-bs5 .select2-selection--single .select2-selection__rendered,
[data-bs-theme="dark"] .select2-container--krajee-bs5 .select2-selection--multiple .select2-selection__rendered,
[data-bs-theme="dark"] .select2-selection--single .select2-selection__rendered,
[data-bs-theme="dark"] .select2-selection--multiple .select2-selection__rendered {
    color: #ffffff !important;
}

[data-bs-theme="dark"] .select2-selection--multiple .select2-selection__choice {
    background: #3b3b3b !important;
    background-color: #3b3b3b !important;
    border-color: #4b4b4b !important;
    color: #ffffff !important;
}

[data-bs-theme="dark"] .select2-selection--multiple .select2-selection__choice__remove {
    color: #ffffff !important;
    border-right-color: #4b4b4b !important;
}

[data-bs-theme="dark"] .select2-selection--multiple .select2-selection__choice__remove:hover {
    background: #4b4b4b !important;
    background-color: #4b4b4b !important;
    color: #ff6b6b !important;
}

[data-bs-theme="dark"] .select2-search--inline .select2-search__field {
    color: #ffffff !important;
}

[data-bs-theme="dark"] .select2-dropdown,
[data-bs-theme="dark"] .select2-container--krajee-bs5 .select2-dropdown {
    background: #2b2b2b !important;
    background-color: #2b2b2b !important;
    border-color: #3b3b3b !important;
    color: #ffffff !important;
}

[data-bs-theme="dark"] .select2-search--dropdown .select2-search__field {
    background: #1e1e1e !important;
    background-color: #1e1e1e !important;
    border-color: #3b3b3b !important;
    color: #ffffff !important;
}

[data-bs-theme="dark"] .select2-results__option {
    background-color: #2b2b2b !important;
    color: #ffffff !important;
}

[data-bs-theme="dark"] .select2-results__option--highlighted[aria-selected],
[data-bs-theme="dark"] .select2-results__option--highlighted,
[data-bs-theme="dark"] .select2-container--krajee-bs5 .select2-results__option--highlighted {
    background: var(--ginga-green) !important;
    background-color: var(--ginga-green) !important;
    color: #ffffff !important;
}

[data-bs-theme="dark"] .select2-results__option[aria-selected=true],
[data-bs-theme="dark"] .select2-results__option--selected,
[data-bs-theme="dark"] .select2-container--krajee-bs5 .select2-results__option[aria-selected=true] {
    background: #3b3b3b !important;
    background-color: #3b3b3b !important;
    color: #ffffff !important;
}

[data-bs-theme="dark"] .select2-results__option--disabled {
    color: #666666 !important;
}

[data-bs-theme="dark"] .select2-selection--single .select2-selection__arrow b {
    border-color: #ffffff transparent transparent transparent !important;
}

[data-bs-theme="dark"] .select2-container--open .select2-selection--single .select2-selection__arrow b {
    border-color: transparent transparent #ffffff transparent !important;
}

[data-bs-theme="dark"] .select2-selection--single .select2-selection__placeholder,
[data-bs-theme="dark"] .select2-selection--multiple .select2-selection__placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
}

/* Theme visibility helpers */
[data-bs-theme="light"] .d-none-light {
    display: none !important;
}
[data-bs-theme="dark"] .d-none-dark {
    display: none !important;
}

/* Hide caret arrow for special dropdown toggles */
.dropdown-toggle.hide-arrow::after {
    display: none !important;
}

/* User Mentions (@) and Popovers */
.mention {
    color: var(--bs-primary) !important;
    background-color: rgba(var(--bs-primary-rgb), 0.08);
    padding: 0.1rem 0.3rem;
    border-radius: 4px;
}
.popover {
    --bs-popover-bg: var(--ginga-bg);
    --bs-popover-border-color: var(--bs-border-color);
}

/* Landing V2 Specific Styles & Theme Fixes */
.bg-gradient-dark-purple {
    background: linear-gradient(135deg, #1b0a2a 0%, #341247 50%, #4a154b 100%) !important;
}

.fs-7 {
    font-size: 0.85rem !important;
}

.fw-black {
    font-weight: 900 !important;
}

.fw-extrabold {
    font-weight: 800 !important;
}

.max-w-700 {
    max-width: 700px;
}

.max-w-600 {
    max-width: 600px;
}

.hover-lift {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12) !important;
}

.hover-scale {
    transition: transform 0.2s ease;
}
.hover-scale:hover {
    transform: scale(1.03);
}

.backdrop-blur {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.shadow-2xl {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important;
}

.text-white-75 {
    color: rgba(255, 255, 255, 0.75) !important;
}

.text-white-50 {
    color: rgba(255, 255, 255, 0.50) !important;
}

/* Light Theme Landing Contrast Adjustments */
[data-bs-theme="light"] .landing-v2 .text-muted {
    color: #4b5563 !important;
}

[data-bs-theme="light"] .landing-v2 .card {
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
}


