body {
    font-family: Arial, sans-serif;
    background: #0f172a;
    color: white;
    margin: 20px;
}

/* Zorg dat geen enkele pagina uit zichzelf getoond wordt bij het laden */
.page {
    display: none !important;
}

/* Alleen de pagina met de class active-page wordt zichtbaar */
.page.active-page {
    display: block !important;
}
.highlight-up {
    background-color: rgba(0, 170, 0, 0.18); 
}

.highlight-down {
    background-color: rgba(204, 0, 0, 0.18); 
}

.highlight-up td {
    background-color: rgba(0, 170, 0, 0.18);
}

.highlight-down td {
    background-color: rgba(204, 0, 0, 0.18);
}

.topbar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 14px;
    border-bottom: 1px solid #334155;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: white;
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    cursor: pointer;
    justify-self: start;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    height: 75px;
    width: auto;
    display: block;
}

.tagline {
    font-size: 12px;
    font-weight: normal;
    color: #aaa;
    margin-top: 4px;
}

.menu {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-self: center;
}

.topbar-spacer {
    justify-self: end;
}

.menu-item {
    background: transparent;
    border: none;
    color: #cbd5e1;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
}

.menu-item:hover {
    background: #1e293b;
    color: white;
}

.menu-item.active {
    background: #2563eb;
    color: white;
}

.back-menu-btn {
    background: #1e293b;
    border: 1px solid #ef4444 !important;
    color: #ef4444 !important;
    font-weight: bold;
}
.back-menu-btn:hover {
    background: #ef4444 !important;
    color: white !important;
}

.trade-link {
    color: #FED881;
    font-weight: 600;
    text-decoration: none;
}

.trade-link:hover {
    color: #ffffff;
    text-shadow: 0 0 8px rgba(0, 229, 255, 0.7);
}

.landing-link {
    color: #38bdf8;
    font-weight: bold;
    text-decoration: underline;
    cursor: pointer;
}

.view-btn {
    background: #334155;
    color: #38bdf8;
    border: 1px solid #0ea5e9;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    white-space: nowrap;
}

.view-btn:hover {
    background: #0ea5e9;
    color: #0f172a;
}

.page {
    display: none;
}

.active-page {
    display: block;
}

#error {
    color: #f87171;
    margin-bottom: 10px;
    display: none;
}

.table-wrapper {
    overflow-x: auto;
    border: 1px solid #334155;
    border-radius: 12px;
    position: relative;
}

table {
    border-collapse: collapse;
    width: 100%;
    min-width: 1200px;
    table-layout: fixed;
}

