* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg: #0f0f1a;
    --surface: #1a1a2e;
    --surface2: #16213e;
    --primary: #0f3460;
    --accent: #e94560;
    --success: #00b894;
    --danger: #e17055;
    --warning: #fdcb6e;
    --text: #eee;
    --text-muted: #888;
    --radius: 12px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    -webkit-user-select: none;
    user-select: none;
}

/* ── Navbar ── */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: var(--surface);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo { font-size: 1.2rem; font-weight: 700; color: var(--accent); text-decoration: none; }
.nav-links { display: flex; gap: 2px; }
.nav-links a {
    padding: 8px 12px; color: var(--text-muted); text-decoration: none;
    border-radius: 8px; font-size: 0.85rem; transition: background 0.2s, color 0.2s;
    position: relative; display: flex; align-items: center; gap: 6px;
}
.nav-links a:hover, .nav-links a.active { background: var(--primary); color: var(--text); }

/* Hamburger menu (mobiel) */
.hamburger {
    display: none; background: none; border: none; color: var(--text);
    font-size: 1.5rem; cursor: pointer; padding: 4px 8px;
}

/* ── Badges ── */
.badge {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 18px; height: 18px; padding: 0 5px;
    border-radius: 9px; font-size: 0.65rem; font-weight: 700;
    line-height: 1;
}
.badge-warning { background: var(--warning); color: #333; }
.badge-accent { background: var(--accent); color: white; }
.badge-success { background: var(--success); color: white; }

main { padding: 16px; max-width: 1200px; margin: 0 auto; }

/* ── Alerts ── */
.alert { padding: 12px 16px; border-radius: var(--radius); margin-bottom: 16px; }
.alert-success { background: rgba(0,184,148,0.15); border: 1px solid var(--success); }
.alert-error { background: rgba(225,112,85,0.15); border: 1px solid var(--danger); }

/* ── Toast Notificaties ── */
.toast-container {
    position: fixed; top: 70px; right: 16px; z-index: 9999;
    display: flex; flex-direction: column; gap: 8px;
}
.toast {
    padding: 12px 20px; border-radius: 10px; color: white;
    font-size: 0.9rem; font-weight: 500; box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    animation: toastIn 0.3s ease-out;
    max-width: 360px;
}
.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }
.toast.info { background: var(--primary); }
.toast.fadeout { animation: toastOut 0.3s ease-in forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: none; } }
@keyframes toastOut { from { opacity: 1; } to { opacity: 0; transform: translateX(40px); } }

