/* style.css - Bijgewerkte versie */

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0f172a;
    color: #e2e8f0;
    line-height: 1.5;
    padding: 16px;
}

.container {
    max-width: 960px;
    margin: 0 auto;
}

/* ... (bovenste deel blijft hetzelfde) ... */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);   /* Altijd 3 naast elkaar */
    gap: 12px;
}

.stat-card {
    background: #334155;
    border-radius: 12px;
    padding: 14px 10px;
    text-align: center;
    min-height: 130px;
}

.stat-icon {
    font-size: 1.8rem;
    margin-bottom: 6px;
}

.stat-value {
    font-size: 2.1rem;
    font-weight: 700;
    color: #60a5fa;
    line-height: 1.1;
}

.stat-label {
    color: #94a3b8;
    font-size: 0.9rem;
    margin-top: 4px;
}

/* Recente detecties - kleiner */
.recent-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 10px;
}

.recent-grid img {
    width: 100%;
    border-radius: 10px;
    cursor: pointer;
    aspect-ratio: 16 / 9;     /* Nettere verhouding */
    object-fit: cover;
}

/* Laatste detectie iets groter houden */
.latest-detection img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.log {
    background: #0f172a;
    color: #86efac;
    padding: 14px;
    border-radius: 10px;
    font-family: monospace;
    font-size: 0.85rem;
    max-height: 200px;
    overflow-y: auto;
    white-space: pre-wrap;
}

/* Kleine verbetering voor iPhone */
@media (max-width: 480px) {
    .stat-value {
        font-size: 1.95rem;
    }
    h2 {
        font-size: 1.15rem;
    }
}

/* Extra voor recente detecties */
.recent-item {
    position: relative;
    cursor: pointer;
}

.small-filename {
    font-size: 0.75rem;
    color: #94a3b8;
    text-align: center;
    margin-top: 6px;
    word-break: break-all;
    padding: 0 4px;
}

/* Zorg dat video's dezelfde hoogte hebben als foto's */
.recent-item video {
    width: 100%;
    border-radius: 10px;
}

.video-preview {
    position: relative;
    cursor: pointer;
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: rgba(255,255,255,0.9);
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
    pointer-events: none;
}

.filename {
    text-align: center;
    margin-top: 8px;
    font-size: 0.85rem;
    color: #94a3b8;
    word-break: break-all;
}

.status.offline {
    background: #7f1d1d;
    color: #fda4af;
}

