/* === COMMON.CSS - Cryptoluxo - 2024/2025 === */

/* Reset & base */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', 'Rubik', Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

/* BODY MIN HEIGHT FOR FOOTER PUSH */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: 70px;
    background: var(--bg, #f5f5f5);
    color: var(--text, #222);
}

/* Container with 90% width up to 1800px, centered */
.container {
    width: 90vw;
    max-width: 3500px;
    margin: 0 auto;
    flex: 1;
}

@media (max-width: 1200px) {
    .container { max-width: 98vw; }
}
@media (max-width: 600px) {
    .container { width: 99vw; }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: inherit;
    font-weight: 700;
    margin-top: 1.5em;
    margin-bottom: 0.75em;
    line-height: 1.2;
    color: var(--heading, #2d3748);
}
h1 { font-size: 2.2rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.95rem; }

p {
    margin: 0 0 1em 0;
    color: var(--text, #222);
}

a {
    color: var(--primary, #ff9900);
    text-decoration: none;
    transition: color .2s;
}
a:hover, a:focus {
    color: var(--primary-hover, #ffb34c);
    text-decoration: underline;
}

/* NAVBAR */
.navbar {
    border-bottom: 1px solid var(--navbar-border, #ccc);
    padding: 0.6rem 0;
    background: var(--navbar-bg, #e0e0e0);
    box-shadow: 0 1px 6px var(--navbar-shadow, rgba(100,110,120,0.09));
}
.navbar .container {
    flex: none; /* Voorkomt dat de container uitzet */
    margin: 0 auto; /* Behoudt centrering */
    padding: 0; /* Optioneel: verwijdert interne padding */
}
@media (max-width: 768px) {
    .container,
    .navbar .container {
        padding-left: 12px;
        padding-right: 12px;
    }
}

.navbar-brand {
    font-family: 'Segoe UI', 'Rubik', Arial, Helvetica, sans-serif;
    font-size: 1.5rem;
    letter-spacing: 0.03em;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 2px; /* subtiele ruimte tussen Prophet & Crypto */
}
.navbar-brand span:first-child {
    color: #e0e0e0; /* Lichtgrijs (voor dark theme), eventueel var(--navbar-link) */
    font-weight: 700;
}
.navbar-brand span:last-child {
    color: #ffcc00; /* Geel-oranje, net als vroeger */
    font-weight: 700;
    margin-left: 2px;
}
body.light-theme .navbar-brand span:first-child {
    color: #333333; /* Zwart voor light theme */
}
body.light-theme .navbar-brand span:last-child {
    color: #ff9900; /* Oranje voor light theme */
}
.nav-link {
    padding: 10px 16px;
    font-weight: 500;
    color: var(--navbar-link, #333) !important;
    transition: color .15s;
    display: flex;
    align-items: center;
}
.nav-link:hover, .nav-link.active {
    color: var(--navbar-link-hover, #ff9900) !important;
}
.dropdown-menu {
    border-radius: 10px;
    border: 1px solid var(--dropdown-border, #e0e0e0);
    box-shadow: 0 4px 24px var(--dropdown-shadow, rgba(0,0,0,0.08));
    background: var(--dropdown-bg, #fff);
    min-width: 180px;
    margin-top: 8px;
}
.dropdown-item {
    font-weight: 400;
    padding: 10px 20px;
    color: var(--dropdown-link, #333);
    background: transparent;
    border: none;
    transition: background .18s, color .18s;
}
.dropdown-item:hover, .dropdown-item.active {
    background: var(--dropdown-hover-bg, #f2f2f2);
    color: var(--dropdown-link-hover, #ff9900);
}

/* SETTINGS PANEL */
.settings-container {
    position: relative;
}
.settings-btn {
    background: none;
    border: none;
    font-size: 18px;
    padding: 10px 12px 4px 12px; /* Beter gecentreerd tov tekst */
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.3s, transform 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
}
.settings-btn i {
    color: var(--navbar-link, #333);
    transition: color 0.2s;
    font-size: 22px;
    vertical-align: middle;
}
.settings-btn:hover i,
.settings-btn:focus i {
    color: var(--navbar-link-hover, #ff9900);
}
.settings-panel {
    position: absolute;
    top: 100%;
    right: 0;
    width: 320px;
    border-radius: 12px;
    box-shadow: 0 4px 20px var(--shadow, rgba(150,170,200,0.10));
    padding: 24px 18px;
    display: none;
    z-index: 1000;
    border: 1px solid var(--settings-border, #e2e8f0);
    background: var(--settings-bg, #fff);
}
.settings-panel.show { display: block; }
.settings-header h6 {
    margin: 0 0 15px 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--settings-header-text, #2d3748);
}
.settings-section { margin-bottom: 22px; }
.settings-section:last-child { margin-bottom: 0; }
.settings-label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    color: var(--settings-label, #4a5568);
}
.theme-toggle { display: flex; gap: 8px; }
.theme-option, .currency-option, .language-option {
    flex: 1;
    border-radius: 8px;
    padding: 12px;
    cursor: pointer;
    text-align: center;
    transition: all 0.23s;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 1px solid transparent;
    margin-bottom: 7px;
}
.theme-option:hover, .currency-option:hover, .language-option:hover {
    background: var(--dropdown-hover-bg, #f2f2f2);
    border-color: var(--dropdown-link-hover, #ff9900);
    color: var(--dropdown-link-hover, #ff9900);
}
.theme-option.active, .currency-option.active, .language-option.active {
    background: var(--primary, #ff9900);
    color: #fff !important;
    border-color: var(--primary, #ff9900);
    box-shadow: 0 2px 8px rgba(255,153,0,0.12);
}
.theme-icon { display: block; font-size: 20px; margin-bottom: 5px; }
.language-options, .currency-options {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.language-options { flex-direction: column; gap: 2px; }
.flag-icon { width: 20px; height: 15px; margin-right: 12px; border-radius: 3px; }
.lang-code { margin-left: auto; font-size: 12px; opacity: 0.7; }
.currency-symbol { font-size: 18px; font-weight: bold; }

/* BUTTONS */
.btn, .btn-theme, .btn-primary, .btn-outline, .btn-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 8px;
    padding: 12px 22px;
    min-height: 44px;
    min-width: 120px;
    cursor: pointer;
    border: none;
    background: var(--button-bg, #e9ecef);
    color: var(--button-text, #495057);
    transition: all .18s cubic-bezier(.4,0,.2,1);
    box-shadow: 0 1px 2px var(--button-shadow, rgba(100, 140, 200, 0.08));
    text-align: center;
    gap: 7px;
}
.btn:hover, .btn-theme:hover, .btn-primary:hover, .btn-outline:hover, .btn-link:hover {
    background: var(--button-hover-bg, #ff9900);
    color: var(--button-hover-text, #fff);
    box-shadow: 0 4px 12px var(--button-shadow-hover, rgba(255,153,0,0.13));
    border-color: var(--button-border-hover, #ff9900);
    text-decoration: none;
}
.btn:active {
    background: var(--button-active-bg, #ffd369);
    color: var(--button-active-text, #333);
}
.btn-outline {
    border: 1.5px solid var(--primary, #ff9900);
    background: transparent;
    color: var(--primary, #ff9900);
    box-shadow: none;
    padding: 11px 21px;
}
.btn-outline:hover {
    background: var(--primary, #ff9900);
    color: #fff;
    box-shadow: 0 2px 10px var(--button-shadow-hover, rgba(255,153,0,0.13));
}
.btn-link {
    background: transparent;
    color: var(--primary, #ff9900);
    border: none;
    padding: 0;
    min-width: 0;
    min-height: 0;
    font-weight: 500;
    text-decoration: underline;
    box-shadow: none;
}
.btn-link:hover {
    color: var(--primary-hover, #ffb34c);
    text-decoration: none;
}


/* TABLES (light/dark, alternating rows, hover, borders) */
.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1rem;
    border-radius: 8px;
    overflow: hidden;
    background: var(--table-bg, #fff);
    color: var(--text, #222);
}

.table th, .table td {
    padding: 12px 14px;
    text-align: left;
    border: 1px solid var(--border, #ccc);
    background: inherit;
}

.table th { 
    font-weight: 600;
    background: var(--card-header-bg, #e6eefb);
    color: var(--heading, #2d3748);
}

/* Alternating rows (default light) */
.table tbody tr:nth-child(odd) {
    background: var(--table-row-odd, #f7fafc);
}
.table tbody tr:nth-child(even) {
    background: var(--table-row-even, #e6e6e6);
}

/* Hover effect */
.table tbody tr:hover {
    background: var(--table-row-hover, #e6e6e6) !important;
    color: var(--text, #222) !important;
}

/* Links in table rows - colors defined in theme files */
.table tbody tr a:not(.coin-chip) {
    text-decoration: none;
}
.table tbody tr a:not(.coin-chip):hover {
    text-decoration: underline;
}

/* Make sure non-link text does not change on hover */
.table-hover tbody tr:hover td {
    color: inherit;
}

/* DARK THEME OVERRIDES */
body.dark-theme .table {
    background: var(--table-bg, #1c1c1c);
    color: var(--text, #e0e0e0);
}

body.dark-theme .table th, 
body.dark-theme .table td {
    border: 1px solid var(--border, #333a3f);
}

body.dark-theme .table th {
    background: var(--card-header-bg, #19202c);
    color: var(--heading, #e2e8f0);
}

/* Alternating dark rows */
body.dark-theme .table tbody tr:nth-child(odd) {
    background: var(--table-row-odd, #1a202c);
}
body.dark-theme .table tbody tr:nth-child(even) {
    background: var(--table-row-even, #272d3a);
}
body.dark-theme .table tbody tr:hover {
    background: var(--table-row-hover, #1a3a5a) !important;
    color: #ffffff !important;
}

/* Links in dark table rows - colors defined in darktheme.css */


/* INLINE FORM FIX voor Bootstrap 5.3 */
.form-inline-fix .form-control,
.form-inline-fix .form-select {
  width: auto !important;
  min-width: 120px;
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  padding: 7px 16px;
  min-height: 34px;
  line-height: 1.25;
  font-size: 1rem;
  border-radius: 8px;
  margin-bottom: 0;
}

/* Zorg dat kleine knoppen dezelfde hoogte hebben als kleine form controls */
.form-inline-fix .btn-sm {
  min-height: 34px;
  padding: 7px 16px;
  line-height: 1.25;
  border-radius: 8px;
}

/* Compactere variant voor zeer brede filterbalken */
.form-inline-compact .form-control,
.form-inline-compact .form-select {
  min-width: 100px;
  padding: 6px 12px;
  font-size: 0.9rem;
}
.form-inline-compact .form-control[name="search"] {
  min-width: 220px; /* zoekveld toch iets breder voor gebruiksgemak */
}
.form-inline-compact .btn-sm {
  min-height: 32px;
  padding: 6px 12px;
}

/* Multichart Page Styles */
#chart-container {
    width: 100%;
    min-height: 440px;
    background: #232323;
    border-radius: 10px;
    margin: 0 auto 10px auto;
    position: relative;
}

#multiChart {
    height: 420px !important;
    width: 100% !important;
}

.coin-performance {
    flex: 1 1 135px;
    min-width: 120px;
    background: #252830;
    padding: 10px 10px 6px 14px;
    border-radius: 8px;
    margin: 0 2px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border-left: 7px solid #363c4e;
    font-size: 14px;
}

.loading-indicator, .error-indicator {
    color: #fff;
    text-align: center;
    margin: 20px 0;
    font-size: 17px;
    position: absolute;
    left: 0;
    right: 0;
    top: 40%;
    z-index: 5;
}

.error-indicator {
    color: #ff4d4f;
}

.coin-color-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    margin-right: 8px;
    display: inline-block;
    border: 2px solid #aaa;
    background: transparent;
}

/* Hottest page styles */
.crypto-card {
    transition: all 0.3s ease;
    margin-bottom: 18px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--bs-border-color);
    max-width: 520px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.crypto-card:hover, .crypto-card:focus {
    transform: translateY(-5px);
    box-shadow: 0 10px 28px 0 rgba(0,0,0,0.25), 0 2px 10px rgba(0,0,0,0.14);
}

.crypto-card .card-header, .crypto-card .card-header:hover, .crypto-card .card-header:focus {
    border-top-left-radius: var(--border-radius, 14px);
    border-top-right-radius: var(--border-radius, 14px);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    background: var(--card-header-bg, #f7fafc);
    box-shadow: none;
    z-index: 1;
}

.positive-change {
    color: #25C16F;
    font-weight: bold;
}

.negative-change {
    color: #FF4B4B;
    font-weight: bold;
}

.crypto-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid var(--bs-border-color);
    border-top-left-radius: var(--border-radius, 14px);
    border-top-right-radius: var(--border-radius, 14px);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    width: 100%;
    box-sizing: border-box;
    background: var(--card-header-bg, #f7fafc);
    /* Zorg dat header exact aansluit op de kaart */
    margin: 0;
}

.crypto-card {
    overflow: hidden;
}

.coin-icon {
    width: 24px;
    height: 24px;
    margin-right: 8px;
}

.coin-name {
    font-weight: bold;
    font-size: 1.1em;
}

.price-change {
    font-size: 1.2em;
    font-weight: bold;
}

.crypto-card .card-body {
    padding: 1rem 1.25rem;
}

.metric {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.metric-label {
    color: #888;
    font-size: 0.9em;
}

.metric-value {
    font-weight: bold;
}

.connection-status {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 5px;
}

.connected {
    background-color: #25C16F;
}

.disconnected {
    background-color: #FF4B4B;
}

.last-update {
    font-size: 0.8em;
    color: #888;
}

.rsi-overbought {
    color: #FF4B4B;
    font-weight: bold;
}

.rsi-oversold {
    color: #25C16F;
    font-weight: bold;
}

.rsi-neutral {
    color: #FFA500;
}

.ema-bullish {
    color: #25C16F;
    font-weight: bold;
}

.ema-bearish {
    color: #FF4B4B;
    font-weight: bold;
}

.ema-neutral {
    color: #888;
}

.technical-indicators {
    border-top: 1px solid #333;
    padding-top: 0.5rem;
    margin-top: 0.5rem;
}

.indicator-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.25rem;
    font-size: 0.85em;
}

.indicator-label {
    color: #aaa;
}

.indicator-value {
    font-weight: 500;
}

.price-trend {
    font-size: 0.8em;
    margin-left: 5px;
}

.trend-up {
    color: #25C16F;
}

.trend-down {
    color: #FF4B4B;
}

.trend-neutral {
    color: #888;
}

.volume-bar {
    height: 4px;
    background-color: #333;
    border-radius: 2px;
    overflow: hidden;
    margin-top: 5px;
}

.volume-fill {
    height: 100%;
    background: linear-gradient(90deg, #25C16F, #1E90FF);
    transition: width 0.3s ease;
}

.crypto-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 22px;
    margin-top: 24px;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 1200px) {
    .crypto-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .crypto-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

.flash {
    animation: flash-animation 1s ease-out;
}

@keyframes flash-animation {
    0% { background-color: rgba(37, 193, 111, 0.3); }
    100% { background-color: #2a2a2a; }
}

.flash-negative {
    animation: flash-negative-animation 1s ease-out;
}

@keyframes flash-negative-animation {
    0% { background-color: rgba(255, 75, 75, 0.3); }
    100% { background-color: #2a2a2a; }
}

@media (max-width: 768px) {
    .crypto-grid {
        grid-template-columns: 1fr;
    }
}

.startend-info {
    font-size: 13px;
    margin-top: 4px;
    color: #aaa;
}

.neutral {
    color: #bbb;
}

#performance-cards {
    display: flex;
    justify-content: space-between;
    margin: 22px 0 8px 0;
    gap: 10px;
    flex-wrap: wrap;
}

.coin-name {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 2px;
    margin-right: 8px;
}

.coin-percent {
    font-size: 17px;
    font-weight: 700;
}

.positive {
    color: #00c176;
}

.negative {
    color: #ff4d4f;
}

.coin-select {
    min-width: 120px;
    flex: 1 1 120px;
    max-width: 180px;
}

#period {
    min-width: 200px;
}

#currency {
    min-width: 110px;
}

#update-chart {
    min-width: 120px;
}

/* Responsive Design */
@media (max-width: 1100px) {
    #chart-container {
        min-height: 340px;
    }
    
    #multiChart {
        height: 320px !important;
    }
    
    #performance-cards {
        flex-direction: column;
        gap: 6px;
    }
    
    .coin-select, #period, #currency, #update-chart {
        max-width: 100%;
        flex: 1 1 100%;
        margin-bottom: 8px;
    }
}

@media (max-width: 700px) {
    #chart-container {
        min-height: 220px;
    }
    
    #multiChart {
        height: 180px !important;
    }
    
    .coin-select, #period, #currency, #update-chart {
        max-width: 100%;
        min-width: 0;
        flex: 1 1 100%;
        margin-bottom: 8px;
    }
    
    #update-chart {
        width: 100%;
    }
}

/* CARDS */
.card, .card-heatmap, .business-guide {
    border-radius: 14px;
    box-shadow: 0 4px 18px var(--shadow, rgba(150,170,200,0.10));
    background: var(--card-bg, #f7fafc);
    border: 1px solid var(--card-border, #e2e8f0);
    margin: 8px 0;
    padding: 8px 8px 8px 8px;
    color: var(--text, #222);
    transition: transform .17s, box-shadow .17s, border-color .17s;
}
.card:hover, .card-heatmap:hover, .business-guide:hover {
    transform: scale(1.0);
    box-shadow: 0 8px 32px var(--shadow-hover, rgba(120,160,220,0.13));
    border-color: var(--card-border-hover, #b6d0f7);
}

/* Cryptoluxo market.php card styles START */
.crypto-card {
    min-width: 380px;
    max-width: 520px;
    margin-bottom: 0.25rem;
    padding: 0.5rem 0.5rem 0.7rem 0.5rem;
}
.crypto-card .card-header {
    border-bottom: 1px solid var(--card-border, #e2e8f0);
    min-height: 56px;
}
.crypto-card .percent-change {
    font-size: 1.18rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}
.crypto-card .positive-change {
    color: #25C16F;
}
.crypto-card .negative-change {
    color: #FF4B4B;
}
.crypto-card .card-body {
    padding: 1.1rem 1.2rem 1.2rem 1.2rem;
}
.crypto-card .indicator-title {
    font-size: 1.01rem;
    color: var(--primary, #ff9900);
    letter-spacing: 0.01em;
}
.indicator-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.15rem;
    margin-top: 0.1rem;
}
.indicator-box {
    border-radius: 8px;
    border: 1.2px solid var(--card-border, #e2e8f0);
    box-shadow: 0 1px 6px var(--shadow, rgba(150,170,200,0.07));
    padding: 0.3rem 0.1rem 0.2rem 0.1rem;
    margin-bottom: 0;
    min-width: 0;
}
.rsi-box.rsi-overbought {
    border-color: #ffb3b3;
}
.rsi-box.rsi-oversold {
    border-color: #b3ffd1;
}
.rsi-box.rsi-neutral {
    border-color: #ffe7b3;
}
.ema-diff.ema-bullish {
    color: #25C16F;
    font-weight: 600;
}
.ema-diff.ema-bearish {
    color: #FF4B4B;
    font-weight: 600;
}
.crypto-card .btn {
    min-width: 0;
    font-size: 1rem;
    border-radius: 8px;
    padding: 10px 0;
}
/* Cryptoluxo market.php card styles END */

/* FORMS */
input, select, textarea, .form-control {
    font-family: inherit;
    font-size: 1rem;
    border-radius: 8px;
    border: 1px solid var(--input-border, #ced4da);
    background: var(--input-bg, #fff);
    color: var(--input-text, #333333);
    padding: 13px 15px;
    transition: border-color .18s, box-shadow .18s;
    margin-bottom: 1rem;
    box-sizing: border-box;
}
input:focus, select:focus, textarea:focus, .form-control:focus {
    outline: none;
    border-color: var(--input-focus-border, #adb5bd);
    box-shadow: 0 0 0 2px var(--input-focus-shadow, rgba(173,181,189,0.25));
    background: var(--input-bg-focus, #fff);
    color: var(--input-text-focus, #000);
}
input::placeholder, textarea::placeholder {
    color: var(--input-placeholder, rgba(62, 82, 129, 0.821));
    opacity: 1;
}
.form-group { margin-bottom: 1.6rem; }
.form-group label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
    color: var(--label, #2d3748);
}

/* FOOTER */
.footer {
    width: 100%;
    text-align: center;
    padding: 18px 0 15px 0;
    margin-top: auto;
    font-size: 0.95rem;
    background: var(--footer-bg, #A8A8A8);
    color: var(--footer-text, #606060);
    border-top: 1px solid var(--footer-border, #e2e8f0);
}
.footer a {
    color: var(--footer-link, #606060);
    text-decoration: none;
    transition: color .18s;
}
.footer a:hover {
    color: var(--footer-link-hover, #fff);
    text-decoration: underline;
}

/* Responsive headings/buttons */
@media (max-width: 768px) {
    h1 { font-size: 1.45rem; }
    h2 { font-size: 1.18rem; }
    h3 { font-size: 1.05rem; }
    .btn, .btn-theme, .btn-primary { padding: 11px 13px; font-size: 0.97rem; min-width: 90px;}
    .table th, .table td { padding: 8px 5px;}
    .container { width: 98vw; }
}

/* Cookie Consent Banner (themeable, simplified) */
.cookie-consent {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: 96vw;
    max-width: 600px;
    background: var(--card-bg, #f7fafc);
    color: var(--text, #222);
    border-radius: 12px;
    font-size: 1rem;
    z-index: 9999;
    display: none;
    flex-direction: column;
    box-shadow: 0 4px 12px var(--shadow, rgba(150,170,200,0.10));
    border: 1px solid var(--card-border, #e2e8f0);
    overflow: hidden;
}
.cookie-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 22px;
    background: var(--card-header-bg);
    border-bottom: 1px solid var(--card-border);
}
.cookie-header h4 {
    margin: 0;
    font-size: 1.08rem;
    color: var(--heading);
}
.close-btn {
    background: none;
    border: none;
    color: var(--heading);
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}
.cookie-body { padding: 20px; }
.cookie-options { margin: 15px 0; }
.cookie-option {
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
}
.cookie-option input[type="checkbox"] {
    margin-top: 4px;
    margin-right: 12px;
}
.cookie-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 15px 22px;
    background: var(--card-header-bg);
    border-top: 1px solid var(--card-border);
}
.cookie-consent a {
    color: var(--primary);
    text-decoration: underline;
}
.cookie-consent a:hover {
    color: var(--primary-hover);
}
.disclaimer {
    font-size: 0.95em;
    color: var(--input-placeholder);
    margin-top: 8px;
    font-style: italic;
}
.cookie-settings-btn {
    position: fixed;
    bottom: 24px;
    right: 28px;
    background: var(--card-header-bg);
    color: var(--heading);
    padding: 8px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1em;
    z-index: 9990;
    box-shadow: 0 2px 5px var(--shadow);
    border: 1px solid var(--card-border);
    display: none;
}
.cookie-settings-btn i { margin-right: 7px; }
@media (max-width: 768px) {
    .cookie-consent, .cookie-settings-btn { width: 98vw; max-width: none; left: 1vw; right: 1vw; transform: none; }
    .cookie-footer { flex-direction: column; align-items: stretch; gap: 7px; }
}
/* Article modal: keep images/videos inside modal and support for light/dark themes */
#articleModal .modal-body img,
#articleModal .modal-body video {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1rem auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
}
#articleModal .modal-body {
    overflow-x: auto;
    word-break: break-word;
}
.custom-article-modal {
    max-width: 1080px;  /* or 90vw if you want even more responsive */
}
body.dark-theme #articleModal .modal-content {
    background: #222;
    color: #fff;
}
body.light-theme #articleModal .modal-content {
    background: #fff;
    color: #222;
}
.dropdown-menu {
    transition: opacity 0.15s;
    /* Laat display en pointer-events aan Bootstrap! */
}
/* Algemene modal sluitknop voor beide thema's */
/* === COMMON.CSS - Algemene modal sluitknop voor beide thema's === */

/* Layout voor sluitknop in modal header - NIET kleuren of backgrounds! */
.modal-header .btn-close,
.modal-header .close {
    position: absolute;
    top: 18px;
    right: 22px;
    z-index: 10;
    padding: 0.6rem 0.8rem;
    border-radius: 50%;
    font-size: 1.8rem;     /* werkt enkel op .close (Font Awesome/X) */
    opacity: 0.85;
    box-shadow: none;
    border: none;
    background: none;
    line-height: 1;
    outline: none;
    transition: background 0.16s, opacity 0.2s;
}

/* Focus ring voor toegankelijkheid */
.modal-header .btn-close:focus,
.modal-header .close:focus {
    outline: 2px solid var(--primary, #ff9900);
    outline-offset: 1px;
}

/* Subtiele hover (enkel lichte achtergrond, NIET de kleur zelf) */
.modal-header .btn-close:hover,
.modal-header .close:hover {
    background: rgba(255,255,255,0.12);
    opacity: 1;
}

/* Modal-header (ruimte voorzien voor X) */
.modal-header {
    position: relative;
    padding-right: 46px !important;
    border-top-left-radius: 16px !important;
    border-top-right-radius: 16px !important;
}

/* Modal content mooi afgerond */
.modal-content {
    border-radius: 16px !important;
    box-shadow: 0 8px 32px rgba(24,36,65,0.11) !important;
    border: 1px solid #e2e8f0 !important;
}
.modal-x-close {
    position: absolute;
    top: 18px;
    right: 22px;
    z-index: 10;
    font-size: 2.1rem;
    font-weight: 300;
    color: var(--modal-close, #222);
    background: none;
    border: none;
    border-radius: 50%;
    padding: 0.3em 0.7em;
    opacity: 0.85;
    line-height: 1;
    transition: background 0.18s, color 0.16s, opacity 0.2s;
}
body.dark-theme .modal-x-close { color: #fff; }
.modal-x-close:hover {
    background: rgba(255,255,255,0.12);
    color: var(--primary, #ff9900);
    opacity: 1;
}
.modal-x-close:focus {
    outline: 2px solid var(--primary, #ff9900);
    outline-offset: 1px;
}

/* RTL support for Arabic pages: right-align tables and modal content */
html[lang="ar"] .table th,
html[lang="ar"] .table td {
    text-align: right;
}

html[lang="ar"] .modal .modal-content {
    direction: rtl;
}
html[lang="ar"] .modal .modal-header,
html[lang="ar"] .modal .modal-body,
html[lang="ar"] .modal .modal-footer {
    text-align: right;
}

/* ========== GLOSSARY STYLES ========== */

/* Glossary Header - Sticky positioning and layout */
.glossary-header {
    position: sticky;
    top: 70px;
    z-index: 1020;
    margin-bottom: 0;
    padding-bottom: 0;
}

.glossary-header .d-flex {
    margin-bottom: 0;
    padding-bottom: 0;
}

.glossary-header h2 {
    font-family: inherit;
    font-weight: 700;
    font-size: 2rem;
    margin: 0;
    color: var(--heading);
}

/* Sticky Panel for Letter Navigation */
.glossary-sticky-panel {
    position: sticky;
    top: 70px;
    z-index: 1030;
    margin-top: -1px;
}

/* Letter Navigation */
.glossary-letter-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-bottom: 0;
    padding: 0.75rem 0.5rem;
    border-radius: var(--border-radius, 18px) var(--border-radius, 18px) 0 0;
}

.letter-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.75rem;
    font-weight: 600;
    font-size: 1.1em;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    min-width: 2.5rem;
    height: 2.5rem;
    color: var(--text);
    border: 1px solid var(--border);
}

.letter-link:hover {
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* Glossary Content Area */
.glossary-content {
    padding-bottom: 2rem;
    margin-top: 1rem;
}

/* Letter Sections */
.glossary-letter-section {
    margin-bottom: 2rem;
}

.glossary-letter-title {
    position: sticky;
    top: 140px;
    z-index: 1010;
    font-size: 2.5rem;
    font-weight: 700;
    margin: 2rem 0 1.5rem 0;
    padding: 0.5rem 0;
    text-align: left;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--heading);
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--primary);
}

/* Terms List */
.glossary-terms-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Individual Term Cards */
.glossary-term {
    padding: 1.5rem;
    border-radius: var(--border-radius, 18px);
    box-shadow: var(--shadow);
    border: 1px solid var(--card-border);
    transition: all 0.3s ease;
    background: var(--card-bg);
}

.glossary-term:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    border-color: var(--card-border-hover);
}

/* Term Title */
.glossary-term-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 0.75rem 0;
    color: var(--heading);
    display: flex;
    align-items: center;
}

/* Term Definition */
.glossary-term-def {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 0.75rem;
    color: var(--text);
}

/* Term Example */
.glossary-term-example {
    font-size: 0.9rem;
    line-height: 1.5;
    padding: 0.75rem;
    border-radius: 8px;
    border-left: 3px solid var(--primary);
    margin-top: 0.75rem;
}

.glossary-term-example .font-italic {
    font-weight: 600;
    color: var(--primary);
}

/* Plan selection (upgrade) */
.plan-option {
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  border-color: var(--card-border);
  background: var(--card-bg);
}

.plan-option:hover {
  border-color: var(--card-border-hover);
  box-shadow: var(--shadow-hover);
}

.plan-option.active,
.plan-option:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15), var(--shadow-hover);
}

.badge-interval {
  display: inline-block;
  margin-left: 0.25rem;
  padding: 0.25rem 0.5rem;
  border-radius: 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
  background-color: var(--primary);
  color: #fff;
}

.price {
  font-variant-numeric: tabular-nums;
}

.price .price-value {
  letter-spacing: 0.2px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .glossary-header h2 {
        font-size: 1.5rem;
    }
    
    .glossary-letter-nav {
        gap: 0.125rem;
        padding: 0.5rem;
    }
    
    .letter-link {
        padding: 0.375rem 0.5rem;
        font-size: 1rem;
        min-width: 2rem;
        height: 2rem;
    }
    
    .glossary-letter-title {
        font-size: 1.5rem;
        padding: 0.5rem 0.75rem;
        top: 120px;
    }
    
    .glossary-term {
        padding: 1rem;
    }
    
    .glossary-term-title {
        font-size: 1.125rem;
    }
}

@media (max-width: 480px) {
    .glossary-letter-nav {
        justify-content: center;
    }
    
    .letter-link {
        padding: 0.25rem 0.375rem;
        font-size: 0.9rem;
        min-width: 1.75rem;
        height: 1.75rem;
    }
}