/* ── Buttons ── */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 10px 20px; border: none; border-radius: 8px;
    font-size: 0.95rem; font-weight: 600; cursor: pointer;
    text-decoration: none; transition: background 0.2s, transform 0.1s;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover { background: #d63851; }
.btn-secondary { background: var(--primary); color: white; }
.btn-secondary:hover { background: #133d6e; }
.btn-success { background: var(--success); color: white; }
.btn-success:hover { background: #00a381; }
.btn-danger { background: var(--danger); color: white; }
.btn-danger:hover { background: #c9604a; }
.btn-small { padding: 6px 12px; font-size: 0.8rem; }
.btn-large { padding: 14px 28px; font-size: 1.1rem; }
.btn-full { width: 100%; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; pointer-events: none; }

/* ── Dashboard ── */
.dashboard h1 { margin-bottom: 20px; }
.stats-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px; margin-bottom: 20px;
}
.stat-card {
    background: var(--surface); padding: 20px; border-radius: var(--radius);
    text-align: center; position: relative; overflow: hidden;
}
.stat-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; }
.stat-card.inbox::before { background: var(--warning); }
.stat-card.verwerkt::before { background: var(--accent); }
.stat-card.goedgekeurd::before { background: var(--success); }
.stat-card.afgekeurd::before { background: var(--danger); }
.stat-number { font-size: 2.5rem; font-weight: 700; }
.stat-label { color: var(--text-muted); margin-top: 4px; }
.stat-link { display: inline-block; margin-top: 8px; color: var(--accent); text-decoration: none; font-size: 0.85rem; }

.actions-bar { display: flex; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; align-items: center; }
.info-box { background: var(--surface); padding: 16px; border-radius: var(--radius); color: var(--text-muted); font-size: 0.9rem; }
.info-box p { margin-bottom: 4px; }

/* ── Progress bar ── */
.progress-bar-bg {
    width: 100%; background: #2a2a4a; border-radius: 12px;
    overflow: hidden; height: 32px; margin: 16px 0 8px;
}
.progress-bar-fill {
    height: 100%; background: linear-gradient(90deg, #4CAF50, #66BB6A);
    border-radius: 12px; width: 0%; transition: width 0.3s ease;
    display: flex; align-items: center; justify-content: center;
    color: white; font-weight: bold; font-size: 14px; min-width: 40px;
}
.progress-text { text-align: center; color: #aaa; font-size: 14px; }
.progress-text.done { color: var(--success); font-size: 16px; font-weight: bold; }

/* ── Upload ── */
.upload-zone {
    border: 2px dashed rgba(255,255,255,0.15);
    border-radius: var(--radius); padding: 50px 20px;
    text-align: center; cursor: pointer; transition: border-color 0.2s, background 0.2s;
    margin-bottom: 16px;
}
.upload-zone:hover, .upload-zone.dragover {
    border-color: var(--accent); background: rgba(233,69,96,0.05);
}
.upload-icon { font-size: 3rem; margin-bottom: 12px; }
.upload-zone input { display: none; }
.upload-zone p { color: var(--text-muted); }

.preview-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 6px; margin-bottom: 16px;
}
.preview-item { position: relative; aspect-ratio: 1; border-radius: 8px; overflow: hidden; }
.preview-item img { width: 100%; height: 100%; object-fit: cover; }
.preview-item span {
    position: absolute; bottom: 0; left: 0; right: 0; padding: 2px 4px;
    background: rgba(0,0,0,0.7); font-size: 0.6rem; white-space: nowrap;
    overflow: hidden; text-overflow: ellipsis;
}

.upload-tips { background: var(--surface); padding: 16px; border-radius: var(--radius); margin-top: 16px; }
.upload-tips h3 { margin-bottom: 8px; }
.upload-tips li { margin-left: 20px; color: var(--text-muted); font-size: 0.9rem; margin-bottom: 4px; }

/* ── Photo grid ── */
.photo-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
}
.photo-grid.large { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.photo-card {
    background: var(--surface); border-radius: var(--radius); overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s, opacity 0.3s; position: relative;
}
.photo-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.3); }
.photo-card.approved {
    opacity: 0; transform: translateX(100px) rotate(5deg);
    transition: all 0.4s ease-out;
}
.photo-card.rejected {
    opacity: 0; transform: translateX(-100px) rotate(-5deg);
    transition: all 0.4s ease-out;
}
.photo-card img { width: 100%; aspect-ratio: 4/3; object-fit: contain; background: #0a0a1a; cursor: pointer; }
.photo-info { padding: 8px 10px; }
.photo-name { display: block; font-size: 0.75rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.photo-date { display: block; font-size: 0.7rem; color: var(--text-muted); }
.photo-actions { padding: 6px 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.photo-select { position: absolute; top: 8px; left: 8px; z-index: 2; }
.photo-check { width: 22px; height: 22px; cursor: pointer; accent-color: var(--accent); }

.tags { margin-top: 4px; display: flex; gap: 4px; flex-wrap: wrap; }
.tag { background: var(--primary); padding: 2px 8px; border-radius: 12px; font-size: 0.7rem; }
.subtitle { color: var(--text-muted); margin-bottom: 16px; }

/* ── Keyboard shortcuts legenda ── */
.shortcut-bar {
    display: flex; gap: 12px; flex-wrap: wrap; padding: 8px 12px;
    background: var(--surface2); border-radius: 8px; margin-bottom: 12px;
    font-size: 0.78rem; color: var(--text-muted);
}
.shortcut-bar kbd {
    display: inline-block; background: var(--primary); color: var(--text);
    padding: 1px 6px; border-radius: 4px; font-family: inherit;
    font-size: 0.75rem; font-weight: 700; margin-right: 3px;
    border: 1px solid rgba(255,255,255,0.1);
}

/* ── Review controls ── */
.review-modes { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; align-items: center; }

/* ── Fullscreen ── */
.fullscreen-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.97); z-index: 1000;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.fullscreen-overlay img { max-width: 95vw; max-height: 80vh; object-fit: contain; border-radius: 8px; }
.fs-header {
    position: absolute; top: 12px; left: 0; right: 0;
    display: flex; justify-content: space-between; align-items: center;
    padding: 0 20px; color: var(--text-muted); font-size: 0.9rem;
}
.fs-actions { margin-top: 16px; display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.fs-nav { position: absolute; top: 50%; left: 0; right: 0; display: flex; justify-content: space-between; padding: 0 8px; }
.fs-nav-btn {
    width: 50px; height: 50px; border-radius: 50%;
    background: rgba(255,255,255,0.1); border: none; color: white;
    font-size: 1.5rem; cursor: pointer; display: flex;
    align-items: center; justify-content: center;
    transform: translateY(-50%); transition: background 0.2s;
}
.fs-nav-btn:hover { background: rgba(255,255,255,0.2); }

/* ── Swipe overlay ── */
.swipe-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: var(--bg); z-index: 1000;
    display: flex; flex-direction: column; align-items: center;
}
.swipe-header {
    width: 100%; padding: 12px 20px;
    display: flex; justify-content: space-between; align-items: center;
    color: var(--text-muted); font-size: 1rem; font-weight: 600;
}
.swipe-container {
    flex: 1; display: flex; align-items: center; justify-content: center;
    width: 100%; max-width: 500px; padding: 0 20px; overflow: hidden;
}
.swipe-card {
    position: relative; width: 100%; border-radius: 16px; overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    transition: transform 0.1s ease-out;
}
.swipe-card img {
    width: 100%; aspect-ratio: 3/4; object-fit: cover; display: block;
}
.swipe-indicator {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    font-size: 2rem; font-weight: 900; padding: 12px 24px;
    border-radius: 12px; border: 4px solid; opacity: 0;
    transition: opacity 0.15s; pointer-events: none; z-index: 5;
}
.swipe-left-indicator {
    color: var(--danger); border-color: var(--danger);
    background: rgba(225,112,85,0.3);
}
.swipe-right-indicator {
    color: var(--success); border-color: var(--success);
    background: rgba(0,184,148,0.3);
}
.swipe-actions {
    padding: 16px 20px; display: flex; gap: 16px;
    justify-content: center; align-items: center; width: 100%;
}
.swipe-btn-reject, .swipe-btn-approve { min-width: 120px; }
.swipe-hint {
    color: var(--text-muted); font-size: 0.8rem;
    padding-bottom: 20px; text-align: center;
}

/* ── Publiceer pagina ── */
.photo-card.published { opacity: 0.7; border: 2px solid var(--success); }
.published-label { color: var(--success); font-weight: bold; font-size: 0.9em; }
.status-text { margin-left: 16px; color: var(--text-muted); }

/* ── Social Media pagina ── */
.social-page { max-width: 1200px; margin: 0 auto; }
.social-selector { margin: 20px 0; }
.social-selector label { display: block; margin-bottom: 6px; color: var(--text-muted); font-size: 0.9rem; }
.social-selector select {
    width: 100%; padding: 12px; font-size: 16px;
    background: var(--surface2); color: var(--text); border: 1px solid var(--primary);
    border-radius: 8px; appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='2' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}
.original-preview { margin: 20px 0; text-align: center; }
.orig-img { max-width: 300px; max-height: 200px; border-radius: 8px; border: 2px solid var(--primary); }
.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px; margin: 20px 0;
}
.social-card {
    background: var(--surface); border-radius: var(--radius); overflow: hidden;
    border: 1px solid rgba(255,255,255,0.05); transition: transform 0.2s;
}
.social-card:hover { transform: translateY(-2px); }
.social-card .preview-container {
    position: relative; background: #0a0a1a;
    display: flex; align-items: center; justify-content: center;
    min-height: 180px; cursor: pointer;
}
.social-card .preview-container img {
    max-width: 100%; max-height: 250px; object-fit: contain;
}
.social-card .card-info {
    padding: 12px 16px; display: flex; justify-content: space-between;
    align-items: center; flex-wrap: wrap; gap: 8px;
}
.social-card .format-name { font-weight: bold; color: var(--accent); }
.social-card .format-size { color: var(--text-muted); font-size: 0.85em; }
.social-card .btn-download {
    padding: 6px 16px; background: var(--accent); color: white;
    border: none; border-radius: 6px; cursor: pointer; font-size: 0.9em;
    transition: background 0.2s;
}
.social-card .btn-download:hover { background: #d63851; }
.platform-icon {
    display: inline-block; font-size: 0.7em; font-weight: 700;
    padding: 2px 6px; border-radius: 4px; margin-right: 6px;
    background: var(--primary); color: var(--text);
}

/* ── Loading spinner ── */
.loading { text-align: center; padding: 40px; color: var(--text-muted); }
.spinner {
    width: 40px; height: 40px; border: 3px solid var(--primary);
    border-top-color: var(--accent); border-radius: 50%;
    animation: spin 0.8s linear infinite; margin: 0 auto 12px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Search bar ── */
.search-bar { margin-bottom: 12px; }
.search-bar input {
    width: 100%; padding: 10px 16px; font-size: 0.95rem;
    background: var(--surface); color: var(--text); border: 1px solid var(--primary);
    border-radius: 8px; outline: none; transition: border-color 0.2s;
}
.search-bar input:focus { border-color: var(--accent); }
.search-bar input::placeholder { color: var(--text-muted); }

/* ── Flow bar (dashboard) ── */
.flow-bar {
    display: flex; align-items: center; justify-content: center;
    gap: 8px; margin-bottom: 24px; padding: 16px;
    background: var(--surface); border-radius: var(--radius);
    flex-wrap: wrap;
}
.flow-step {
    display: flex; flex-direction: column; align-items: center;
    padding: 10px 16px; border-radius: 10px; text-decoration: none;
    color: var(--text-muted); transition: background 0.2s, color 0.2s;
    min-width: 70px;
}
.flow-step:hover { background: var(--primary); color: var(--text); }
.flow-step.flow-active { background: var(--accent); color: white; }
.flow-step.flow-done { background: rgba(0,184,148,0.15); color: var(--success); }
.flow-count { font-size: 1.5rem; font-weight: 700; }
.flow-icon { font-size: 1.5rem; font-weight: 700; }
.flow-label { font-size: 0.75rem; margin-top: 2px; }
.flow-arrow { color: var(--text-muted); font-size: 1.2rem; }

/* ── Empty state ── */
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.empty-state .btn { margin-top: 16px; }

/* ── Mobiel ── */
@media (max-width: 700px) {
    .hamburger { display: block; }
    .nav-links {
        display: none; flex-direction: column; position: absolute;
        top: 100%; left: 0; right: 0; background: var(--surface);
        border-bottom: 1px solid rgba(255,255,255,0.05);
        padding: 8px; gap: 0;
    }
    .nav-links.open { display: flex; }
    .nav-links a { padding: 12px 16px; font-size: 0.95rem; border-radius: 0; }
    .nav-links a:hover, .nav-links a.active { background: var(--primary); }

    main { padding: 12px; }
    .photo-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; }
    .photo-grid.large { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .stat-number { font-size: 1.8rem; }
    .stat-card { padding: 14px; }
    .review-modes { flex-direction: column; }
    .review-modes .btn { width: 100%; }
    .fs-actions { gap: 6px; }
    .fs-actions .btn { padding: 8px 14px; font-size: 0.85rem; }
    .swipe-indicator { font-size: 1.4rem; padding: 8px 16px; }
    .social-grid { grid-template-columns: 1fr; }
    .shortcut-bar { display: none; }
    .toast-container { right: 8px; left: 8px; }
    .toast { max-width: 100%; }
}
