﻿/* 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; }
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; }
.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 { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); padding: 40px 20px; min-height: calc(100vh - 70px); }
.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); }

.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; }
