/* ==============================================================================
   MC Serviços Logísticos - Dual Theme System (Obsidian Dark & Champagne Light)
   Based on: Google Stitch DESIGN.md, TasteSkill Anti-Slop & Vercel Web Guidelines
   ============================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --mc-gold-light: #F7E7A9;
    --mc-gold-base: #D4AF37;
    --mc-gold-metallic: #C59B27;
    --mc-gold-deep: #997517;
    --mc-gold-glow: 0 0 25px rgba(212, 175, 55, 0.25);
    
    --mc-border-gold: rgba(212, 175, 55, 0.35);
    --mc-transition-fast: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ------------------------------------------------------------------------------
   DARK MODE COLOR TOKENS (Pure Obsidian & Metallic Gold)
   ------------------------------------------------------------------------------ */
html.dark {
    --mc-bg-page: #040507;
    --mc-bg-surface: #06070A;
    --mc-bg-card: #0F1118;
    --mc-bg-card-subtle: #141724;
    --mc-bg-input: #08090D;
    --mc-text-title: #FFFFFF;
    --mc-text-body: #F8FAFC;
    --mc-text-muted: #94A3B8;
    --mc-border-card: rgba(212, 175, 55, 0.22);
    --mc-border-input: rgba(255, 255, 255, 0.12);
    --mc-shadow-card: 0 10px 30px rgba(0, 0, 0, 0.6);
}

/* ------------------------------------------------------------------------------
   LIGHT MODE COLOR TOKENS (Champagne Editorial & Pure White)
   ------------------------------------------------------------------------------ */
html:not(.dark) {
    --mc-bg-page: #F8FAFC;
    --mc-bg-surface: #FFFFFF;
    --mc-bg-card: #FFFFFF;
    --mc-bg-card-subtle: #F1F5F9;
    --mc-bg-input: #FFFFFF;
    --mc-text-title: #0F172A;
    --mc-text-body: #1E293B;
    --mc-text-muted: #64748B;
    --mc-border-card: rgba(212, 175, 55, 0.25);
    --mc-border-input: #CBD5E1;
    --mc-shadow-card: 0 8px 25px rgba(0, 0, 0, 0.05);
}

/* ==============================================================================
   1. GLOBAL PAGE & BODY
   ============================================================================== */
html,
body,
.fi-body {
    background-color: var(--mc-bg-page) !important;
    color: var(--mc-text-body) !important;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    min-height: 100vh !important;
    transition: background-color var(--mc-transition-fast), color var(--mc-transition-fast);
}

/* ==============================================================================
   2. STICKY FOOTER ALWAYS AT BOTTOM & SIDEBAR ALWAYS AT LEFT
   ============================================================================== */
.fi-layout {
    min-height: 100vh !important;
    display: flex !important;
    flex-direction: row-reverse !important; /* Forces sidebar on the left */
    background-color: var(--mc-bg-page) !important;
}

.fi-main-ctn {
    min-height: 100vh !important;
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 0% !important;
    background-color: var(--mc-bg-page) !important;
}

.fi-main {
    min-height: calc(100vh - 4.5rem) !important;
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 0% !important;
    background-color: var(--mc-bg-page) !important;
    padding-bottom: 0 !important;
}

.fi-page {
    flex: 1 0 auto !important;
    background-color: var(--mc-bg-page) !important;
}

/* Sticky Bottom Footer (Shown only on guest/login pages) */
.fi-layout .mc-admin-footer {
    display: none !important;
}

.mc-admin-footer {
    margin-top: auto !important;
    width: 100% !important;
    position: sticky !important;
    bottom: 0 !important;
    z-index: 30 !important;
    padding: 1.1rem 2rem !important;
    background: var(--mc-bg-surface) !important;
    border-top: 1px solid var(--mc-border-card) !important;
    box-shadow: 0 -8px 25px rgba(0, 0, 0, 0.15) !important;
    backdrop-filter: blur(12px) !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 0.75rem !important;
    font-size: 0.8rem !important;
    color: var(--mc-text-muted) !important;
}

