/* --- Geanimeerde Achtergrond (Stars Effect) --- */
body {
    font-family: 'Inter', sans-serif;
    background: radial-gradient(ellipse at bottom, #1B2735 0%, #090A0F 100%);
    color: #f8fafc;
    margin: 0;
    padding: 80px 20px 100px 20px;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Subtiele beweging in de achtergrond */
.bg-animation {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
    background: transparent;
}

/* --- Top Bar --- */
.top-bar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 30px;
    background: rgba(15, 23, 42, 0.8);
    padding: 12px 35px;
    border-radius: 50px;
    border: 1px solid rgba(56, 189, 248, 0.3);
    backdrop-filter: blur(15px);
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.stats-item { font-size: 0.85rem; color: #94a3b8; display: flex; align-items: center; gap: 8px; }
.stat-val { color: #38bdf8; font-weight: bold; }

/* --- Header --- */
header { text-align: center; margin-bottom: 60px; }
header h1 { font-size: 3.2rem; color: #38bdf8; text-transform: uppercase; letter-spacing: 2px; text-shadow: 0 0 20px rgba(56, 189, 248, 0.4); }
.status-pill { background: rgba(16, 185, 129, 0.2); color: #10b981; padding: 4px 12px; border-radius: 20px; font-size: 0.75rem; border: 1px solid #10b981; }

/* --- Container & Cards --- */
.container { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); 
    gap: 30px; 
    max-width: 1250px; 
    margin: 0 auto; 
}

.card { 
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 30px; 
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.4s ease;
    display: flex; flex-direction: column;
}

.card:hover { 
    transform: translateY(-10px) scale(1.02); 
    border-color: #38bdf8;
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}

.logo-container { 
    background: #161d2f; 
    height: 140px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    padding: 25px; 
    /* Zorg dat deze exact hetzelfde is als de .card border-radius */
    border-radius: 30px 30px 0 0; 
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    /* Voorkom dat de container buiten de rand van de kaart steekt */
    width: 100%;
    box-sizing: border-box;
}

.logo-container img { 
    max-height: 85px; 
    width: auto; 
    /* Voeg een kleine gloed toe zodat het logo eruit springt */
    filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.3)); 
}

.card-content { padding: 30px; display: flex; flex-direction: column; flex-grow: 1; }

/* --- Status Row --- */
.status-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.latency { font-size: 0.7rem; color: #64748b; font-family: monospace; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-right: 6px; }
.dot-online { background: #10b981; box-shadow: 0 0 12px #10b981; }
.dot-offline { background: #ef4444; box-shadow: 0 0 12px #ef4444; }

/* --- Uptime Bar --- */
.uptime-bar { height: 6px; background: rgba(255,255,255,0.05); border-radius: 10px; margin-top: 20px; overflow: hidden; }
.uptime-fill { height: 100%; background: linear-gradient(to right, #10b981, #34d399); transition: 1s; }
.uptime-text { font-size: 0.65rem; color: #64748b; margin-top: 5px; text-align: right; font-weight: bold; }

.badge { background: #38bdf81a; color: #38bdf8; padding: 4px 15px; border-radius: 50px; font-size: 0.65rem; font-weight: bold; width: fit-content; margin-bottom: 10px; border: 1px solid #38bdf833; }
.description { color: #94a3b8; font-size: 0.9rem; margin-bottom: 20px; flex-grow: 1; }

/* --- Button --- */
.btn { 
    background: #1e293b; color: white; padding: 14px; border-radius: 18px; 
    text-decoration: none; font-weight: 700; text-align: center; display: block; 
    transition: 0.3s; border: 1px solid rgba(255,255,255,0.1);
}
.btn:hover { background: #38bdf8; color: #0f172a; border-color: #38bdf8; box-shadow: 0 0 20px rgba(56,189,248,0.4); }

/* --- Footer --- */
footer { padding: 50px 0; text-align: center; }
.github-footer { color: #475569; text-decoration: none; font-size: 1.1rem; transition: 0.3s; }
.github-footer:hover { color: #38bdf8; }

/* --- Footer altijd onderaan in beeld --- */
footer {
    position: fixed;    /* Zet de footer vast op het scherm */
    bottom: 0;          /* Plak hem aan de onderkant */
    left: 0;
    width: 100%;
    padding: 20px 0;    /* Iets minder padding omdat hij zweeft */
    text-align: center;
    background: linear-gradient(to top, rgba(9, 10, 15, 0.9), transparent); /* Maakt tekst beter leesbaar op de sterren */
    z-index: 2000;      /* Zorgt dat hij altijd boven de kaarten blijft */
}

.github-footer { 
    color: #475569; 
    text-decoration: none; 
    font-size: 1.1rem; 
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.github-footer:hover { 
    color: #38bdf8; 
    transform: translateY(-2px); /* Kleine animatie bij hover */
}

/* VOEG DIT TOE aan je bestaande body block om ruimte te maken voor de zwevende footer */
body {
    padding-bottom: 100px !important; /* Voorkomt dat de footer je knoppen bedekt */
}

/* Voeg dit toe onderaan je style.css */
.login-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
    margin: 0;
    box-sizing: border-box;
}

.login-card {
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(15px);
    padding: 40px;
    border-radius: 30px;
    border: 1px solid rgba(56, 189, 248, 0.3);
    text-align: center;
    width: 100%;
    max-width: 380px; /* Dit zorgt ervoor dat hij niet te breed wordt */
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    z-index: 10;
}

.login-card h1 {
    margin: 0;
    font-size: 1.8rem;
    color: #38bdf8;
}

@media (max-width: 600px) { .top-bar { width: 90%; gap: 15px; padding: 10px 20px; } }