﻿/* Skubber website - app.css */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; color: #1a1a1a; }
main { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); min-height: calc(100vh - 70px); padding: 20px; }
a { color: #0066cc; }
.navbar { display: flex; align-items: center; justify-content: space-between; padding: 1rem 2rem; border-bottom: 1px solid #eee; position: sticky; top: 0; z-index: 1000; background: #fff; }
.navbar-brand { flex-shrink: 0; }
.navbar-brand img { height: 40px; width: auto; flex-shrink: 0; }
.nav-links { display: flex; gap: 1.5rem; list-style: none; align-items: center; }
.nav-links a:not(.btn-primary):not(.btn-secondary) { text-decoration: none; color: #333; font-weight: 500; font-size: .95rem; padding: .25rem 0; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; }
.nav-links a:not(.btn-primary):not(.btn-secondary):hover { color: #0066cc; border-bottom-color: #0066cc; }
.modal-body a { text-decoration: none; color: #333; font-weight: 500; padding-bottom: 1px; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; }
.modal-body a:hover { color: #0066cc; border-bottom-color: #0066cc; }
.btn-primary { background: #0066cc; color: #fff; padding: .5rem 1.25rem; border-radius: 4px; text-decoration: none; border: none; cursor: pointer; font-size: 1rem; }
.btn-secondary { background: #f0f0f0; color: #333; padding: .5rem 1.25rem; border-radius: 4px; text-decoration: none; border: none; cursor: pointer; font-size: 1rem; }
.lang-switch-nav { display: flex; gap: .4rem; align-items: center; margin-left: .5rem; padding-left: 1rem; border-left: 1px solid #ddd; }
.lang-switch-nav .lang-btn { text-decoration: none; opacity: .45; transition: opacity .2s; line-height: 1; }
.lang-switch-nav .lang-btn img { display: block; border-radius: 3px; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.lang-switch-nav .lang-btn:hover, .lang-switch-nav .lang-btn.active { opacity: 1; }
.hero { text-align: center; padding: 4rem 2rem; }
.hero h1 { font-size: 2.5rem; margin-bottom: 1rem; }
.hero p { font-size: 1.2rem; color: #555; margin-bottom: 2rem; }
.features { display: flex; gap: 2rem; padding: 3rem 2rem; justify-content: center; flex-wrap: wrap; }
.feature { max-width: 280px; }
.page-content { max-width: 700px; margin: 3rem auto; padding: 0 1rem; }
.form-card { background: #f9f9f9; border: 1px solid #ddd; border-radius: 8px; padding: 2rem; margin-top: 1.5rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; margin-bottom: .4rem; font-weight: 500; }
.form-group input { width: 100%; padding: .5rem .75rem; border: 1px solid #ccc; border-radius: 4px; font-size: 1rem; }
.form-footer { margin-top: 1rem; font-size: .9rem; color: #555; }
.dashboard-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.card { background: #f9f9f9; border: 1px solid #ddd; border-radius: 8px; padding: 1.5rem; }
.text-center { text-align: center; }
footer { text-align: center; padding: 2rem; color: #999; font-size: .85rem; border-top: 1px solid #eee; margin-top: 3rem; }

/* Homepage */
.home-wrapper { margin: -20px; padding: 40px 20px; }
.home-container { background: white; border-radius: 20px; box-shadow: 0 20px 60px rgba(0,0,0,0.3); padding: 60px; max-width: 1400px; margin: 0 auto; text-align: center; }
.header-content { display: inline-flex; align-items: center; gap: 40px; margin-bottom: 40px; text-align: left; }
.header-content .logo img { max-width: 200px; height: auto; }
.header-text h1 { font-size: 2.5em; margin-bottom: 20px; color: #667eea; }
.subtitle { font-size: 1.3em; color: #666; margin-bottom: 40px; }
.status-row { display: flex; justify-content: center; align-items: center; gap: 15px; margin-bottom: 40px; flex-wrap: wrap; }
.status { display: inline-flex; align-items: center; gap: 10px; background: #e8f5e9; color: #2e7d32; padding: 15px 30px; border-radius: 50px; font-weight: 600; }
.status-dot { width: 12px; height: 12px; background: #4caf50; border-radius: 50%; animation: pulse 2s infinite; display: inline-block; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
.status-btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; background: #667eea; color: white; text-decoration: none; border-radius: 50px; font-weight: 600; transition: all 0.3s ease; }
.status-btn:hover { background: #764ba2; transform: translateY(-2px); box-shadow: 0 5px 15px rgba(102,126,234,0.4); }
.status-btn.secondary { background: #f5f5f5; color: #667eea; }
.status-btn.secondary:hover { background: #e0e0e0; color: #764ba2; }
.benefits { margin-bottom: 40px; }
.benefits h2 { font-size: 1.8em; color: #667eea; margin-bottom: 30px; }
.benefit-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-bottom: 30px; }
.benefit-item { background: #f8f9ff; padding: 20px; border-radius: 10px; text-align: center; transition: all 0.3s ease; }
.benefit-item:hover { transform: translateY(-5px); box-shadow: 0 5px 15px rgba(102,126,234,0.2); }
.benefit-icon { font-size: 3em; margin-bottom: 10px; }
.benefit-item h3 { font-size: 1.2em; color: #667eea; margin-bottom: 10px; }
.benefit-item p { color: #666; font-size: 0.9em; line-height: 1.4; }
.pricing-cards { display: grid; gap: 20px; margin-bottom: 40px; }
.pricing-card { background: #f8f9ff; border-radius: 15px; padding: 40px 30px; position: relative; border: 3px solid transparent; transition: all 0.3s ease; }
.pricing-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(102,126,234,0.2); }
.pricing-card.free { border-color: #4caf50; }
.pricing-card.premium { border-color: #667eea; background: linear-gradient(135deg, #f8f9ff 0%, #e8ebff 100%); }
.pricing-card .badge { position: absolute; top: -15px; right: 20px; background: #667eea; color: white; padding: 5px 15px; border-radius: 20px; font-size: 0.8em; font-weight: bold; }
.pricing-card h3 { font-size: 1.5em; margin-bottom: 20px; color: #333; }
.pricing-card .price { font-size: 2.2em; font-weight: bold; color: #667eea; margin-bottom: 30px; }
.pricing-card .price span { font-size: 0.4em; color: #999; }
.pricing-card ul { list-style: none; text-align: left; font-size: 0.9em; }
.pricing-card ul li { padding: 12px 0; color: #666; border-bottom: 1px solid #e0e0e0; }
.pricing-card ul li:last-child { border-bottom: none; }
.home-footer { margin-top: 40px; padding-top: 20px; border-top: 1px solid #eee; color: #999; font-size: 0.9em; text-align: left; }
.home-footer a { color: #667eea; text-decoration: none; }
.home-footer a:hover { text-decoration: underline; }
@media (max-width: 768px) {
    .header-content { flex-direction: column; text-align: center; }
    .benefit-grid { grid-template-columns: 1fr; }
    .home-container { padding: 30px; }
}

/* ── Dashboard layout ──────────────────────────────────────── */
.dash-wrapper { display: flex; min-height: calc(100vh - 65px); margin: -20px; }

.dash-sidebar {
    width: 220px; flex-shrink: 0;
    background: #1e2235; color: #c8cde4;
    display: flex; flex-direction: column;
    padding: 1.5rem 0;
}
.dash-sidebar-logo { padding: 0 1.5rem 1.5rem; border-bottom: 1px solid #2d3350; margin-bottom: 1rem; }
.dash-nav { list-style: none; flex: 1; }
.dash-nav li a {
    display: block; padding: .65rem 1.5rem;
    color: #c8cde4; text-decoration: none; font-size: .9rem;
    transition: background .15s, color .15s;
}
.dash-nav li a:hover, .dash-nav li.active a {
    background: #2d3350; color: #fff;
}
.dash-nav li.active a { border-left: 3px solid #667eea; padding-left: calc(1.5rem - 3px); }
.dash-sidebar-footer { padding: 1rem 1.5rem; border-top: 1px solid #2d3350; }
.dash-logout { color: #c8cde4; text-decoration: none; font-size: .88rem; }
.dash-logout:hover { color: #fff; }

.dash-main { flex: 1; padding: 2rem 2.5rem; background: #f4f6fb; overflow-y: auto; }

.dash-topbar { display: flex; align-items: center; gap: 1rem; margin-bottom: 2rem; }
.dash-greeting { font-size: 1.6rem; font-weight: 700; color: #1e2235; margin: 0; }
.dash-sub-badge {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff; padding: .25rem .75rem; border-radius: 20px; font-size: .8rem; font-weight: 600;
}

.dash-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.25rem; margin-bottom: 2rem; }

.dash-card {
    background: #fff; border-radius: 12px; padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.dash-card-link { text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s; }
.dash-card-link:hover { transform: translateY(-3px); box-shadow: 0 6px 18px rgba(102,126,234,.18); }
.dash-card-label { font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: #888; margin-bottom: .6rem; }

.dash-server-status { display: flex; align-items: center; gap: .6rem; font-size: 1.15rem; font-weight: 600; margin-bottom: .75rem; }
.status-dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.status-dot.online  { background: #4caf50; box-shadow: 0 0 0 3px rgba(76,175,80,.2); animation: pulse 2s infinite; }
.status-dot.degraded { background: #ff9800; box-shadow: 0 0 0 3px rgba(255,152,0,.2); }
.status-dot.offline  { background: #f44336; }
.dash-refresh-btn { font-size: .8rem; color: #667eea; text-decoration: none; }
.dash-refresh-btn:hover { text-decoration: underline; }

.dash-stat-big { font-size: 2.2rem; font-weight: 700; color: #1e2235; line-height: 1.1; }
.dash-stat-sub { font-size: .8rem; color: #888; margin-top: .25rem; }

.dash-progress-bar { background: #eee; border-radius: 99px; height: 8px; margin: .6rem 0 .3rem; overflow: hidden; }
.dash-progress-fill { height: 100%; background: #667eea; border-radius: 99px; transition: width .4s; }
.dash-progress-fill.warning { background: #ff9800; }
.dash-progress-fill.danger  { background: #f44336; }

.dash-section { background: #fff; border-radius: 12px; padding: 1.5rem; box-shadow: 0 2px 8px rgba(0,0,0,.06); margin-bottom: 2rem; }
.dash-section-title { font-size: 1rem; font-weight: 600; color: #1e2235; margin: 0 0 1.25rem; }
.dash-chart-wrap { position: relative; }

/* Profiel */
.dash-profile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.5rem; }
.dash-profile-card { background: #fff; border-radius: 12px; padding: 1.75rem; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.dash-info-row { display: flex; justify-content: space-between; padding: .6rem 0; border-bottom: 1px solid #f0f0f0; font-size: .9rem; }
.dash-info-row:last-child { border-bottom: none; }
.dash-info-label { color: #888; }
.dash-info-value { font-weight: 600; color: #1e2235; }

@media (max-width: 768px) {
    .dash-sidebar { display: none; }
    .dash-main { padding: 1.25rem; }
}

/* Tabel */
.dash-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.dash-table thead th { background: #f4f6fb; padding: .75rem 1.25rem; text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: #888; border-bottom: 1px solid #e8eaf0; }
.dash-table tbody td { padding: .9rem 1.25rem; border-bottom: 1px solid #f0f2f7; vertical-align: middle; }
.dash-table tbody tr:last-child td { border-bottom: none; }
.dash-table tbody tr:hover td { background: #f9faff; }

/* API key code chip */
.dash-apikey-code { background: #f0f2ff; color: #667eea; padding: .2rem .5rem; border-radius: 4px; font-size: .82rem; cursor: pointer; user-select: none; }
.dash-apikey-code:hover { background: #667eea; color: #fff; }

/* Badges */
.dash-badge { display: inline-block; padding: .2rem .6rem; border-radius: 20px; font-size: .75rem; font-weight: 600; }
.dash-badge.active   { background: #e8f5e9; color: #2e7d32; }
.dash-badge.inactive { background: #fce4ec; color: #c62828; }

/* API key aanmaken */
.dash-alert-success { background: #e8f5e9; border: 1px solid #a5d6a7; border-radius: 10px; padding: 1.2rem 1.5rem; margin-bottom: 1.5rem; }
.dash-alert-success strong { color: #2e7d32; }
.dash-alert-error   { background: #fce4ec; border: 1px solid #f48fb1; border-radius: 10px; padding: 1rem 1.5rem; margin-bottom: 1.5rem; color: #c62828; }
.key-reveal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1rem; }
@media (max-width: 700px) { .key-reveal-grid { grid-template-columns: 1fr; } }
.key-reveal-label { display: block; font-size: .78rem; font-weight: 600; color: #555; margin-bottom: .3rem; }
.key-reveal-code { display: block; padding: .5rem .8rem; font-size: .82rem; word-break: break-all; background: #fff; border: 1px solid #c8e6c9; cursor: pointer; }
.key-reveal-code:hover { background: #f1f8e9; }
.dash-onboarding { text-align: center; padding: 3rem 1.5rem; }
.key-create-form { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }
.btn-sm { padding: .35rem .85rem; font-size: .82rem; }

/* ── Hamburger knop (verborgen op desktop) ─────────────────── */
.nav-toggle {
    display: none;
    flex-direction: column; justify-content: space-between;
    width: 26px; height: 20px;
    background: none; border: none; cursor: pointer; padding: 0;
}
.nav-toggle span {
    display: block; height: 2px; width: 100%;
    background: #333; border-radius: 2px;
    transition: transform .25s, opacity .25s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* Dashboard mobile menu-knop (alleen zichtbaar op mobile) */
.dash-menu-btn {
    display: none;
    background: none; border: none; cursor: pointer;
    font-size: 1.4rem; color: #667eea; padding: 0 .5rem 0 0; line-height: 1;
}
.dash-sidebar-close {
    display: none;
    position: absolute; top: .75rem; right: .75rem;
    background: none; border: none; cursor: pointer;
    font-size: 1rem; color: #c8cde4; padding: 4px 8px;
}

/* ── Responsive breakpoint 768px ──────────────────────────── */
@media (max-width: 768px) {

    /* Navbar */
    .nav-toggle { display: flex; }
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute; top: 65px; left: 0; right: 0;
        background: #fff; border-bottom: 1px solid #eee;
        padding: 1rem 1.5rem; gap: .75rem; z-index: 999;
    }
    .nav-links.open { display: flex; }
    .nav-links .lang-switch-nav {
        border-left: none; padding-left: 0;
        border-top: 1px solid #eee; padding-top: .75rem; margin-left: 0;
    }
    .navbar { position: relative; padding: .75rem 1.25rem; }

    /* main & footer */
    main { padding: 12px; }
    footer { margin-top: 1.5rem; }

    /* Homepage */
    .home-wrapper { margin: -12px; padding: 12px; }
    .home-container { padding: 24px 16px; border-radius: 12px; }
    .header-content { flex-direction: column; text-align: center; gap: 16px; }
    .header-content .logo img { max-width: 100px; }
    .header-text h1 { font-size: 1.7em; }
    .subtitle { font-size: 1em; margin-bottom: 24px; }
    .status-row { flex-direction: column; gap: 10px; align-items: stretch; }
    .status-btn { justify-content: center; }
    .benefit-grid { grid-template-columns: 1fr; }
    .benefit-icon { font-size: 2em; }
    .pricing-cards { grid-template-columns: 1fr !important; }
    .pricing-card { padding: 28px 20px; }

    /* Dashboard sidebar als slide-in overlay */
    .dash-wrapper { margin: -12px; }
    .dash-sidebar {
        position: fixed; top: 0; left: -240px; bottom: 0;
        z-index: 1100; width: 220px;
        transition: left .25s ease;
    }
    .dash-sidebar.open { left: 0; box-shadow: 4px 0 20px rgba(0,0,0,.3); }
    .dash-sidebar-overlay {
        display: none; position: fixed; inset: 0;
        background: rgba(0,0,0,.4); z-index: 1099;
    }
    .dash-sidebar-overlay.open { display: block; }
    .dash-menu-btn { display: block; }
    .dash-sidebar-close { display: block; }
    .dash-main { padding: 1rem; }
    .dash-cards { grid-template-columns: 1fr 1fr; }
    .dash-topbar { flex-wrap: wrap; }
    .dash-greeting { font-size: 1.25rem; }
    .dash-table { font-size: .8rem; }
    .dash-table thead th, .dash-table tbody td { padding: .6rem .75rem; }

    /* Docs/SDK/Start kaarten */
    .docs-nav ul { columns: 1 !important; }
    .step-grid { grid-template-columns: 1fr 1fr !important; }
}

/* ── Extra small (≤480px) ──────────────────────────────────── */
@media (max-width: 480px) {
    .dash-cards { grid-template-columns: 1fr; }
    .step-grid { grid-template-columns: 1fr !important; }
    .dash-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .home-container { padding: 20px 12px; }
}
