body {
    margin: 0;
    font-family: system-ui, sans-serif;
    background: #f5f6fa;
}

/* Sidebar */
.sidebar {
    position: fixed;
    width: 220px;
    height: 100vh;
    background: #fff;
    border-right: 1px solid #ddd;
    padding-top: 20px;
    transition: transform 0.3s ease;
}
.sidebar-logo {
    width: 100%;
    text-align: center;
    padding: 20px 0 10px 0;
}

.sidebar-logo img {
    width: 80px;
    height: auto;
    display: block;
    margin: 0 auto;
    transition: 0.35s ease; /* smooth Apple‑style */
    opacity: 0.9;
}

/* Hover animatie */
.sidebar-logo img:hover {
    transform: scale(1.08);
    opacity: 1;
    filter: drop-shadow(0 6px 12px rgba(0,0,0,0.25));
}

.sidebar-title {
    text-align: center;
    font-size: 14px;
    font-weight: bold;
    padding-bottom: 20px;
}

.sidebar a {
    display: block;
    padding: 12px 20px;
    color: #444;
    text-decoration: none;
}

.sidebar a.active {
    background: #e5e8ff;
    color: #2f4cff;
}

/* Content */
.content {
    margin-left: 220px;
    padding: 20px 30px;
    transition: margin-left 0.3s ease;
}

/* Grid */
.widgets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

/* Widgets */
.widget {
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-radius: 20px;
    padding: 16px;
    border: 1px solid rgba(255,255,255,0.45);
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.widget:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.12);
}

.widget-large {
    grid-column: span 2;
}

.widget-info {
    margin-top: 10px;
    font-size: 13px;
    color: #555;
    text-align: center;
}


/* Charts */
.widget canvas {
    width: 100% !important;
    height: 205px !important;
    box-sizing: border-box;
}

/* Logs */
.log-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 160px;
    overflow-y: auto;
    font-size: 13px;
    line-height: 1.35;
    border-radius: 8px;
}

/* Login list */
.login-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 14px;
}

.login-list li {
    border-bottom: 1px solid #eee;
    padding: 6px 0;
}

.login-list li:last-child {
    border-bottom: none;
}

.login-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

.login-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.login-left .icon {
    font-size: 18px;
    color: #4c6fff;
}

.login-date {
    color: #666;
    font-size: 13px;
    white-space: nowrap;
}

/* Client selector */
#clientSelect {
    padding: 10px 14px;
    border-radius: 12px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    color: #000;
    font-size: 15px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    cursor: pointer;
    transition: 0.2s;
}

#clientSelect:hover {
    background: rgba(255,255,255,0.25);
}

/* DESKTOP HEADER (origineel) */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 25px;
    padding: 0 5px;
}

.dashboard-header h1 {
    margin: 0;
}

.client-select-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.last-updated {
    text-align: left;
    font-size: 12px;
    color: #777;
    margin-top: 4px;
}

/* Hamburger button */
.hamburger {
    display: none;
    position: fixed;
    top: 15px;
    left: 15px;
    font-size: 28px;
    color: #333;
    background: #fff;
    padding: 8px 12px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    cursor: pointer;
    z-index: 9999;
}

.btn-primary,
.btn-copy,
.btn-toggle,
.btn-danger,
a.btn-primary,
a.btn-copy,
a.btn-toggle,
a.btn-danger {
    padding: 8px 14px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: 0.2s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}


/* Primary */
.btn-primary {
    background: #4c6fff;
    color: #fff;
}
.btn-primary:hover {
    background: #3d59d9;
}

/* Copy */
.btn-copy {
    background: #e8eaff;
    color: #2f4cff;
}
.btn-copy:hover {
    background: #d9ddff;
}

/* Toggle */
.btn-toggle {
    background: #f3f3f3;
    color: #333;
}
.btn-toggle:hover {
    background: #e5e5e5;
}

/* Danger */
.btn-danger {
    background: #ffdddd;
    color: #b30000;
}
.btn-danger:hover {
    background: #ffcccc;
}
.key-mono {
    font-family: monospace;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.clients-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
}

