/* ==========================================================================
   BerekenDeBTW.nl - Light & Dark Theme System
   Identiteit: FinTech & Cash-Groen (Emerald & Factuur-Mint)
   ========================================================================== */

/* Toggle Button Styling */
.theme-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 9999px;
    background: #0f1f1a;
    border: 1px solid #134e4a;
    color: #f0fdf4;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    padding: 0;
}
.theme-toggle-btn:hover {
    background: #115e59;
    border-color: #10b981;
    transform: scale(1.05);
}
.theme-toggle-btn .icon-sun {
    display: block;
    color: #fbbf24;
}
.theme-toggle-btn .icon-moon {
    display: none;
    color: #334155;
}

/* When in Light Mode */
html:not(.dark) .theme-toggle-btn {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #047857;
}
html:not(.dark) .theme-toggle-btn:hover {
    background: #d1fae5;
    border-color: #34d399;
}
html:not(.dark) .theme-toggle-btn .icon-sun {
    display: none;
}
html:not(.dark) .theme-toggle-btn .icon-moon {
    display: block;
}

/* ==========================================================================
   LIGHT MODE OVERRIDES - Hoge Contrastgarantie (FinTech & Factuur Cash-Groen)
   ========================================================================== */
html:not(.dark) body {
    background-color: #f2f8f5 !important;
    color: #0f172a !important;
}
html:not(.dark) .bg-background {
    background-color: #f2f8f5 !important;
}
html:not(.dark) .bg-background\/90 {
    background-color: #ffffff !important;
}
html:not(.dark) .bg-surface {
    background-color: #ffffff !important;
    border-color: #d1fae5 !important;
}
html:not(.dark) .bg-surface\/95 {
    background-color: rgba(255, 255, 255, 0.97) !important;
}
html:not(.dark) nav {
    background-color: rgba(255, 255, 255, 0.98) !important;
    border-color: #e6f4ee !important;
}
html:not(.dark) nav a, 
html:not(.dark) nav button {
    color: #334155 !important;
}
html:not(.dark) nav a:hover,
html:not(.dark) nav button:hover {
    color: #047857 !important;
}
html:not(.dark) nav .text-white {
    color: #0f172a !important;
}

/* ALGEMENE TYPOGRAFIE IN LIGHT MODE */
html:not(.dark) h1.text-white,
html:not(.dark) h2.text-white,
html:not(.dark) h3.text-white,
html:not(.dark) h4.text-white {
    color: #0f172a !important;
}
html:not(.dark) .text-slate-100 {
    color: #0f172a !important;
}
html:not(.dark) .text-slate-200 {
    color: #1e293b !important;
}
html:not(.dark) .text-slate-300 {
    color: #334155 !important;
}
html:not(.dark) .text-slate-400 {
    color: #475569 !important;
}