.mc-admin-footer strong {
    color: var(--mc-text-body);
}

.mc-admin-footer a {
    color: var(--mc-gold-base);
    text-decoration: none;
    font-weight: 600;
}

.mc-admin-footer a:hover {
    color: var(--mc-gold-light);
    text-decoration: underline;
}

/* Footer Dynamic Colors per Theme */
html.dark .mc-footer-title {
    color: #F8FAFC !important;
}

html:not(.dark) .mc-footer-title {
    color: #0F172A !important;
}

html.dark .mc-footer-muted {
    color: #94A3B8 !important;
}

html:not(.dark) .mc-footer-muted {
    color: #475569 !important;
}

/* Dynamic Dark/Light Logo Switching (Guaranteed across all browsers and views) */
html.dark .block.dark\:hidden {
    display: none !important;
}

html.dark .hidden.dark\:block {
    display: block !important;
}

html:not(.dark) .block.dark\:hidden {
    display: block !important;
}

html:not(.dark) .hidden.dark\:block {
    display: none !important;
}

/* ==============================================================================
   3. LOGIN PAGE (OPTIMIZED BACKGROUND & LARGE PROMINENT LOGO ABOVE CARD)
   ============================================================================== */
.fi-simple-layout {
    background-color: #040507 !important;
    background-image: 
        radial-gradient(circle at 50% 35%, rgba(4, 5, 7, 0.18) 0%, rgba(4, 5, 7, 0.50) 100%),
        url('/images/bg-login.webp') !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-attachment: fixed !important;
    min-height: 100vh !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 2rem 1rem !important;
}

.fi-simple-main-ctn {
    background: transparent !important;
    flex: 1 0 auto !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
}

/* Hide small logo inside the login card (as crossed out by user) */
.fi-simple-main .fi-simple-header .fi-logo,
.fi-simple-main .fi-simple-header a[href] {
    display: none !important;
}

/* The Login Card Container with prominent logo above */
.fi-simple-main {
    background-color: rgba(15, 17, 24, 0.92) !important;
    border: 1px solid var(--mc-border-gold) !important;
    border-radius: 20px !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 40px rgba(212, 175, 55, 0.22) !important;
    backdrop-filter: blur(16px) !important;
    position: relative !important;
    margin-top: 5.5rem !important; /* Space for the large logo above */
    max-width: 460px !important;
    width: 100% !important;
}

/* The Large Prominent Logo Above the Login Card */
.fi-simple-main::before {
    content: '';
    position: absolute;
    top: -5.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 320px;
    height: 75px;
    background-image: url('/images/logo-dark-bg.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    filter: drop-shadow(0 6px 20px rgba(212, 175, 55, 0.45));
    z-index: 20;
}

/* Subtle Golden Top Border Accent on Card */
.fi-simple-main::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--mc-gold-base), transparent);
}

.fi-simple-header-heading,
.fi-simple-main h1,
.fi-simple-main h2 {
    color: #FFFFFF !important;
    font-weight: 800 !important;
    letter-spacing: -0.02em !important;
    margin-top: 0.25rem !important;
}

.fi-simple-header-subheading,
.fi-simple-main p {
    color: #94A3B8 !important;
}

.fi-simple-main .fi-fo-field-wrp-label,
.fi-simple-main label,
.fi-fo-field-wrp-label label {
    color: var(--mc-text-body) !important;
    font-weight: 600 !important;
    font-size: 0.85rem !important;
}

/* ==============================================================================
   4. INPUTS & FORM CONTROLS (HIGH CONTRAST & GOLD FOCUS ACCENT)
   ============================================================================== */
.fi-input-wrp {
    background-color: var(--mc-bg-input) !important;
    border: 1px solid var(--mc-border-input) !important;
    border-radius: 10px !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05) !important;
    transition: all var(--mc-transition-fast) !important;
    min-height: 42px !important;
}

