:root {
    --system-font: system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --color-black: rgba(17,17,17,1);
    --color-white: rgba(250,250,250,1);
    --color-gray: rgba(164,168,172,1);
    --color-gray-dark: rgba(102,104,105,1);
    --color-offwhite:rgba(242,242,242);   
    --shadow-black: rgba(0,0,0,0.5);

}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--system-font);
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: var(--color-white);
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 250px;
    height: 100vh;
    background: var(--color-black);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Topbar */
.topbar {
    position: fixed;
    top: 0;
    left: 250px;
    right: 0;
    height: 3.5rem;
}

/* Container */
.container {
    /*margin-left: 250px;       /* next to sidebar */
    /*padding-top: 3.5rem;      /* below topbar */
    padding: 0 0.6rem 0 0.6rem;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    /*width: calc(100% - 250px);*/
}

/* Header */
.header {
    /*margin-top: 1rem;*/
    display: flex;
    flex-direction: column;
    gap: 0.5rem
}

.title {
    color: var(--color-black);
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 0.1;
}

.sub_title {
    font-weight: 400;
    font-size: 0.8rem;
    color: var(--color-gray);
}

/* Main content */
.main {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Card grid */
.card-content {
    display: flex;
    flex-wrap: wrap;
    margin: 1rem 0 1rem 0;
    width: 100%;
}

.card-content >*{
    max-width: 1fr;
}

/* Card */
.card {
    background: var(--color-white);
    border: 2px solid #F2F2F2;
    border-radius: 10px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    width: 100%;
}

.card .card-header {
    display: flex;
    justify-content: space-between;
}

.card .card-header .card-info{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.card .card-header .card-info i{
    font-size: 1.5rem;
    color: var(--color-black);
    width: 1rem;
    height: 1rem;
}

/* home.html */
.card .card-desc {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-gray);
    line-height: 18px;
}

.card .card-desc .card_tekst h2,
.card .card-desc .card_tekst p{
    margin-bottom: 1rem;
}

.card .card-desc .card_image{
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.card .card-desc .card_image img{
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 0.8rem;
    box-shadow: var(--shadow-black);
}

/* Login Form (inloggen.html) */
.card .card-desc .login{
    margin-top: 1rem;
}
.login-form{
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.login-form .wrapper{
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.login-form label{
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-gray-dark);
}

.login-form input{
    padding: 0.6rem 0.8rem;
    border: 1px solid var(--color-black);
    border-radius: 8px;
    font-size: 0.9rem;
    outline: none;
    transition: border 0.2s, box-shadow 0.2s;
}

.login-form input:focus {
    border: var(--color-black);
    box-shadow: 0 0 4px var(--shadow-black);
}

.login-form button{
    margin-top: 2rem;
    padding: 0.7rem 1rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-white);
    background-color: var(--color-black);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.login-form button:hover{
    background-color: var(--color-gray-dark);
}

/* forgot password */
.forgot_pass {
    margin-top: 1rem;
    text-align: right;
}

.forgot_pass a {
    font-size: 1rem;
    color: var(--color-gray-dark);
    text-decoration: none;
    transition: color 0.2s;
}

.forgot_pass a:hover {
    color: var(--color-black);
    text-decoration: underline;
}



/* -------------------- Desktop (≥768px) -------------------- */
@media (min-width: 768px) {
    .container {
        margin-left: 250px;       /* next to sidebar */
        padding: 3.5rem 1.5rem 0 1.5rem;
        display: flex;
        flex-direction: column;
        min-height: 100vh;
        width: calc(100% - 250px);
}

    .card-content{
        display:flex;
        flex-direction: column;
    }
}

/*Mobile adjustments */
@media (max-width: 767px) {
    .sidebar {
        left: -250px;
    }

    .topbar {
        left: 0;
        width: 100%;
    }

    .container {
        margin-left: 0;
        padding-top: 3.5rem;
        width: 100%;
    }
}