.clients-table th {
    text-align: left;
    padding: 10px;
    font-size: 14px;
    color: #555;
}

.clients-table td {
    padding: 10px;
    vertical-align: top;
    word-break: break-word;
}
/* Inline forms netjes onder elkaar */
.inline-form {
    display: block;
    margin-bottom: 10px;
}

.inline-form input[type="text"] {
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 6px;
}

.inline-form button {
    width: 100%;
}
/* iOS-style input fields */
input[type="text"],
input[type="url"],
input[type="password"],
input[type="number"],
select,
textarea {
    width: 100%;
    box-sizing: border-box; /* FIX: voorkomt overflow */
    padding: 12px 14px;
    margin: 6px 0 12px 0;
    font-size: 15px;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.12);
    background: rgba(255,255,255,0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.08);
    transition: 0.2s ease;
    outline: none;
}

/* Hover */
input:hover,
select:hover,
textarea:hover {
    background: rgba(255,255,255,0.85);
}

/* Focus (Apple blue glow) */
input:focus,
select:focus,
textarea:focus {
    border-color: #4c6fff;
    box-shadow: 0 0 0 3px rgba(76,111,255,0.25);
    background: rgba(255,255,255,0.95);
}
.client-form input[type="text"],
.client-form input[type="url"],
.client-form button {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box; /* BELANGRIJK */
}
/* Popup overlay */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(4px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 99999;
}

/* Popup box */
.popup-box {
    background: #fff;
    width: 320px;
    padding: 25px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
    animation: popupFade 0.25s ease;
}