.fi-input-wrp:focus-within {
    border-color: var(--mc-gold-base) !important;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.25), inset 0 2px 4px rgba(0, 0, 0, 0.05) !important;
}

.fi-input-wrp input,
.fi-input-wrp textarea,
.fi-input-wrp select {
    color: var(--mc-text-title) !important;
    font-family: inherit !important;
}

.fi-input-wrp input::placeholder {
    color: var(--mc-text-muted) !important;
}

.fi-checkbox-input {
    background-color: var(--mc-bg-input) !important;
    border-color: var(--mc-border-input) !important;
}

.fi-checkbox-input:checked {
    background-color: var(--mc-gold-base) !important;
    border-color: var(--mc-gold-base) !important;
}

/* ==============================================================================
   5. BUTTONS (METALLIC CHAMPAGNE GOLD GRADIENT & ACCESSIBLE TOUCH TARGETS)
   ============================================================================== */
.fi-btn-primary {
    background: linear-gradient(135deg, #ECC85E 0%, #D4AF37 50%, #997517 100%) !important;
    color: #08090D !important;
    font-weight: 800 !important;
    letter-spacing: 0.02em !important;
    border: none !important;
    border-radius: 10px !important;
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3) !important;
    transition: all var(--mc-transition-fast) !important;
    min-height: 42px !important;
}

.fi-btn-primary:hover {
    filter: brightness(1.1) !important;
    box-shadow: 0 10px 28px rgba(212, 175, 55, 0.45) !important;
    transform: translateY(-1px) !important;
}

.fi-btn {
    min-height: 40px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: 600 !important;
}

/* ==============================================================================
   6. PANEL LAYOUT (SIDEBAR & TOPBAR)
   ============================================================================== */
.fi-sidebar {
    background-color: var(--mc-bg-surface) !important;
    border-right: 1px solid var(--mc-border-card) !important;
}

.fi-sidebar-header {
    background-color: var(--mc-bg-surface) !important;
    border-bottom: 1px solid var(--mc-border-card) !important;
    padding-top: 1.1rem !important;
    padding-bottom: 1.1rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    text-align: center !important;
}

.fi-sidebar-header > a,
.fi-sidebar-header > div:first-child {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    margin: 0 auto !important;
    text-align: center !important;
}

/* Ensure only the active theme logo is displayed without overlap */
html.dark .fi-sidebar-header .fi-logo.dark\:hidden,
html.dark .fi-sidebar-header .dark\:hidden {
    display: none !important;
}

html.dark .fi-sidebar-header .fi-logo.dark\:flex,
html.dark .fi-sidebar-header .hidden.dark\:flex {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto !important;
}

html:not(.dark) .fi-sidebar-header .fi-logo.dark\:flex,
html:not(.dark) .fi-sidebar-header .hidden.dark\:flex {
    display: none !important;
}

html:not(.dark) .fi-sidebar-header .fi-logo.dark\:hidden,
html:not(.dark) .fi-sidebar-header .flex.dark\:hidden {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto !important;
}

.fi-sidebar-header button.fi-icon-btn,
.fi-sidebar-header button[x-on*="toggleSidebar"] {
    position: absolute !important;
    right: 0.75rem !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
}

.fi-topbar {
    background-color: var(--mc-bg-surface) !important;
    border-bottom: 1px solid var(--mc-border-card) !important;
    backdrop-filter: blur(14px) !important;
}

/* Navigation Group Labels */
.fi-sidebar-group-label {
    color: var(--mc-gold-base) !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
}

/* Active Navigation Item */
.fi-sidebar-item-active .fi-sidebar-item-button {
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.18) 0%, rgba(212, 175, 55, 0.03) 100%) !important;
    border-left: 3px solid var(--mc-gold-base) !important;
    color: var(--mc-gold-base) !important;
    font-weight: 700 !important;
}

