:root {
    --glass: rgba(20, 20, 35, 0.75);
    --glass-hover: rgba(40, 40, 60, 0.9);
    --border: rgba(255, 255, 255, 0.08);
    --accent: #00d4ff;
    --success: #2ecc71;
    --danger: #ff4757;
    --text-main: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.5);
    --shadow: 0 10px 40px 0 rgba(0, 0, 0, 0.6);
    --anim-curve: cubic-bezier(0.25, 0.8, 0.25, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Poppins', sans-serif; user-select: none; -webkit-font-smoothing: antialiased; }

body {
    height: 100vh; overflow: hidden; 
    display: flex; justify-content: center; align-items: center;
    background: url('https://images.unsplash.com/photo-1618005182384-a83a8bd57fbe?q=80&w=2564&auto=format&fit=crop') no-repeat center center fixed;
    background-size: cover;
    color: var(--text-main);
}

/* --- LOGIN SCREEN STYLING --- */
#login-screen {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.6); backdrop-filter: blur(25px);
    z-index: 99999; /* Super hoog zodat het over alles heen ligt */
    display: flex; justify-content: center; align-items: center;
    animation: fadeIn 0.5s ease;
}

.login-card {
    background: #1a1a2e; border: 1px solid var(--border);
    padding: 40px; border-radius: 30px; text-align: center;
    width: 320px; box-shadow: 0 20px 60px rgba(0,0,0,0.8);
    display: flex; flex-direction: column; gap: 15px;
}

.login-icon {
    font-size: 40px; color: var(--accent); margin-bottom: 10px;
}

.login-card h2 { font-size: 20px; font-weight: 600; margin: 0; }
.login-card p { font-size: 13px; color: var(--text-muted); margin: 0 0 10px 0; }

#pass-input {
    background: rgba(255,255,255,0.05); border: 1px solid var(--border);
    padding: 12px; border-radius: 12px; color: white; text-align: center;
    font-size: 16px; outline: none; transition: 0.3s;
}
#pass-input:focus { border-color: var(--accent); background: rgba(255,255,255,0.1); }

.login-btn {
    background: var(--accent); border: none; padding: 12px; border-radius: 12px;
    font-weight: 600; color: #000; cursor: pointer; transition: 0.2s;
}
.login-btn:hover { opacity: 0.9; transform: translateY(-2px); }

#login-msg { color: var(--danger); font-size: 12px; min-height: 20px; }

/* --- DASHBOARD (Verborgen tot login) --- */
.dashboard-container {
    display: grid;
    grid-template-columns: 300px 1fr 280px;
    gap: 20px;
    width: 95vw; max-width: 1400px; height: 85vh;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(20px);
    border-radius: 30px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    animation: fadeUp 0.8s var(--anim-curve) forwards;
    position: relative;
    will-change: transform, opacity;
    transform: translateZ(0); 
}

@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

.col { display: flex; flex-direction: column; gap: 20px; overflow-y: auto; padding-right: 5px; position: relative; }
.col::-webkit-scrollbar { width: 0; }

/* ... (REST VAN JE BESTAANDE CSS VOOR CARDS, WIDGETS ENZ.) ... */
/* PLAK HIER ONDER DE STANDAARD CSS UIT JE VORIGE STYLE.CSS */
/* CARDS */
.card {
    background: var(--glass); border: 1px solid var(--border); border-radius: 20px; padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2); 
    transition: transform 0.3s var(--anim-curve), background 0.3s ease;
    display: flex; flex-direction: column; position: relative;
    will-change: transform;
}
.card.clickable { cursor: pointer; }
.card.clickable:hover { transform: translateY(-4px); background: var(--glass-hover); box-shadow: 0 8px 25px rgba(0,0,0,0.3); }

.card-header { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 13px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
.card-header i { color: var(--accent); }

/* KLOK */
.clock-widget { text-align: center; padding: 30px 0; background: linear-gradient(135deg, rgba(255,255,255,0.03), rgba(255,255,255,0.00)); }
#clock-time { font-size: 48px; font-weight: 700; line-height: 1; letter-spacing: 2px; font-variant-numeric: tabular-nums; }
#clock-date { font-size: 14px; color: var(--text-muted); margin-top: 5px; }

/* AANWEZIGHEID STATS */
.stats-row { display: flex; justify-content: space-between; align-items: flex-end; font-size: 11px; margin-bottom: 3px; font-weight: 500; }
.stat-value-group { display: flex; align-items: baseline; gap: 5px; }
.stat-hours { font-size: 10px; color: var(--text-muted); font-weight: 400; }
.stat-perc { font-size: 12px; font-weight: 700; color: white; }
.progress-track { height: 6px; background: rgba(255,255,255,0.08); border-radius: 10px; overflow: hidden; margin-bottom: 10px; }
.progress-fill { height: 100%; border-radius: 10px; transition: width 1.2s var(--anim-curve); }
.fill-green { background: var(--success); box-shadow: 0 0 10px rgba(46, 204, 113, 0.4); }
.fill-orange { background: #f39c12; }
.fill-red { background: var(--danger); }

/* WIDGETS EXPANSION */
.expandable-placeholder { display: none; border-radius: 30px; background: rgba(255,255,255,0.02); }

.floating-widget {
    background: var(--glass); border: 1px solid var(--border); border-radius: 30px; padding: 25px;
    display: flex; flex-direction: column; width: 100%; 
    height: auto;
    transform: translate3d(0,0,0);
    transition: all 0.5s var(--anim-curve); 
    overflow: hidden; z-index: 100;
    backface-visibility: hidden;
}

#agendaWidget { min-height: 400px; flex-grow: 1; }

.floating-widget.floating { position: fixed; margin: 0; box-shadow: 0 20px 80px rgba(0,0,0,0.8); z-index: 9999; }

.floating-widget.is-open { 
    background: #141420 !important; 
    border-color: rgba(255,255,255,0.1); 
    height: 80vh !important; 
}

#att-expanded-content, #zaken-expanded-content {
    display: none; flex-direction: column; height: 100%; 
    opacity: 0; transition: opacity 0.4s ease; flex-grow: 1;
}

.widget-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; height: 40px; flex-shrink: 0; }
.widget-title { font-size: 18px; font-weight: 700; display: flex; align-items: center; gap: 15px; }