@keyframes popupFade {
    from { transform: scale(0.85); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Icon */
.popup-icon {
    font-size: 48px;
    color: #e63946;
    margin-bottom: 10px;
}

/* Buttons */
.popup-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.btn-cancel {
    flex: 1;
    margin-right: 8px;
    padding: 10px;
    border-radius: 10px;
    background: #e5e5e5;
    border: none;
    cursor: pointer;
    font-size: 15px;
}

.btn-delete {
    flex: 1;
    margin-left: 8px;
    padding: 10px;
    border-radius: 10px;
    background: #ff4d6d;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 15px;
}

.btn-delete:hover {
    background: #e63950;
}

/* Toast container */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    min-width: 280px;
    max-width: 360px;
    padding: 14px 18px;
    border-radius: 14px;
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    opacity: 0;
    transform: translateY(-20px);
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 99999;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* Toast colors */
.toast-success { background: #2ecc71; }
.toast-info    { background: #4c6fff; }
.toast-error   { background: #e63946; }

/* Icon container */
.toast-icon {
    display: flex;
    align-items: center;
}

/* Bell icon */
.bell {
    position: relative;
    font-size: 26px;
    color: #fff;
}

/* Red badge */
.bell .badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #ff3b30;
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 50%;
    border: 2px solid #fff;
}

@keyframes bellBounce {
    0%   { transform: scale(1) rotate(0deg); }
    20%  { transform: scale(1.15) rotate(-10deg); }
    40%  { transform: scale(1.15) rotate(10deg); }
    60%  { transform: scale(1.1) rotate(-6deg); }
    80%  { transform: scale(1.05) rotate(4deg); }
    100% { transform: scale(1) rotate(0deg); }
}

.toast.show .bell {
    animation: bellBounce 0.6s ease;
}

@keyframes badgePulse {
    0%   { transform: scale(1); box-shadow: 0 0 0 0 rgba(255,59,48,0.6); }
    50%  { transform: scale(1.25); box-shadow: 0 0 12px 4px rgba(255,59,48,0.4); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255,59,48,0.0); }
}

.toast.show .badge {
    animation: badgePulse 0.6s ease;
}

.action-col {
    display: flex;
    flex-direction: column;
    gap: 12px; /* ruimte tussen Edit en Delete */
    vertical-align: top;
}

.action-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.action-block input {
    width: 100%;
    box-sizing: border-box;
}

.sidebar-subtitle {
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #000; /* beter zichtbaar */
    text-transform: uppercase;
    margin-top: -4px;
    margin-bottom: 20px;
}

/* Pulse indicator wrapper */
.last-updated-wrapper {
    display: flex;
    align-items: center;
    gap: 14px;
    position: relative;
}


/* Pulse indicator */
.update-pulse {
    width: 10px;
    height: 10px;
margin-left:12px;
    background: #2ecc71; /* groen */
    border-radius: 50%;
    opacity: 0.9;
    transform: scale(1);
}

/* Pulse animatie */
@keyframes pulseAnim {
    0%   { transform: scale(1); opacity: 0.9; }
    50%  { transform: scale(1.6); opacity: 0.4; }
    100% { transform: scale(1); opacity: 0.9; }
}

.update-pulse.active {
    animation: pulseAnim 1.4s ease-in-out infinite;
}

/* Oranje status */
.update-pulse.orange {
    background: #f39c12;
    animation: none !important;
}

/* Rode status */
.update-pulse.red {
    background: #e74c3c;
    animation: none !important;
}
.client-selector {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    font-size: 13px;
    color: rgba(255,255,255,0.7);
}

.client-selector label {
    font-weight: 600;
    letter-spacing: 0.3px;
}

.client-selector select {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    padding: 8px 14px;
    border-radius: 12px;
    color: #fff;
    font-size: 14px;
    backdrop-filter: blur(8px);
    transition: 0.2s ease;
}

.client-selector select:hover {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.25);
}

.client-selector select:focus {
    outline: none;
    border-color: #4cd964; /* Apple green */
    background: rgba(76,217,100,0.15);
}
/* Dashboard Alert Banner */
.dashboard-alert {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%); /* centreren */
    padding: 16px 22px;
    border-radius: 16px;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    opacity: 0;
    transform: translate(-50%, -20px);
    transition: 0.35s ease;
    z-index: 99999;
}
/* Status kleuren */
.dashboard-alert.green  { background: #2ecc71; }
.dashboard-alert.orange { background: #f39c12; }
.dashboard-alert.red    { background: #e74c3c; }

/* Show animatie */
.dashboard-alert.show {
    opacity: 1;
    transform: translate(-50%, 0);
}

/* Alert icon */
.dashboard-alert .icon {
    font-size: 22px;
}

/* Witte bel */
/* Bel in kleur */
.dashboard-alert .bell {
    position: relative;
    font-size: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Rode badge met wit cijfer */
.dashboard-alert .bell .badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #e74c3c; /* rood */
    color: #fff;         /* wit cijfer */
    font-size: 11px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 6px rgba(0,0,0,0.25);
}

@keyframes badgePulseWhite {
    0%   { transform: scale(1); box-shadow: 0 0 0 0 rgba(255,255,255,0.6); }
    50%  { transform: scale(1.25); box-shadow: 0 0 12px 4px rgba(255,255,255,0.4); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}

.dashboard-alert.show .badge {
    animation: badgePulseWhite 0.6s ease;
}
@keyframes bellBounceWhite {
    0%   { transform: scale(1) rotate(0deg); }
    20%  { transform: scale(1.15) rotate(-10deg); }
    40%  { transform: scale(1.15) rotate(10deg); }
    60%  { transform: scale(1.1) rotate(-6deg); }
    80%  { transform: scale(1.05) rotate(4deg); }
    100% { transform: scale(1) rotate(0deg); }
}

.dashboard-alert.show .bell {
    animation: bellBounceWhite 0.6s ease;
}

.server-icon {
    font-family: 'Material Icons Outlined';
    font-size: 20px;
    vertical-align: middle;
    margin-right: 8px;
    opacity: 0.85;
}
.uptime-pulse {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: #2ecc71; /* groen */
    border-radius: 50%;
    margin-right: 8px;
    animation: uptimePulse 1.5s infinite ease-in-out;
}

@keyframes uptimePulse {
    0% { transform: scale(1); opacity: 0.9; }
    50% { transform: scale(1.4); opacity: 0.5; }
    100% { transform: scale(1); opacity: 0.9; }
}

.info-list {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    font-size: 14px;
    line-height: 1.45;
    color: #000;
    list-style: none;
    padding: 0;
    margin: 0;
text-align:center;
}

.info-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
}

.info-list .icon {
    font-size: 16px;
    opacity: 0.9;
    width: 18px;
    text-align: center;
}

.info-list .uptime-pulse {
    width: 10px;
    height: 10px;
    background: #2ecc71;
    border-radius: 50%;
    animation: uptimePulse 1.5s infinite ease-in-out;
    margin-right: 6px;
}



.fullscreen-toggle {
    font-size: 20px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    background: rgba(255,255,255,0.08);
    color: #4c6fff;
}


.fullscreen-toggle:hover {
    background: rgba(0,0,0,0.55);
color: #fff;
}

/* Desktop only */
@media (max-width: 900px) {
    .fullscreen-toggle {
        display: none;
    }
}

.sidebar.fullscreen-collapsed {
    transform: translateX(-240px);
    transition: transform 0.35s ease;
}

.content.fullscreen-expanded {
    margin-left: 0 !important;
    width: 100% !important;
    transition: margin-left 0.35s ease;
}

/* GLOBAL SWITCH (same as widget toggle) */
.widget-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px;
    background: rgba(255,255,255,0.08);
    border-radius: 12px;
    margin-bottom: 12px;
}

.switch {
    position: relative;
    width: 48px;
    height: 24px;
}
.switch input {
    display: none;
}
.slider {
    position: absolute;
    cursor: pointer;
    background: #ccc;
    border-radius: 24px;
    top: 0; left: 0; right: 0; bottom: 0;
    transition: .3s;
}
.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: .3s;
}
input:checked + .slider {
    background: #4c6fff;
}
input:checked + .slider:before {
    transform: translateX(24px);
}

.log-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.log-tab {
    padding: 6px 12px;
    background: #e6e6e6;          /* lichtgrijs */
    border: 1px solid #cfcfcf;    /* subtiele rand */
    border-radius: 8px;
    cursor: pointer;
    color: #000;                  /* zwarte tekst */
    transition: 0.2s;
}

/* Hover effect */
.log-tab:hover {
    background: #dcdcdc;
}

/* Actieve tab (blijft zoals je nu hebt) */
.log-tab.active {
    background: #4c6fff;          /* blauw */
    border-color: #4c6fff;
    color: #fff;                  /* witte tekst */
}


.log-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 260px;
    overflow-y: auto;
}

.log-list li {
    padding: 4px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    font-family: monospace;
    font-size: 13px;
}

.log-error {
    color: #ff4c4c; /* rood */
    font-weight: 600;
}

.log-warning {
    color: #ffb14c; /* oranje */
    font-weight: 600;
}

.log-info {
    color: #000; /* blauw */
    
}

.log-tab .tab-badge {
    background: red;
    color: white;
    font-size: 10px;
    padding: 2px 5px;
    border-radius: 10px;
    margin-left: 6px;
}

@media (max-width: 768px) {
    #serverInfo {
        font-size: 10px;   /* kies 11px of 10px als je nóg compacter wilt */
        line-height: 1.3;
    }

    #serverInfo .icon {
        font-size: 14px;   /* iconen subtiel kleiner */
    }