.fi-sidebar-item-active .fi-sidebar-item-icon {
    color: var(--mc-gold-base) !important;
}

/* ==============================================================================
   7. CARDS, TABLES, SECTIONS & STATS
   ============================================================================== */
.fi-section,
.fi-ta-ctn,
.fi-wi-stats-overview-stat,
.fi-modal-window,
.fi-wi-account {
    background-color: var(--mc-bg-card) !important;
    border: 1px solid var(--mc-border-card) !important;
    border-radius: 14px !important;
    box-shadow: var(--mc-shadow-card) !important;
}

.fi-header-heading,
.fi-section-header-heading,
.fi-wi-stats-overview-stat-value {
    color: var(--mc-text-title) !important;
    font-weight: 700 !important;
}

.fi-header-subheading,
.fi-section-header-description,
.fi-wi-stats-overview-stat-label {
    color: var(--mc-text-muted) !important;
}

.fi-ta-header,
.fi-ta-header-cell {
    background-color: var(--mc-bg-card-subtle) !important;
    border-color: var(--mc-border-card) !important;
    color: var(--mc-text-title) !important;
}

.fi-ta-row {
    background-color: var(--mc-bg-card) !important;
    border-color: rgba(255, 255, 255, 0.05) !important;
}

.fi-ta-row:hover {
    background-color: rgba(212, 175, 55, 0.06) !important;
}

.fi-ta-cell {
    color: var(--mc-text-body) !important;
}

/* ==============================================================================
   8. UX ENHANCEMENTS (Laws of UX: Fitts, Doherty, Miller, Von Restorff)
   ============================================================================== */
button,
a,
input,
select,
textarea,
.fi-btn,
.fi-tabs-item {
    transition: all var(--mc-transition-fast) !important;
}

/* Form field hint action buttons (e.g. Restaurar Padrão) */
.fi-fo-field-wrp-hint button {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    padding: 3px 8px !important;
    border-radius: 6px !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    background: rgba(212, 175, 55, 0.08) !important;
    border: 1px solid rgba(212, 175, 55, 0.25) !important;
    color: var(--mc-gold-base) !important;
}

.fi-fo-field-wrp-hint button:hover {
    background: rgba(212, 175, 55, 0.2) !important;
    border-color: var(--mc-gold-base) !important;
    color: var(--mc-gold-light) !important;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--mc-bg-page);
}
::-webkit-scrollbar-thumb {
    background: var(--mc-gold-deep);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--mc-gold-base);
}

/* ==============================================================================
   9. SIDEBAR BOTTOM LOGOUT & FOOTER
   ============================================================================== */
.mc-sidebar-footer-container {
    padding: 0.85rem 1rem !important;
    border-top: 1px solid var(--mc-border-card) !important;
    background-color: var(--mc-bg-surface) !important;
    width: 100% !important;
}

.mc-sidebar-logout-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.65rem !important;
    width: 100% !important;
    padding: 0.7rem 1.1rem !important;
    border-radius: 10px !important;
    font-size: 0.875rem !important;
    font-weight: 700 !important;
    border: 1px solid rgba(239, 68, 68, 0.3) !important;
    background: rgba(239, 68, 68, 0.08) !important;
    color: #F87171 !important;
    cursor: pointer !important;
    transition: all var(--mc-transition-fast) !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15) !important;
}

.mc-sidebar-logout-btn:hover {
    background: #EF4444 !important;
    border-color: #EF4444 !important;
    color: #FFFFFF !important;
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.35) !important;
    transform: translateY(-1px) !important;
}

.mc-logout-icon {
    width: 18px !important;
    height: 18px !important;
    transition: transform var(--mc-transition-fast) !important;
}

.mc-sidebar-logout-btn:hover .mc-logout-icon {
    transform: translateX(-2px) !important;
}

