.user-account-container {
    margin: 0 auto;
    min-width: max(100%, 900px);
    font-weight: 400;
    font-style: normal;
    font-variation-settings: "wdth" 100;
    color: var(--light-gray-text); 
    background-color: var(--bs-light);
    padding: 2rem 10rem;

    div, label, span, h1, h2, h3, h4, h5, h6, p, a {
        color: var(--bs-dark) !important;
    }

    .breadcrumbs {
        max-width: min(900px, 100%);
        margin: 0 auto;
        font-size: 0.875rem;
        color: #718096;
    }
}

.accout-elements-wrapper {
    max-width: min(900px, 100%);
    margin: 0 auto;
}

.account-header-wrapper {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
    margin-top: 2rem;
    /* padding: 1rem 0; */

    color: var(--bs-dark);
    /* background-color: red; */

    .avatar-image {
        width: 150px;
        height: 150px;
        border-radius: 50%;
        object-fit: cover;  
    }

    .header-info-wrapper {
        display: block;
        /* margin: .75rem 0; */
        margin-top: 0;

        .title {
            font-size: 1.25rem;
            font-weight: 600;
        }
        .sub-title {
            font-size: .85rem;
            font-weight: 400;
        }
        > .sub-title:nth-of-type(2) {
            margin-bottom: 1rem;
        }
    }
}
.account-header-wrapper .quicklink-group {
    margin-top: 1rem;
    display: flex;
    justify-content: flex-start;
    align-items: baseline;
    gap: 1rem;
    
    > span img.quicklink-icon {
        margin-right: 0.25rem;
        vertical-align: middle;
        
        width: 24px;
        height: 24px;
        filter: invert(0);
    }

}
.quicklink-group a {
    padding: .75rem 1.25rem;
    background-color: var(--primary-green);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--font-light) !important;
    text-decoration: none;
    cursor: pointer;
    border-radius: var(--button-border-radius);
}
.quicklink-group a:hover {
    text-decoration: underline;
    opacity: 0.75;
}


.account-header {
    width: 100%;
    grid-column: span 3;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--bs-dark);
}

.account-items {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    margin: 5rem 0;

    .account-item > a  {
        text-decoration: none;
        color: inherit;
    }
    .account-item:hover {
        background-color: var(--bs-gray-400);
    }
}

/** 
Forkaring om:
    max-width: min(300px, 100vw);
    betyder det: Elementet må maksimalt være 300px bredt, 
    men hvis skærmen er mindre end 300px, 
    så bliver max-bredden skærmens bredde (100vw = 100% af viewport width). 
    Det mindste af de to værdier bruges.

Tilsvarende:
    min-width: max(250px, 50%);
    betyder det: Elementet skal være mindst 250px bredt,
    men hvis 50% af containerens bredde er større end 250px,
    så bliver min-bredden 50% af containerens bredde.
    Det største af de to værdier bruges.
Each account item box 
**/

.account-item {
    flex: 1 1 28%; /* 3 per row, with gap */
    /* min-width: 250px;
    max-width: 350px; */
    max-width: max(250px, 100%);
    background: none;
    border-radius: var(--box-border-radius);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 1px solid var(--border-600);
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: box-shadow 0.2s;
}
.account-item .icon {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;    
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--border-600);
    outline: none;
    
}
.account-item .icon img {
    width: 32px;
    height: 32px;
    filter: invert(0);
}

.icon:hover {
    background-color: var(--border-400);
    border: 1px solid var(--border-500);
}
.account-item:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    background-color: var(--light-gray-200);
}

.account-item .icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #1976d2;
}

.account-item .title {
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.account-item .sub-title {
    color: #666;
    font-size: 1rem;
}

/* STYLING FOR PROFILE VIEWING */
.user-profile-container {
    margin: 0 auto;
    width: 100%;
    font-weight: 400;
    font-style: normal;
    font-variation-settings: "wdth" 100;
    color: var(--light-gray-text); 
    background-color: var(--bs-light);
    padding: 5rem 10rem;

    div, label, span, h1, h2, h3, h4, h5, h6, p, a {
        color: var(--bs-dark) !important;
    }
} 

.profile-field input[type="password"],
.profile-field input[type="text"],
.profile-field input[type="email"] {
    font-size: 1rem;
    width: 100%;
    
    margin-bottom: .5rem;
    margin-top: .5rem;
    box-sizing: border-box;
    border: 1px solid var(--bs-dark);
    outline: none;
    border-radius: 0px;
    background: #fff;
    color: var(--bs-dark);
    padding: .75rem 0.5rem;
} 

.profile-field textarea {
    font-size: 0.95rem;
    width: 100%;
    padding: 0.6rem;
    border: 1px solid var(--border-600);
    /* outline: 1px solid var(--bs-dark); */
    border-radius: var(--box-border-radius);
    background: var(--bs-light);
    color: var(--bs-dark);
    box-sizing: border-box;
}

/* PROFILE HEADER IN DROPDOWN */
.profile-header-wrapper {
    display: flex!important;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid var(--border-600)!important;

    div.user-name-email {
        color: var(--menu-font-color);
        /* background-color: red; */
    }
}

.profile-header-wrapper .profile-image img{
    width: 48px !important;
    height: 48px !important;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 1rem;
    flex-shrink: 0;
    display: block;
    
}

.profile-header-wrapper >p.profile-username,
.profile-header-wrapper >p.profile-email {
    display: block;
    margin: 0;
    line-height: 1.3;
    color: var(--menu-font-color)!important
}

.profile-username {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--menu-font-color)!important
}

.profile-email {
    font-size: 0.95rem;
    color: var(--menu-font-color)!important
}

@media (max-width: 786px) {
    .accout-elements-wrapper {
        min-width: 100% !important;
    }
    
    .user-account-container {
        min-width: 100% !important;
        padding: 1rem 1rem;
    }

    .account-items {
        max-width: 100vw;
        gap: 1rem;
        margin: 2rem 0;
    }
    .account-item {
        flex: 1 1 100%;
        min-width: 0;
        max-width: 100%;
        margin-bottom: 1rem;
    }
    .avatar-image {
        width: 120px !important;
        height: 120px !important;
        border-radius: 50%;
        object-fit: cover;  
    }
    .header-info-wrapper {
        display: block;
        margin: 0!important;
    }
    .header-info-wrapper .title {
        font-size: 1.5rem !important;
        font-weight: 600;
        color: var(--font-dark) !important;
        -webkit-text-fill-color: var(--font-dark) !important;
    }
    .quicklink-group {
        display: flex;
        justify-content: flex-start;
        align-items: baseline;
        gap: 1rem;
    
        > span > a {
            padding: .75rem 1.25rem;
            background-color: var(--primary-green);
            font-size: 0.95rem;
            font-weight: 500;
            color: var(--font-light) !important;
            -webkit-text-fill-color: var(--font-light) !important;
            text-decoration: none;
            cursor: pointer;
            border-radius: var(--button-border-radius);
        }
    }

    .account-item .icon {
        width: 48px !important;
        height: 48px !important;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .account-item .icon > img {
        width: 32px !important;
        height: 32px !important;
        display: block;
        object-fit: cover;
    }
    .account-item .title {
        font-size: 1.25rem;
        font-weight: 600;
        margin-bottom: 0.5rem;
        color: var(--bs-dark) !important;
        -webkit-text-fill-color: var(--bs-dark) !important;
    }
}

/* @media (max-width: 600px) {
    .profile-header-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    .dropdown-profile-img {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
} */