#loginsList {
        font-size: 10px;   /* kies 11px of 10px als je nóg compacter wilt */
        line-height: 1.3;
    }

    #loginsList .icon {
        font-size: 12px;   /* iconen ook subtiel kleiner */
    }

    #loginsList .login-date {
        font-size: 8px;   /* datum iets kleiner voor balans */
    }

}


/* MOBILE MODE */
@media (max-width: 900px) {



    /* Login items moeten GEEN flex meer zijn op mobiel */
    .login-item {
        display: block !important;
        overflow-x: auto;
        white-space: nowrap;
        width: 100%;
        box-sizing: border-box;
    }

    /* Binnen het item moeten icon, naam en datum inline blijven */
    .login-left,
    .login-date {
        display: inline-block !important;
        vertical-align: middle;
    }

    /* Flex van desktop uitschakelen */
    .login-left {
        flex: unset !important;
        min-width: unset !important;
    }

    .login-date {
        flex-shrink: unset !important;
    }

    .hamburger {
        display: block;
position: fixed;
        top: 15px;
        left: 15px;
        z-index: 9999;
    }

    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        height: 100vh;
        width: 220px;
        transform: translateX(-100%);
        z-index: 9998;
padding-top: 70px; /* BELANGRIJK */
    }

/* Optioneel: titel iets naar beneden */
    .sidebar-title {
        margin-top: 10px;
        display: block;
    }
    .sidebar.open {
        transform: translateX(0);
    }