html:not(.dark) .mc-sidebar-logout-btn {
    background: rgba(220, 38, 38, 0.07) !important;
    border-color: rgba(220, 38, 38, 0.25) !important;
    color: #DC2626 !important;
}

html:not(.dark) .mc-sidebar-logout-btn:hover {
    background: #DC2626 !important;
    color: #FFFFFF !important;
    border-color: #DC2626 !important;
}

/* ==============================================================================
   10. SYSTEM SETTINGS & DYNAMIC THEME COMPONENTS
   ============================================================================== */
.mc-variables-box {
    background-color: var(--mc-bg-card-subtle) !important;
    border: 1px solid var(--mc-border-card) !important;
    border-radius: 12px !important;
    padding: 14px 16px !important;
    margin-top: 6px !important;
    transition: all var(--mc-transition-fast) !important;
}

.mc-variables-box-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin-bottom: 10px !important;
}

.mc-variables-box-title {
    font-size: 11.5px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    color: var(--mc-gold-base) !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.mc-variables-box-sub {
    font-size: 11px !important;
    color: var(--mc-text-muted) !important;
}

.mc-variables-box-legend {
    margin-top: 10px !important;
    padding-top: 8px !important;
    border-top: 1px solid var(--mc-border-card) !important;
    font-size: 11.5px !important;
    color: var(--mc-text-muted) !important;
    line-height: 1.6 !important;
}

.mc-variable-tag {
    color: var(--mc-gold-base) !important;
    font-family: monospace !important;
    font-weight: 700 !important;
}

.mc-variable-chip {
    background: rgba(212, 175, 55, 0.12) !important;
    border: 1px solid rgba(212, 175, 55, 0.4) !important;
    color: var(--mc-gold-base) !important;
    padding: 6px 12px !important;
    border-radius: 8px !important;
    font-size: 12px !important;
    font-family: monospace !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    user-select: none !important;
}

.mc-variable-chip:hover {
    background: rgba(212, 175, 55, 0.25) !important;
    border-color: var(--mc-gold-base) !important;
    transform: translateY(-1px) !important;
}

.mc-variable-chip.copied {
    border-color: #10B981 !important;
    color: #10B981 !important;
}

html:not(.dark) .mc-variables-box {
    background-color: #F8FAFC !important;
    border-color: #E2E8F0 !important;
}

html:not(.dark) .mc-variables-box-title {
    color: #854D0E !important;
}

html:not(.dark) .mc-variables-box-sub {
    color: #64748B !important;
}

html:not(.dark) .mc-variables-box-legend {
    border-top-color: #E2E8F0 !important;
    color: #64748B !important;
}

html:not(.dark) .mc-variable-tag {
    color: #854D0E !important;
}

html:not(.dark) .mc-variable-chip {
    background: #FEF9C3 !important;
    border-color: #CA8A04 !important;
    color: #713F12 !important;
}

html:not(.dark) .mc-variable-chip:hover {
    background: #FEF08A !important;
    border-color: #A16207 !important;
}

.mc-code-badge {
    background-color: var(--mc-bg-card-subtle) !important;
    color: var(--mc-gold-base) !important;
    border: 1px solid var(--mc-border-card) !important;
    padding: 8px 14px !important;
    border-radius: 8px !important;
    font-size: 12.5px !important;
    font-weight: 700 !important;
    word-break: break-all !important;
}

html:not(.dark) .mc-code-badge {
    background-color: #F1F5F9 !important;
    color: #854D0E !important;
    border-color: #E2E8F0 !important;
}

/* ==========================================================================
   Table Cards Layout (contentGrid) & Header Tabs
   ========================================================================== */
.fi-ta-content-grid {
    gap: 1.25rem !important;
    padding: 0.5rem 0 !important;
}

/* Card container for each record */
.fi-ta-content-grid > div,
.fi-ta-content-grid .fi-ta-record {
    background: var(--mc-bg-surface) !important;
    border: 1px solid var(--mc-border-card) !important;
    border-radius: 14px !important;
    padding: 1.15rem 1.25rem !important;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.22) !important;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
}