.nav-btn, .back-btn { background: rgba(255,255,255,0.1); border: none; color: white; width: 32px; height: 32px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: 0.2s; }
.nav-btn:hover, .back-btn:hover { background: var(--accent); color: black; }
.view-btn, .close-btn { background: rgba(255,255,255,0.1); border: 1px solid var(--border); color: white; padding: 8px 16px; border-radius: 12px; font-size: 12px; cursor: pointer; font-weight: 600; transition: 0.2s; }
.view-btn:hover, .close-btn:hover { background: var(--accent); color: black; }

/* SCROLLBAR */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.3); }

/* AGENDA */
#agenda-content { flex-grow: 1; overflow-y: auto; overflow-x: hidden; padding-right: 5px; }
.today-layout { display: flex; flex-direction: column; gap: 10px; }
.week-layout { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; height: 100%; align-items: stretch; }
.month-layout { display: flex; flex-direction: column; gap: 20px; padding-bottom: 20px; }
.week-row { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; width: 100%; border-bottom: 1px solid rgba(255,255,255,0.05); padding-bottom: 15px; }
.day-column { flex: 1; display: flex; flex-direction: column; gap: 8px; background: rgba(255,255,255,0.03); border-radius: 15px; padding: 10px; transition: background 0.2s; height: fit-content; min-height: 120px; }
.today-layout .day-column { background: transparent; padding: 0; min-height: auto; }
.day-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--accent); border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 8px; margin-bottom: 5px; position: sticky; top: 0; z-index: 5; }
.today-highlight { background: rgba(0, 212, 255, 0.05) !important; border: 1px solid rgba(0, 212, 255, 0.2); }
.today-highlight .day-title { color: #2ecc71; }
.other-month { opacity: 0.3; }
.weekend-day { background: rgba(255, 255, 255, 0.015); }
.lesson-card { background: rgba(0,0,0,0.3); border-radius: 8px; padding: 10px; border-left: 3px solid rgba(255,255,255,0.3); transition: transform 0.2s var(--anim-curve); flex-shrink: 0; display: flex; flex-direction: column; gap: 2px; will-change: transform; }
.lesson-card:hover { background: rgba(255,255,255,0.1); transform: translateY(-2px); border-left-color: var(--accent); }
.lesson-card.active { background: rgba(0, 212, 255, 0.15) !important; border-left: 3px solid var(--accent) !important; box-shadow: 0 0 20px rgba(0, 212, 255, 0.15); }
.time { font-size: 10px; font-weight: 700; color: var(--accent); display: flex; align-items: center; gap: 5px; background: rgba(0, 212, 255, 0.1); padding: 2px 6px; border-radius: 4px; width: fit-content; }
.subject { font-size: 12px; font-weight: 600; color: white; line-height: 1.3; margin-top: 2px; }
.location { font-size: 9px; color: rgba(255,255,255,0.7); display: flex; justify-content: space-between; margin-top: 4px; border-top: 1px solid rgba(255,255,255,0.05); padding-top: 4px; }
.cancelled { opacity: 0.6; border-left-color: var(--danger); }
.cancelled .subject { text-decoration: line-through; }

/* TABS & LISTS */
.att-tabs { display: flex; gap: 10px; border-bottom: 2px solid rgba(255,255,255,0.1); margin-bottom: 15px; }
.att-tab { padding: 10px 15px; cursor: pointer; font-weight: 600; color: var(--text-muted); border-bottom: 2px solid transparent; margin-bottom: -2px; transition: color 0.3s ease; font-size: 13px; }
.att-tab:hover { color: white; }
.att-tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.att-view { flex-grow: 1; overflow-y: auto; display: none; flex-direction: column; gap: 10px; padding-right: 5px; }
.att-view.active { display: flex; animation: slideUpFade 0.4s var(--anim-curve); }
@keyframes slideUpFade { from { opacity:0; transform:translateY(15px); } to { opacity:1; transform:none; } }
.att-group-header { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--accent); margin-bottom: 5px; margin-top: 10px; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 5px; }
.att-item { background: rgba(255,255,255,0.03); border-radius: 12px; padding: 12px 15px; display: flex; align-items: center; gap: 15px; transition: 0.2s; border-left: 3px solid transparent; }
.att-item:hover { background: rgba(255,255,255,0.06); transform: translateX(5px); }
.att-icon { width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,0.05); display: flex; align-items: center; justify-content: center; font-size: 14px; color: var(--text-muted); }
.att-info { flex-grow: 1; display: flex; flex-direction: column; }
.att-subject { font-weight: 600; font-size: 13px; color: white; }
.att-meta { font-size: 11px; opacity: 0.5; font-family: monospace; margin-top: 2px; }
.att-status { font-size: 10px; font-weight: 700; padding: 4px 8px; border-radius: 20px; text-transform: uppercase; min-width: 80px; text-align: center; white-space: nowrap; }
.status-green { color: var(--success); background: rgba(46, 204, 113, 0.1); border: 1px solid rgba(46, 204, 113, 0.2); }
.status-red { color: var(--danger); background: rgba(255, 71, 87, 0.1); border: 1px solid rgba(255, 71, 87, 0.2); }
.status-blue { color: #3498db; background: rgba(52, 152, 219, 0.1); border: 1px solid rgba(52, 152, 219, 0.2); }
.status-orange { color: #f39c12; background: rgba(243, 156, 18, 0.1); border: 1px solid rgba(243, 156, 18, 0.2); }

/* MINI LIST */
.mini-list-item { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
.mini-list-item:last-child { border: none; }
.mini-icon { width: 28px; height: 28px; background: rgba(0, 212, 255, 0.1); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--accent); font-size: 12px; }
.mini-info { display: flex; flex-direction: column; flex-grow: 1; }
.mini-title { font-size: 12px; font-weight: 600; }
.mini-sub { font-size: 10px; opacity: 0.5; }

/* DETAIL OVERLAY & TIMELINE */
#att-report-detail, #zaken-detail-screen { display: none; flex-direction: column; height: 100%; background: var(--glass); animation: slideIn 0.3s ease; }
@keyframes slideIn { from { transform: translateX(30px); opacity: 0; } to { transform: none; opacity: 1; } }
.detail-header { display: flex; align-items: center; margin-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 15px; }
.detail-title { font-size: 16px; font-weight: 700; margin-left: 10px; }
.detail-content { flex-grow: 1; display: flex; flex-direction: column; gap: 20px; padding: 10px; overflow-y: auto; }
.detail-group { display: flex; flex-direction: column; gap: 5px; }
.detail-label { font-size: 10px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); }
.detail-value { font-size: 14px; font-weight: 500; color: white; }
.detail-status-large { font-size: 16px; font-weight: 700; margin-top: 5px; display: inline-block; }

/* TIMELINE */
.timeline-container { display: flex; flex-direction: column; gap: 0; margin-top: 10px; border-left: 2px solid rgba(255,255,255,0.1); padding-left: 20px; margin-left: 8px; }
.timeline-item { position: relative; padding-bottom: 20px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot { position: absolute; left: -26px; top: 0; width: 10px; height: 10px; border-radius: 50%; background: #2c2c2c; border: 2px solid var(--text-muted); box-shadow: 0 0 0 4px rgba(20,20,30,1); }
.timeline-title { font-size: 13px; font-weight: 600; color: white; }
.timeline-date { font-size: 11px; color: var(--text-muted); font-family: monospace; }

/* DOCS */
.doc-item { display: flex; align-items: center; gap: 10px; padding: 10px; background: rgba(255,255,255,0.05); border-radius: 8px; margin-bottom: 5px; }
.doc-icon { color: var(--accent); }

/* TOOLS */
.tool-btn { width: 100%; padding: 12px; background: rgba(255,255,255,0.05); border: 1px solid var(--border); border-radius: 12px; color: white; cursor: pointer; display: flex; align-items: center; gap: 10px; transition: 0.2s; font-size: 13px; }
.tool-btn:hover { background: rgba(255,255,255,0.1); border-color: var(--accent); transform: translateY(-2px); }
.social-list { display: flex; flex-direction: column; gap: 8px; }
.social-link { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text-muted); padding: 10px; border-radius: 12px; transition: 0.2s; }
.social-link:hover { background: rgba(255,255,255,0.1); color: white; transform: translateX(5px); }
.social-link img { width: 20px; height: 20px; border-radius: 4px; }
.social-link i { width: 24px; text-align: center; font-size: 18px; margin-right: 2px; }
.fa-graduation-cap { color: #1abc9c; } .fa-building-columns { color: #e74c3c; } 

.loading-msg { text-align: center; margin-top: 50px; opacity: 0.5; }
.sync-status { text-align: center; font-size: 9px; opacity: 0.4; margin-top: 8px; }