.login-list .login-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 6px;
        width: 100%;
    }

    .login-list .login-left {
        flex: 1;
        min-width: 0;
    }

    .login-list .login-date {
        white-space: nowrap;
        flex-shrink: 0;
        font-size: 12px;
    }


    /* Header mobiel */
    .dashboard-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 8px;
        margin-top: 60px;
    }

    .client-select-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 4px;
        width: 100%;
    }

    #clientSelect {
        width: 200px;
        max-width: 80%;
        text-align: center;
    }

    .last-updated {
        text-align: center;
    }


/* Compactere widgets op mobiel */
    .widget {
width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 12px;
        border-radius: 16px;
    }

    /* Lagere charts zodat widgets niet lang en smal worden */
    .widget canvas {
        height: 110px !important;
    }

    /* Widgets iets breder zodat ze minder smal lijken */
    .widgets-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
/* Zorg dat content nooit breder is dan het scherm */
    .content {
        margin-left: 0 !important;
        padding: 20px;
        width: 100%;
        box-sizing: border-box;
    }

.content-header h1 {
        text-align: center;
        width: 100%;
        display: block;
    }

 .client-form input,
    .client-form button {
        width: 100%;
        box-sizing: border-box;
        margin-bottom: 8px;
    }

    .clients-table {
    width: 100%;
    table-layout: fixed; /* BELANGRIJK */
    word-break: break-word;
}


    .clients-table thead {
        display: none;
    }

    .clients-table tr {
        display: block;
        background: #fff;
        margin-bottom: 12px;
        padding: 14px;
        border-radius: 14px;
        border: 1px solid #eee;
    }

    .clients-table td {
        display: block;
        padding: 6px 0;
    }

    .clients-table td::before {
        content: attr(data-label) ": ";
        font-weight: 600;
        color: #555;
    }

    .inline-form {
        display: block;
        margin-top: 10px;
    }

    .inline-form input[type="text"] {
        width: 100%;
        box-sizing: border-box;
        margin-bottom: 4px;
    }

    .inline-form button {
        width: 100%;
    }
 .key-mono {
        gap: 8px;
    }
}

/* DESKTOP MODE */
@media (min-width: 901px) {
    .widgets-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }
}
/* ============================================
   GLOBAL NOTIFICATION CENTER (Dashboard + Clients + KeyManager)
   ============================================ */

/* Dashboard alert (al gecentreerd, maar nu universeel gemaakt) */
.dashboard-alert {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 16px 22px;
    border-radius: 16px;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    opacity: 0;
    transform: translate(-50%, -20px);
    transition: 0.35s ease;
    z-index: 99999;
}

.dashboard-alert.show {
    opacity: 1;
    transform: translate(-50%, 0);
}

/* ============================================
   TOAST SYSTEM (Clients + KeyManager)
   → Verplaatst naar midden boven
   ============================================ */

.toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    min-width: 280px;
    max-width: 360px;
    padding: 14px 18px;
    border-radius: 14px;
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    opacity: 0;
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 99999;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Toast kleuren */
.toast-success { background: #2ecc71; }
.toast-info    { background: #4c6fff; }
.toast-error   { background: #e63946; }

/* Bel + badge (identiek aan dashboard) */
.toast .bell,
.dashboard-alert .bell {
    position: relative;
    font-size: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.toast .bell .badge,
.dashboard-alert .bell .badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #ff3b30;
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 50%;
    border: 2px solid #fff;
}

/* Animaties */
.toast.show .bell,
.dashboard-alert.show .bell {
    animation: bellBounce 0.6s ease;
}

.toast.show .badge,
.dashboard-alert.show .badge {
    animation: badgePulse 0.6s ease;
}