th, td {
    padding: 10px 8px;
    border: 1px solid #334155;
    font-size: 14px;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

th {
    background: #1e293b;
}

/* Table Column Width Framework */
table th:nth-child(1), table td:nth-child(1) { width: 160px; } /* Time */
table th:nth-child(2), table td:nth-child(2) { width: 90px; }  /* Exchange */
table th:nth-child(3), table td:nth-child(3) { width: 100px; } /* Pair */
table th:nth-child(4), table td:nth-child(4) { width: 110px; } /* Price */
table th:nth-child(5), table td:nth-child(5) { width: 85px; }  /* % Break */
table th:nth-child(6), table td:nth-child(6) { width: 80px; }  /* % Coin */
table th:nth-child(7), table td:nth-child(7) { width: 85px; }  /* Direction */
table th:nth-child(8), table td:nth-child(8) { width: 110px; } /* Volume */
table th:nth-child(9), table td:nth-child(9) { width: 85px; }  /* Timeframe */
table th:nth-child(10), table td:nth-child(10) { width: 65px; }/* Type */
table th:nth-child(11), table td:nth-child(11) { width: 100px; }/* BB Up */
table th:nth-child(12), table td:nth-child(12) { width: 100px; }/* BB Down */
table th:nth-child(13), table td:nth-child(13) { width: 190px; overflow: visible; } /* Notes/Action Column */

tr:hover {
    background: rgba(255,255,255,0.05);
}

.up {
    color: #22c55e;
    font-weight: bold;
}

.down {
    color: #ef4444;
    font-weight: bold;
}

.break-up {
    background: rgba(34,197,94,0.15);
}

.break-down {
    background: rgba(239,68,68,0.15);
}

.filters-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filters input,
.filters select {
    background: #1e293b;
    border: 1px solid #334155;
    color: white;
    padding: 10px 12px;
    border-radius: 8px;
    min-width: 180px;
}

/* Clear knop styling op desktop */
.filters-wrapper > button {
    background: #1e293b;
    border: 1px solid #334155;
    color: white;
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
}

.mode-toggle {
    display: flex;
    gap: 4px;
    background: #1e293b;
    padding: 4px;
    border-radius: 8px;
    border: 1px solid #334155;
    height: 34px; 
    align-items: center;
}

.mode-toggle button {
    background: transparent;
    border: none;
    color: #cbd5e1;
    padding: 0 16px;
    height: 26px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    font-size: 13px;
    transition: background 0.2s, color 0.2s;
}

.mode-toggle button.active {
    background: #2563eb;
    color: white;
}

/* Info Page Layout & Cards */
.info-container {
    max-width: 1000px;
    margin: 0 auto;
}

.info-header {
    margin-bottom: 24px;
}

.info-header h2 {
    font-size: 28px;
    margin: 0 0 8px 0;
    color: white;
}

.info-header p {
    color: #94a3b8;
    font-size: 16px;
    margin: 0;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

@media (min-width: 768px) {
    .info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.info-card {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 24px;
}

.info-card h3 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 18px;
    color: #38bdf8;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-card p, .info-card ul {
    color: #cbd5e1;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

.info-card ul {
    padding-left: 20px;
    margin-top: 8px;
}

.info-card li {
    margin-bottom: 6px;
}

.info-card strong {
    color: white;
}

/* Landing Page Dashboard Layout Grid Styling */
.lp-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.lp-main-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}
@media (min-width: 992px) {
    .lp-main-layout {
        grid-template-columns: 7fr 5fr;
    }
}
.lp-panel {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 16px;
    padding: 24px;
}
.lp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #334155;
    padding-bottom: 16px;
    margin-bottom: 20px;
}
.lp-badge {
    padding: 6px 16px;
    border-radius: 50px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 14px;
}
.badge-up { background: #16a34a; color: white; }
.badge-down { background: #dc2626; color: white; }
.lp-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}
.lp-card {
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 10px;
    padding: 14px;
}
.lp-card-label {
    color: #94a3b8;
    font-size: 11px;
    text-transform: uppercase;
    margin-bottom: 4px;
}
.lp-card-value {
    font-size: 18px;
    font-weight: bold;
}
.lp-chart-container {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 16px;
    padding: 12px;
    min-height: 450px;
    height: 600px;
    position: relative;
}
.lp-cta-box {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    border: 2px solid #334155;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}
.lp-btn-primary {
    background: #2563eb;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
    display: block;
    margin-top: 8px;
    font-size: 15px;
    border: none;
    transition: background 0.2s;
}
.lp-btn-primary:hover {
    background: #1d4ed8;
}
.lp-btn-secondary {
    color: #38bdf8;
    background: transparent;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: underline;
    display: inline-block;
    margin-top: 12px;
    font-size: 13px;
}
.lp-btn-secondary:hover {
    color: #ffffff;
}

/* Sharing Actions Block Style */
.lp-share-container {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.lp-share-btn {
    flex: 1;
    min-width: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    border: none;
    transition: background 0.2s;
}
.btn-x-share {
    background: #ffffff;
    color: #000000;
}
.btn-x-share:hover {
    background: #e2e8f0;
}
.btn-reddit-share {
    background: #ff4500;
    color: #ffffff;
}
.btn-reddit-share:hover {
    background: #e03d00;
}
.btn-copy-link {
    background: #334155;
    color: #cbd5e1;
    border: 1px solid #475569;
}
.btn-copy-link:hover {
    background: #475569;
    color: #ffffff;
}

/* Smart Mobile Optimization Queries */
@media (max-width: 768px) {
    /* Filters keurig onder elkaar stapelen in plaats van kolommen */
    .filters-wrapper { 
        display: flex !important;
        flex-direction: column !important; 
        align-items: stretch !important; 
        gap: 10px !important;
    }
    
    .filters { 
        display: flex !important;
        flex-direction: column !important; 
        gap: 10px !important;
        width: 100% !important;
    }
    
    /* OVERRIDE: Zorg dat ALLE invoervelden, dropdowns én de Clear knop 100% breed worden */
    .filters input, 
    .filters select,
    .filters-wrapper > button { 
        width: 100% !important; 
        min-width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important; 
        display: block !important;
    }
    
    /* Live / 24h toggle netjes centreren en vullen */
    .mode-toggle { 
        display: flex !important;
        width: 100% !important;
        justify-content: center !important; 
        height: 42px !important; 
        padding: 4px !important;
        box-sizing: border-box !important;
    }
    
    .mode-toggle button { 
        height: 100% !important; 
        flex: 1 !important; 
    }
    
    body { margin: 10px; }
    
    .topbar { 
        display: flex;
        flex-direction: column; 
        align-items: center; 
        text-align: center; 
    }
    .logo { align-items: center; font-size: 24px; margin-bottom: 10px; justify-self: center; }
    .menu { justify-content: center; width: 100%; justify-self: center; }
    .topbar-spacer { display: none; }
    
    table { min-width: 650px; }
    th, td { font-size: 12px; padding: 6px; }
    
    table th:nth-child(6), table td:nth-child(6),   /* % Coin */
    table th:nth-child(9), table td:nth-child(9),   /* Timeframe */
    table th:nth-child(10), table td:nth-child(10),/* Type */
    table th:nth-child(11), table td:nth-child(11),/* BB Up */
    table th:nth-child(12), table td:nth-child(12) { /* BB Down */
        display: none;
    }
}