.fi-ta-content-grid > div:hover,
.fi-ta-content-grid .fi-ta-record:hover {
    border-color: rgba(212, 175, 55, 0.45) !important;
    box-shadow: 0 10px 28px rgba(212, 175, 55, 0.12), 0 4px 12px rgba(0, 0, 0, 0.3) !important;
    transform: translateY(-2px) !important;
}

/* Light mode card */
html:not(.dark) .fi-ta-content-grid > div,
html:not(.dark) .fi-ta-content-grid .fi-ta-record {
    background: #FFFFFF !important;
    border-color: #E2E8F0 !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05) !important;
}

html:not(.dark) .fi-ta-content-grid > div:hover,
html:not(.dark) .fi-ta-content-grid .fi-ta-record:hover {
    border-color: #D4AF37 !important;
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.18) !important;
}

/* Refined Tabs header bar */
.fi-tabs {
    margin-bottom: 0.75rem !important;
    border-bottom: 1px solid var(--mc-border-card) !important;
}

.fi-tabs-item {
    font-weight: 600 !important;
    transition: all 0.15s ease !important;
}

.fi-tabs-item[aria-selected="true"] {
    color: var(--mc-gold-base) !important;
    border-bottom-color: var(--mc-gold-base) !important;
}

/* ==========================================================================
   Operational Calendar Status Circles & Navigation Styling
   ========================================================================== */
.mc-cal-confirmed {
    background-color: rgba(16, 185, 129, 0.22) !important;
    border: 2px solid #10B981 !important;
    color: #10B981 !important;
    box-shadow: 0 0 14px rgba(16, 185, 129, 0.35) !important;
    font-weight: 700 !important;
    border-radius: 9999px !important;
}

html:not(.dark) .mc-cal-confirmed {
    background-color: #D1FAE5 !important;
    border-color: #059669 !important;
    color: #047857 !important;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25) !important;
}

.mc-cal-pending {
    background-color: rgba(245, 158, 11, 0.22) !important;
    border: 2px solid #F59E0B !important;
    color: #F59E0B !important;
    box-shadow: 0 0 14px rgba(245, 158, 11, 0.35) !important;
    font-weight: 700 !important;
    border-radius: 9999px !important;
}

html:not(.dark) .mc-cal-pending {
    background-color: #FEF3C7 !important;
    border-color: #D97706 !important;
    color: #B45309 !important;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.25) !important;
}

/* Legend Indicators */
.mc-cal-badge-confirmed {
    color: #10B981 !important;
    font-weight: 600 !important;
}

html:not(.dark) .mc-cal-badge-confirmed {
    color: #047857 !important;
}

.mc-cal-dot-confirmed {
    background-color: #10B981 !important;
    border: 2px solid #059669 !important;
}

.mc-cal-badge-pending {
    color: #F59E0B !important;
    font-weight: 600 !important;
}

html:not(.dark) .mc-cal-badge-pending {
    color: #B45309 !important;
}

.mc-cal-dot-pending {
    background-color: #F59E0B !important;
    border: 2px solid #D97706 !important;
}

/* Month Navigation Pill */
.mc-cal-nav-pill {
    background-color: #18181B !important;
    border: 1px solid #3F3F46 !important;
    color: #F4F4F5 !important;
}

html:not(.dark) .mc-cal-nav-pill {
    background-color: #F8FAFC !important;
    border-color: #CBD5E1 !important;
    color: #0F172A !important;
}

.mc-cal-nav-pill button {
    color: var(--mc-gold-base) !important;
}

.mc-cal-nav-pill button:hover {
    color: var(--mc-gold-light) !important;
}

/* ==============================================================================
   12. WHATSAPP MESSAGE TEMPLATE CARDS (SETTINGS DIFFERENTIATION)
   ============================================================================== */