/* PROMO & GRADIENT KAARTEN (Voorkomt zwarte tekst op donkergroene gradient!) */
html:not(.dark) div.bg-gradient-to-br:not(.w-8):not(.w-9):not(.text-transparent),
html:not(.dark) div.bg-gradient-to-r:not(.w-8):not(.w-9):not(.text-transparent) {
    background-image: linear-gradient(135deg, #ecfdf5 0%, #ffffff 60%, #f0fdf4 100%) !important;
    border-color: #a7f3d0 !important;
    box-shadow: 0 10px 25px -5px rgba(5, 150, 105, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.03) !important;
}

/* TITEL GRADIENTS IN LIGHT MODE */
html:not(.dark) .text-transparent.bg-clip-text {
    background-image: linear-gradient(135deg, #047857 0%, #0d9488 60%, #047857 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
}

/* BADGES & CHIPS */
html:not(.dark) .text-emerald-400 {
    color: #047857 !important;
}
html:not(.dark) .bg-emerald-500\/10,
html:not(.dark) .bg-emerald-500\/20 {
    background-color: #d1fae5 !important;
    border-color: #a7f3d0 !important;
}

/* KAART-VLAKKEN */
html:not(.dark) .bg-slate-900,
html:not(.dark) .bg-slate-900\/70 {
    background-color: #eaf4ef !important;
}
html:not(.dark) .bg-slate-800,
html:not(.dark) .bg-slate-800\/80,
html:not(.dark) .bg-slate-800\/90 {
    background-color: #e2f0e8 !important;
    color: #1e293b !important;
}
html:not(.dark) .border-slate-800,
html:not(.dark) .border-slate-800\/80,
html:not(.dark) .border-slate-700,
html:not(.dark) .border-slate-700\/80 {
    border-color: #d1fae5 !important;
}
html:not(.dark) input,
html:not(.dark) select {
    background-color: #ffffff !important;
    color: #0f172a !important;
    border-color: #cbd5e1 !important;
}
html:not(.dark) input::placeholder {
    color: #94a3b8 !important;
}

/* Primaire knoppen */
html:not(.dark) .bg-emerald-600,
html:not(.dark) .bg-emerald-600 * {
    background-color: #047857 !important;
    color: #ffffff !important;
}

/* ==========================================================================
   UNIFIED PORTFOLIO FOOTER (BerekenDeBTW.nl)
   Identiteit: FinTech & Cash-Groen (Emerald #10B981)
   ========================================================================== */
.site-footer {
    --footer-accent: #10B981;
    --footer-accent-bg: rgba(16, 185, 129, 0.12);
    --footer-accent-border: rgba(16, 185, 129, 0.3);
    background: #091210 !important;
    color: #94A3B8 !important;
    border-top: 1px solid #134E4A !important;
    padding: 2.25rem 1.25rem 1.75rem !important;
    margin-top: 3rem;
    font-size: 0.75rem;
    width: 100%;
    position: relative;
    z-index: 10;
}

.site-footer .footer-container {
    max-width: 1152px;
    margin: 0 auto;
    padding: 0;
}

.site-footer .footer-top {
    display: grid;
    grid-template-columns: 1.2fr 1.3fr 1.1fr;
    gap: 2rem;
    margin-bottom: 1.25rem;
}

.ck-footer-title {
    color: #FFFFFF !important;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    margin-bottom: 0.45rem;
}

.ck-footer-desc {
    font-size: 0.78rem;
    line-height: 1.45;
    color: #94A3B8 !important;
    margin-bottom: 0.65rem;
}

.ck-footer-pub {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.2rem;
    font-size: 0.75rem;
    color: #CBD5E1 !important;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    padding: 0.5rem 0.65rem;
    border-radius: 8px;
}

.ck-footer-pub strong {
    color: #F8FAFC !important;
}

.ck-footer-pub a {
    color: var(--footer-accent) !important;
    text-decoration: none;
    font-weight: 600;
}

.ck-footer-pub a:hover {
    text-decoration: underline;
}

.ck-section-heading {
    color: #F8FAFC !important;
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.55rem;
}

.ck-nav-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.38rem 0.65rem;
}

.ck-nav-grid li {
    margin: 0;
    padding: 0;
}

.ck-nav-grid a {
    color: #94A3B8 !important;
    text-decoration: none;
    font-size: 0.76rem;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.15s ease;
}

.ck-nav-grid a:hover {
    color: #FFFFFF !important;
}

.ck-net-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.32rem;
}

.ck-net-list li {
    margin: 0;
    padding: 0;
}

.ck-net-list a {
    color: #94A3B8 !important;
    text-decoration: none;
    font-size: 0.76rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.32rem 0.55rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: all 0.15s ease;
}

.ck-net-list a:hover {
    color: #FFFFFF !important;
    background: rgba(255, 255, 255, 0.05);
}

.ck-net-list a.active {
    color: var(--footer-accent) !important;
    background: var(--footer-accent-bg) !important;
    border-color: var(--footer-accent-border) !important;
    font-weight: 700;
}

.ck-net-tag {
    font-size: 0.68rem;
    color: #64748B !important;
    font-weight: 500;
}

.ck-net-list a.active .ck-net-tag {
    color: var(--footer-accent) !important;
}

.ck-disclaimer {
    font-size: 0.7rem;
    line-height: 1.42;
    color: #64748B !important;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 0.6rem 0.7rem;
    margin-bottom: 1rem;
}

.ck-disclaimer strong {
    color: #94A3B8 !important;
}

.ck-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 0.85rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    text-align: center;
    font-size: 0.72rem;
    color: #64748B !important;
}

