* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f4f7fa;
    color: #40536f;
}

/* Bovenbalk */

.topbar {
    background: #ffffff;
    border-bottom: 1px solid #e7edf3;
    padding: 14px 20px;
}

.topbar-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: block;
    width: 155px;
    max-height: 65px;
    object-fit: contain;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.notification-button,
.logout-button {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    border-radius: 10px;
    text-decoration: none;
}

.notification-button {
    position: relative;
    width: 44px;
    background: #f2f6fa;
    color: #40536f;
    font-size: 21px;
}

.notification-count {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #e72887;
    color: #ffffff;
    border: 2px solid #ffffff;
    border-radius: 20px;

    font-size: 10px;
    font-weight: 700;
}

.logout-button {
    padding: 0 14px;
    background: #f2f6fa;
    color: #64758c;
    font-size: 14px;
}

/* Pagina */

.dashboard {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 32px 20px 50px;
}

.welcome {
    margin-bottom: 28px;
}

.welcome h1 {
    margin: 0 0 7px;
    font-size: 28px;
    font-weight: 700;
    color: #40536f;
}

.welcome p {
    margin: 0;
    color: #7b899c;
    font-size: 15px;
}

/* Beheer */

.admin-card {
    display: flex;
    align-items: center;
    gap: 18px;

    margin-bottom: 24px;
    padding: 20px 22px;

    background: #40536f;
    color: #ffffff;
    border-radius: 16px;

    text-decoration: none;

    box-shadow: 0 8px 22px rgba(64, 83, 111, 0.18);

    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.admin-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(64, 83, 111, 0.25);
}

.admin-icon {
    font-size: 30px;
}

.admin-text strong {
    display: block;
    margin-bottom: 3px;
    font-size: 18px;
}

.admin-text span {
    font-size: 13px;
    opacity: 0.8;
}

/* Hoofdblokken */

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.dashboard-card {
    position: relative;
    overflow: hidden;

    display: flex;
    align-items: center;
    gap: 20px;

    min-height: 125px;
    padding: 24px;

    background: #ffffff;
    border-radius: 18px;

    text-decoration: none;
    color: #40536f;

    box-shadow: 0 7px 22px rgba(52, 72, 94, 0.08);

    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.dashboard-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(52, 72, 94, 0.13);
}

/* Gekleurde lijn links */

.dashboard-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 6px;
}

.card-organisation::before {
    background: #168bd2;
}

.card-documents::before {
    background: #36b7a5;
}

.card-news::before {
    background: #e72887;
}

.card-phone::before {
    background: #f2aa2a;
}

/* Iconen */

.card-icon {
    flex: 0 0 62px;
    width: 62px;
    height: 62px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 16px;
    font-size: 30px;
}

.card-organisation .card-icon {
    background: #eaf6fc;
}

.card-documents .card-icon {
    background: #eaf8f5;
}

.card-news .card-icon {
    background: #fcebf4;
}

.card-phone .card-icon {
    background: #fff5df;
}

.card-content {
    flex: 1;
}

.card-title {
    display: block;
    margin-bottom: 5px;
    font-size: 19px;
    font-weight: 700;
}

.card-description {
    display: block;
    color: #7b899c;
    font-size: 14px;
    line-height: 1.4;
}

.card-arrow {
    color: #a5b0bd;
    font-size: 24px;
}

/* PC / tablet */

@media (min-width: 768px) {

    .dashboard {
        padding-top: 45px;
    }

    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 22px;
    }

    .dashboard-card {
        min-height: 145px;
        padding: 28px;
    }

    .welcome h1 {
        font-size: 32px;
    }
}

/* Kleine smartphones */

@media (max-width: 420px) {

    .topbar {
        padding: 10px 12px;
    }

    .topbar-inner {
        gap: 10px;
    }

    .logo {
        width: 115px;
        max-width: 115px;
    }

    .topbar-actions {
        gap: 6px;
        flex-shrink: 0;
    }

    .notification-button {
        width: 40px;
        height: 40px;
        flex: 0 0 40px;
    }

    .logout-button {
        height: 40px;
        padding: 0 10px;
        font-size: 12px;
        white-space: nowrap;
        flex-shrink: 0;
    }
}

/* Deona */

.card-deona::before {
    background: #3498d0;
}

.card-deona .card-icon {
    background: #eef7fc;
}

.deona-icon {
    padding: 8px;
}

.deona-icon img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* =========================================================
   MOBIELE VERBETERINGEN
   ========================================================= */

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}


/* Zorg dat inhoud binnen kaarten effectief mag krimpen */
.dashboard-card,
.admin-card {
    min-width: 0;
}

.card-content,
.admin-text {
    min-width: 0;
}


/* Tekst mag afbreken indien nodig */
.card-title,
.card-description,
.admin-text strong,
.admin-text span {
    overflow-wrap: anywhere;
    word-break: normal;
}


/* Pijltje mag de tekst niet wegduwen */
.card-arrow {
    flex-shrink: 0;
    margin-left: 10px;
}


/* Iconen houden vaste afmetingen */
.card-icon,
.deona-icon,
.sdworx-icon {
    flex-shrink: 0;
}


/* =========================================================
   TABLET / MOBIEL
   ========================================================= */

@media (max-width: 768px) {

    .dashboard {
        width: 100%;
        max-width: 100%;
        padding-left: 16px;
        padding-right: 16px;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 14px;
        width: 100%;
    }

    .dashboard-card {
        width: 100%;
        max-width: 100%;
        min-height: 110px;

        padding: 18px;

        gap: 14px;
    }

    .admin-card {
        width: 100%;
        max-width: 100%;

        padding: 18px;

        gap: 14px;
    }

    .card-icon,
    .deona-icon,
    .sdworx-icon {
        width: 58px;
        height: 58px;
        min-width: 58px;
    }

    .card-title {
        font-size: 17px;
        line-height: 1.25;
        white-space: normal;
    }

    .card-description {
        font-size: 14px;
        line-height: 1.4;
        white-space: normal;
    }

    .card-arrow {
        font-size: 24px;
    }

    .welcome h1 {
        font-size: 27px;
        line-height: 1.2;
    }

    .welcome p {
        font-size: 15px;
    }

}


/* =========================================================
   KLEINE SMARTPHONES
   ========================================================= */

@media (max-width: 480px) {

    .dashboard {
        padding-left: 12px;
        padding-right: 12px;
    }

    .dashboard-card {
        padding: 15px 14px;
        gap: 12px;
        min-height: 100px;
    }

    .admin-card {
        padding: 15px 14px;
    }

    .card-icon,
    .deona-icon,
    .sdworx-icon {
        width: 54px;
        height: 54px;
        min-width: 54px;

        border-radius: 14px;
    }

    .card-content {
        flex: 1 1 auto;
        width: auto;
    }

    .card-title {
        font-size: 16px;
    }

    .card-description {
        font-size: 13px;
        line-height: 1.35;
    }

    .card-arrow {
        margin-left: 4px;
        font-size: 22px;
    }

    .admin-icon {
        flex-shrink: 0;
    }

    .admin-text strong {
        font-size: 16px;
    }

    .admin-text span {
        font-size: 13px;
        line-height: 1.35;
    }

    .welcome h1 {
        font-size: 24px;
    }

}