.mc-msg-template-card {
    margin-bottom: 28px !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    border: 2px solid rgba(212, 175, 55, 0.4) !important;
    background-color: #12141F !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55), 0 0 1px rgba(212, 175, 55, 0.2) !important;
    transition: all 0.2s ease !important;
}

.mc-msg-template-card:hover {
    border-color: rgba(212, 175, 55, 0.75) !important;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.7), 0 0 18px rgba(212, 175, 55, 0.22) !important;
    transform: translateY(-2px) !important;
}

/* Individual left accent bars */
.mc-msg-template-card-1 {
    border-left: 6px solid #D4AF37 !important;
}
.mc-msg-template-card-2 {
    border-left: 6px solid #38BDF8 !important;
}
.mc-msg-template-card-3 {
    border-left: 6px solid #FB923C !important;
}
.mc-msg-template-card-4 {
    border-left: 6px solid #34D399 !important;
}

/* Header styling */
.mc-msg-template-card > .fi-section-header,
.mc-msg-template-card > header,
.mc-msg-template-card .fi-section-header {
    padding: 1.15rem 1.4rem !important;
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.16) 0%, rgba(18, 20, 31, 0.95) 100%) !important;
    border-bottom: 1.5px solid rgba(212, 175, 55, 0.3) !important;
}

.mc-msg-template-card .fi-section-header-heading {
    font-size: 1.05rem !important;
    font-weight: 800 !important;
    color: #FFFFFF !important;
    letter-spacing: -0.01em !important;
}

.mc-msg-template-card .fi-section-header-heading svg,
.mc-msg-template-card .fi-section-header svg {
    color: #D4AF37 !important;
    width: 24px !important;
    height: 24px !important;
    filter: drop-shadow(0 2px 8px rgba(212, 175, 55, 0.4)) !important;
}

.mc-msg-template-card-2 .fi-section-header-heading svg {
    color: #38BDF8 !important;
    filter: drop-shadow(0 2px 8px rgba(56, 189, 248, 0.4)) !important;
}
.mc-msg-template-card-3 .fi-section-header-heading svg {
    color: #FB923C !important;
    filter: drop-shadow(0 2px 8px rgba(251, 146, 60, 0.4)) !important;
}
.mc-msg-template-card-4 .fi-section-header-heading svg {
    color: #34D399 !important;
    filter: drop-shadow(0 2px 8px rgba(52, 211, 153, 0.4)) !important;
}

.mc-msg-template-card .fi-section-header-description {
    color: #94A3B8 !important;
    font-size: 0.85rem !important;
    margin-top: 3px !important;
}

/* Light Mode Overrides */
html:not(.dark) .mc-msg-template-card {
    background-color: #FFFFFF !important;
    border: 2px solid #E2E8F0 !important;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.06) !important;
}

html:not(.dark) .mc-msg-template-card-1 {
    border-left: 6px solid #CA8A04 !important;
}
html:not(.dark) .mc-msg-template-card-2 {
    border-left: 6px solid #0284C7 !important;
}
html:not(.dark) .mc-msg-template-card-3 {
    border-left: 6px solid #EA580C !important;
}
html:not(.dark) .mc-msg-template-card-4 {
    border-left: 6px solid #059669 !important;
}

html:not(.dark) .mc-msg-template-card > .fi-section-header,
html:not(.dark) .mc-msg-template-card > header,
html:not(.dark) .mc-msg-template-card .fi-section-header {
    background: linear-gradient(90deg, #FEF9C3 0%, #FFFFFF 100%) !important;
    border-bottom: 1.5px solid rgba(202, 138, 4, 0.3) !important;
}

html:not(.dark) .mc-msg-template-card .fi-section-header-heading {
    color: #0F172A !important;
}

html:not(.dark) .mc-msg-template-card .fi-section-header-description {
    color: #64748B !important;
}