.ck-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #94A3B8 !important;
    font-size: 0.75rem;
    text-decoration: none;
    transition: opacity 0.15s ease;
}

.ck-badge:hover {
    opacity: 0.9;
}

.ck-badge img {
    height: 26px;
    width: auto;
    border-radius: 6px;
    display: inline-block;
}

.ck-badge strong {
    color: #FFFFFF !important;
    letter-spacing: 0.06em;
    font-size: 0.78rem;
}

@media (max-width: 768px) {
    .site-footer {
        padding: 1.5rem 1.15rem 5.5rem !important; /* Ruimte voor de sticky floating affiliate balk onderin */
    }
    .site-footer .footer-top {
        grid-template-columns: 1fr !important;
        gap: 1.15rem !important;
        margin-bottom: 1.1rem !important;
    }
}


/* ==========================================================================
   Mobiele Sticky Conversie Balk - Perfecte Uitlijning & Contrast
   ========================================================================== */
#sticky-affiliate-bar {
    align-items: center;
}
#sticky-affiliate-bar .w-9 {
    box-shadow: 0 4px 10px rgba(5, 150, 105, 0.3);
}
html:not(.dark) #sticky-affiliate-bar {
    background-color: rgba(255, 255, 255, 0.98) !important;
    border-color: #a7f3d0 !important;
    box-shadow: 0 10px 25px -5px rgba(5, 150, 105, 0.2), 0 8px 10px -6px rgba(15, 23, 42, 0.05) !important;
}
html:not(.dark) #sticky-affiliate-bar .text-white {
    color: #0f172a !important;
}
html:not(.dark) #sticky-affiliate-bar .text-emerald-400 {
    color: #047857 !important;
}
html:not(.dark) #sticky-affiliate-bar button[aria-label="Sluiten"] {
    background-color: #f1f5f9 !important;
    color: #64748b !important;
}
html:not(.dark) #sticky-affiliate-bar button[aria-label="Sluiten"]:hover {
    background-color: #e2e8f0 !important;
    color: #0f172a !important;
}

/* ==========================================================================
   RESULTAATKAARTEN & BEDRAGEN CONTRAST IN LIGHT MODE
   Voorkomt dat Excl. BTW wit-op-wit valt en borgt strakke euro-uitlijning
   ========================================================================== */
html:not(.dark) #out-excl,
html:not(.dark) [id="out-excl"],
html:not(.dark) .out-excl-val {
    color: #0f172a !important;
}
html:not(.dark) .font-mono.text-white,
html:not(.dark) .text-white.font-mono {
    color: #0f172a !important;
}
#out-excl, #out-vat, #out-incl {
    white-space: nowrap !important;
}

/* ==========================================================================
   Thermal Receipt & Scrollbar Styles (Extracted from inline <style>)
   ========================================================================== */
.thermal-receipt { background-color: #faf8f5; color: #18181b; position: relative; box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.5); }
.receipt-zigzag-top { background: linear-gradient(-45deg, #faf8f5 8px, transparent 0), linear-gradient(45deg, #faf8f5 8px, transparent 0); background-position: left-bottom; background-repeat: repeat-x; background-size: 16px 16px; height: 16px; width: 100%; }
.receipt-zigzag-bottom { background: linear-gradient(-45deg, transparent 8px, #faf8f5 0), linear-gradient(45deg, transparent 8px, #faf8f5 0); background-position: left-top; background-repeat: repeat-x; background-size: 16px 16px; height: 16px; width: 100%; }
.barcode { background: repeating-linear-gradient(90deg, #18181b, #18181b 2px, transparent 2px, transparent 4px, #18181b 4px, #18181b 5px, transparent 5px, transparent 8px, #18181b 8px, #18181b 11px, transparent 11px, transparent 13px); }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #0b0f17; }
::-webkit-scrollbar-thumb { background: #273043; border-radius: 9999px; }
::-webkit-scrollbar-thumb:hover { background: #3b82f6; }

/* WCAG AA Button Contrast Guarantee */
.bg-emerald-600, .bg-emerald-700 {
    background-color: #047857 !important;
    color: #ffffff !important;
}
html:not(.dark) #out-vat {
    color: #047857 !important;
}
