:root {
    --bg-dark: #0f0f1a;
    --glass: rgba(255, 255, 255, 0.05);
    --glass-hover: rgba(255, 255, 255, 0.1);
    --border: rgba(255, 255, 255, 0.1);
    --accent: #00d4ff;
    --text: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.6);
    --success: #2ecc71;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Poppins', sans-serif; }

body {
    background-color: var(--bg-dark);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    overflow-x: hidden;
}

/* Achtergrond Glow */
.bg-gradient {
    position: fixed; top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle at center, rgba(0, 212, 255, 0.15) 0%, transparent 50%);
    z-index: -1; animation: pulse 10s infinite alternate;
}
@keyframes pulse { from { transform: scale(1); } to { transform: scale(1.1); } }

.main-container {
    width: 100%; max-width: 1200px; padding: 40px 20px 100px 20px;
}

/* HEADER */
header {
    display: flex; justify-content: space-between; align-items: center; margin-bottom: 60px;
}
.logo { font-size: 24px; font-weight: 700; letter-spacing: 1px; }
.badge { background: var(--accent); color: #000; font-size: 10px; padding: 2px 6px; border-radius: 4px; vertical-align: middle; margin-left: 5px; }
.user-profile { display: flex; align-items: center; gap: 10px; font-weight: 600; background: var(--glass); padding: 5px 15px 5px 5px; border-radius: 30px; border: 1px solid var(--border); }
.user-profile img { width: 32px; height: 32px; border-radius: 50%; }

/* HERO */
.hero-section { text-align: center; margin-bottom: 50px; animation: slideDown 0.8s ease; }
.hero-section h1 { font-size: 48px; font-weight: 700; margin-bottom: 10px; background: linear-gradient(to right, #fff, #aaa); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-section p { font-size: 18px; color: var(--text-muted); }

@keyframes slideDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: none; } }

/* GRID LAYOUT */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    animation: fadeIn 1s ease;
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

/* CARDS */
.card {
    background: var(--glass); border: 1px solid var(--border);
    border-radius: 20px; padding: 25px; text-decoration: none; color: white;
    display: flex; flex-direction: column; gap: 15px; transition: 0.3s;
    position: relative; overflow: hidden;
}

/* BIG CARD */
.big-card {
    grid-column: span 1; cursor: pointer;
    flex-direction: row; align-items: center; justify-content: space-between;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(255,255,255,0.02));
    border-color: rgba(0, 212, 255, 0.3);
}
@media (min-width: 800px) { .big-card { grid-column: span 2; } }

.card-arrow { font-size: 20px; opacity: 0.5; transition: 0.3s; }
.big-card:hover .card-arrow { transform: translateX(5px); opacity: 1; color: var(--accent); }

.icon-box { width: 50px; height: 50px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 24px; margin-bottom: 5px; }
.blue { background: rgba(0, 212, 255, 0.15); color: #00d4ff; }
.purple { background: rgba(155, 89, 182, 0.15); color: #9b59b6; }
.green { background: rgba(46, 204, 113, 0.15); color: #2ecc71; }
.orange { background: rgba(243, 156, 18, 0.15); color: #f39c12; }

.card h3 { font-size: 18px; font-weight: 600; }
.card p { font-size: 13px; color: var(--text-muted); }

/* PROJECT LISTS */
.project-list {
    margin-top: 5px; display: flex; flex-direction: column; gap: 10px;
}
.project-link {
    display: flex; align-items: center; gap: 12px;
    color: rgba(255, 255, 255, 0.7); text-decoration: none; font-size: 14px;
    padding: 10px; border-radius: 10px; background: rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease; border: 1px solid transparent;
}
.project-link:hover {
    background: rgba(255, 255, 255, 0.15); color: #fff; transform: translateX(5px);
    border-color: rgba(255, 255, 255, 0.2); box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.project-link i { width: 20px; text-align: center; }

/* SYSTEM STATUS */
.wide-card { 
    grid-column: span 1; display: flex; flex-direction: row; align-items: center; justify-content: space-between; 
    padding: 15px 25px; 
}
@media (min-width: 800px) { .wide-card { grid-column: span 2; } }

.status-header { font-weight: 600; color: var(--text-muted); display: flex; align-items: center; gap: 10px; }
.status-content { display: flex; gap: 20px; }
.status-item { font-size: 12px; display: flex; align-items: center; gap: 6px; font-family: monospace; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #555; }
.dot.online { background: var(--success); box-shadow: 0 0 8px rgba(46, 204, 113, 0.5); }

/* --- POP-UP (MODAL) STIJLEN --- */
.clickable-card { cursor: pointer; transition: 0.3s; }
.clickable-card:hover { border-color: var(--accent); transform: translateY(-5px); }

.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.8); backdrop-filter: blur(8px);
    z-index: 20000; display: none; align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.3s ease;
}
.modal-overlay.active { display: flex; opacity: 1; }

.modal-content {
    background: #1a1a2e; border: 1px solid rgba(255, 255, 255, 0.1);
    width: 90%; max-width: 500px; border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    transform: scale(0.9); transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}
.modal-overlay.active .modal-content { transform: scale(1); }

.modal-header {
    padding: 20px; border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex; justify-content: space-between; align-items: center;
    background: rgba(255,255,255,0.02);
}

.close-btn {
    background: rgba(255,255,255,0.1); border: none; color: white;
    padding: 5px 12px; border-radius: 6px; cursor: pointer; transition: 0.2s;
}
.close-btn:hover { background: #e74c3c; }

.modal-body {
    padding: 20px; max-height: 60vh; overflow-y: auto;
    display: flex; flex-direction: column; gap: 10px;
}

.modal-link {
    display: flex; align-items: center; gap: 15px;
    background: rgba(255,255,255,0.05); padding: 15px; border-radius: 12px;
    text-decoration: none; color: white; transition: 0.2s; border: 1px solid transparent;
}
.modal-link:hover {
    background: rgba(255,255,255,0.1); border-color: var(--accent); transform: translateX(5px);
}
.modal-icon {
    width: 40px; height: 40px; background: rgba(0, 212, 255, 0.1);
    color: var(--accent); border-radius: 8px;
    display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.modal-text { flex: 1; display: flex; flex-direction: column; }
.modal-text strong { font-size: 15px; }
.modal-text span { font-size: 12px; color: var(--text-muted); }
.modal-link .arrow { opacity: 0.3; transition: 0.2s; }
.modal-link:hover .arrow { opacity: 1; transform: translateX(3px); color: var(--accent); }