/* Base (mobile): stacked layout */
.settings {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Settings Navigation (mobile horizontal menu) */
.settings-navbar {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
    width: 100%;
    background: var(--color-offwhite);
    border-radius: 10px;
    padding: 0.5rem;
    box-shadow: inset 0 0 5px var(--shadow-black);
    pointer-events: auto;
}

.settings-navbar .item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    padding: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
}

.settings-navbar .item i {
    font-size: 1.2rem;
    color: var(--color-gray-dark);
}

.settings-navbar .item a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    width: 100%;
    color: var(--color-gray-dark);
    text-decoration: none;
}

/* Hover and active states */
.settings-navbar .item:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.settings-navbar .item.active {
    background-color: var(--color-black);
}

.settings-navbar .item.active i,
.settings-navbar .item.active a {
    color: var(--color-white);
}

/* -------------------- Main Settings Content -------------------- */
.settings .main {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--color-white);
    border: 1px solid #e6e6e6;
    border-radius: 10px;
    padding: 1rem;
    min-height: 300px;
}

.settings .main .content {
    font-size: 0.95rem;
    color: var(--color-gray-dark);
}

/* -------------------- MyProfile Page Styles (Mobile-First) -------------------- */

/* Wrapper for multiple function blocks */
.wrapper {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Each function block (Profile / Knowledge etc.) */
.function {
    background: var(--color-white);
    border: 1px solid #e6e6e6;
    border-radius: 10px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Header inside function blocks */
.myprofile-header {
    display: flex;
    justify-content: space-between ;
    gap: 0.5rem;
}

.myprofile-header .item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 500;
    color: var(--color-gray-dark);
}

.myprofile-header .item i{
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-black);
    width: 1rem;
    height: 1rem;
    margin: 0 0.5rem 0 0 ;
}

.myprofile-header .item i:hover{
    background-color: var(--color-gray-dark);
}

/* Profile content layout */
.myprofile-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 1rem;
    margin: 1rem 0.6rem 1rem 0.6rem;
}

.myprofile_card_basic{
    display: flex;
    flex-direction: row; 
    align-items: center;
    justify-content: flex-start;
    gap: 1.5rem;
    background: var(--color-white);
}

/* Profile picture */
.myprofile_card_pic {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.myprofile-content img {
    width: 4rem;
    height: 4rem;
    object-fit: cover;
    border: 2px solid var(--color-white);
    outline: 2px solid var(--color-black);
    border-radius: 50%;
    transition: transform 0.2s ease,box-shadow 0.2s ease;
}

.myprofile_card_pic img:hover {
    transform: scale(1.03);
    box-shadow: 0 0 0 2px var(--color-gray-dark);
}

/* Text content */
.text-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.2rem;
    text-align: left;
}

.text-content p {
    margin: 0;
    font-weight: 500;
    color: var(--color-gray-dark);
    line-height: 1.2;
}

.text-content p:first-child {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-black);
}


/* Basic text content */
.text-content p {
    margin: 0.2rem 0;
    font-weight: 500;
    color: var(--color-gray-dark);
}


.text-contact {
    display: flex;
    justify-content: flex-start;
    gap: 2.2rem; 
    margin: 0.8rem 0 0.5rem 0;
}

/* Each icon link */
.text-contact a {
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    color: var(--color-black);
    font-size: 1.4rem;
    transition: color 0.2s ease, transform 0.2s ease;
}

/* Subtle hover effect for interactivity */
.text-contact a:hover {
    color: var(--color---color-gray-dark); 
    transform: translateY(-2px);
}

/* Optional: give icons a slightly circular hover background */
.text-contact a::after {
    content: "";
    position: absolute;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(0,0,0,0.05);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.text-contact a:hover::after {
    opacity: 1;
}

/* -------------------- Detailed Profile Info - Stacked -------------------- */
.text-content-more {
    display: flex;
    flex-direction: column;   
    gap: 0.5rem;
    width: 100%;
    margin-top: 1rem;
}

/* Each info item */
.text-content-more .item {
    display: flex;
    flex-direction: row;      
    justify-content: flex-start;
    align-items: center;
    padding: 0.3rem 0.3rem;
    border-bottom: 1px solid #f2f2f2;
}

/* Remove border for last item */
.text-content-more .item:last-child {
    border-bottom: none;
}

/* Labels */
.text-content-more .label {
    font-weight: 600;
    color: var(--color-gray-dark);
    min-width: 6.9rem;         
    flex-shrink: 0;
}

/* Values */
.text-content-more .value {
    color: var(--color-black);
    word-break: break-word;  
}

/* Links inside values (email, phone) */
.text-content-more .value a {
    text-decoration: none;
    color: var(--color-black);
    transition: color 0.2s ease;
}

.text-content-more .value a:hover {
    color: var(--color-gray-dark);
}
/* -------------------- Edit Profile Form -------------------- */

/* Container */
.edit_profile {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: var(--color-white);
    border: 1px solid #e6e6e6;
    border-radius: 10px;
    padding: 1rem;
    width: 100%;
    margin: 1rem auto;  /* center on page */
}

/* Form title */
h2 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-black);
    margin-bottom: 1rem;
    text-align: center;
}

/* Each form item (label + input) */
.edit_profile_data{
    margin: 2rem 0 0 0 ;
}
.edit_profile .item {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

/* Labels */
.edit_profile .label {
    font-weight: 600;
    color: var(--color-gray-dark);
    font-size: 0.9rem;
}

/* Inputs */
.edit_profile .input {
    padding: 0.6rem 0.8rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 0.95rem;
    color: var(--color-black);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Input focus effect */
.edit_profile .input:focus {
    outline: none;
    border-color: var(--color-primary, #0078ff);
    box-shadow: 0 0 0 2px rgba(0, 120, 255, 0.15);
}

/* Submit button */
.edit_profile .button {
    margin-top: 2rem;
    padding: 0.7rem 1rem;
    border: none;
    border-radius: 8px;
    background-color: var(--color-black);
    color: var(--color-white);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

/* Button hover effect */
.edit_profile .button:hover {
    background-color: var(--color-gray-dark);
    transform: translateY(-1px);
}

.profile-pic-upload {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.profile-pic-upload .current-pic {
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-pic-upload .current-pic img {
    width: 6rem;
    height: 6rem;
    border-radius: 50%;
    border: 2px solid var(--color-white);
    outline: 2px solid var(--color-black);
    object-fit: cover;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.profile-pic-upload .current-pic img:hover {
    transform: scale(1.05);
    box-shadow: 0 0 0 2px var(--color-gray-dark);
}

.profile-pic-upload .input-file {
    margin-top: 0.5rem;
}

/* -------------------- Change Password Section -------------------- */
.change_password {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: var(--color-white);
    border: 1px solid #e6e6e6;
    border-radius: 10px;
    padding: 1rem;
    width: 100%;
    margin: 1rem auto;
}

.change_password .edit_password_data{
    margin: 2rem 0 0 0;
}

.change_password .item{
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.change_password label {
    font-weight: 600;
    color: var(--color-gray-dark);
    font-size: 0.9rem;
}
.change_password input[type="password"] {
    padding: 0.6rem 0.8rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 0.95rem;
    color: var(--color-black);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.change_password .item .hint {
    display: block;       
    font-size: 0.8rem;    
    color: var(--color-gray-dark);
    margin-top: 0.25rem;  
    line-height: 1.2;
    margin: 0.3rem 0 0.3rem 1.5rem;   
}

.change_password input[type="password"]:focus {
    outline: none;
    border-color: var(--color-black);
    background: var(--color-white);
}

.change_password .button {
    margin-top: 2rem;
    padding: 0.7rem 1rem;
    border: none;
    border-radius: 8px;
    background-color: var(--color-black);
    color: var(--color-white);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

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


/* -------------------- MyTeam Page Styles -------------------- */

.myteam-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1rem 0.6rem;
}

/* Each team member card */
.myteam-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--color-white);
    border: 1px solid #e6e6e6;
    border-radius: 10px;
    padding: 0.8rem 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.myteam-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

/* Member image */
.myteam-card-pic img {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--color-white);
    outline: 2px solid var(--color-black);
}

/* Member text */
.myteam-card-text {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.myteam-card-text .member-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-black);
}

.myteam-card-text .member-role {
    font-size: 0.9rem;
    color: var(--color-gray-dark);
}

/* -------------------- MyPlanning Page Styles -------------------- */

/* Navigation bar */
.myplanning_nav {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    background: var(--color-offwhite);
    border-radius: 10px;
    padding: 0.8rem;
    margin-bottom: 1rem;
    box-shadow: inset 0 0 5px var(--shadow-black);
}

.myplanning_nav .item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-gray-dark);
    font-weight: 500;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.myplanning_nav .item:hover {
    background-color: rgba(0,0,0,0.05);
}

.myplanning_nav .item i {
    font-size: 1.3rem;
    color: var(--color-black);
}

/* Search bar */
.search-bar {
    background: var(--color-white);
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 0.4rem 0.6rem;
}

.search-bar input {
    border: none;
    outline: none;
    width: 100%;
    font-size: 0.9rem;
    color: var(--color-gray-dark);
}

/* -------------------- Planning Content (MyProfile Style) -------------------- */

/* Wrapper for all sections */
.myplanning_content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Section wrapper (Today / Future) */
.myplanning_section {
    background: var(--color-white);
    border: 1px solid #e6e6e6;
    border-radius: 10px;
    padding: 1rem;
}

/* Section title like MyProfile headers */
.myplanning_title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-black);
    margin: 0.8rem 0 0.8rem 0;
}

/* Each meeting card like a function block */
.myplanning_meeting_card {
    background: var(--color-offwhite);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    /*border: 1px solid #e6e6e6;*/
    border-radius: 10px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.myplanning_meeting_card:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Summary row (clickable) */
.myplanning_meeting_card summary {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    cursor: pointer;
    list-style: none;
    padding: 0;
}

.myplanning_meeting_card summary::-webkit-details-marker {
    display: none; /* remove default arrow */
}

.event_date,
.event_time {
    font-weight: 600;
    font-size: 1rem;
    margin: 0 0 0.3rem 0;
    flex: 1;
}

/* Row containing icon + date + time */
.event_details {
    display: flex;
    flex-direction: column;
    margin: 0 0 0 1rem;
    gap: 0.2rem;
    width: 100%;
}

/* Event icon styling */
.event_icon {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-black);
    color: var(--color-white);
    font-size: 1.5rem;
    flex-shrink: 0;
    margin: auto;
}

/* “More info” on right */
.event_more_text {
    font-weight: 600;
    color: var(--color-black);
    margin-left: auto;
    align-self: flex-end;
}

/* Description content like info blocks in MyProfile */
.event_description {
    display: none;
    margin-top: 0.5rem;
    padding: 0.8rem 1rem;
    background: var(--color-offwhite);
    border-left: 3px solid var(--color-black);
    border-radius: 6px;
    color: var(--color-gray-dark);
    font-size: 0.9rem;
    animation: fadeIn 0.3s ease;
}

/* Show description when parent <details> is open */
.myplanning_meeting_card[open] .event_description {
    display: block;
}

/* -------------------- Password Modal -------------------- */
.modal-overlay {
    display: none; /* hidden by default */
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.4);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.25s ease;;
}

.model-content .content_title{
    margin-bottom: 1rem;
}

.modal-overlay.show {
    display: flex;
    opacity: 1;
}

.modal-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.btn-close {
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background: var(--color-black);
    color: var(--color-white);
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.btn-close:hover {
    background: var(--color-gray-dark);
}


/* Fade-in animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* -------------------- Desktop layout (≥992px) -------------------- */
@media (min-width: 768px) {
    .settings {
        gap: 2rem;
    }

    .settings-navbar {
        align-items: flex-start;
        width: 100%;
        padding: 1rem;
    }

    .settings-navbar .item {
        width: 100%;
        justify-content: flex-start;
        gap: 0.8rem;
        padding: 0.6rem 0.8rem;
    }

    .settings-navbar .item i {
        font-size: 1.2rem;
    }

    .settings-navbar .item a {
        font-size: 0.95rem;
    }

    .settings .main {
        padding: 1.5rem;
    }

    .card {
        max-width: 900px;
        padding: 1.5rem;
    }

    .myprofile_card_basic {
        gap: 1.5rem;
        padding: 1.2rem 1.5rem;
    }

    .myprofile_card_pic img {
        width: 100px;
        height: 100px;
    }

    .text-content p:first-child {
        font-size: 1.1rem;
    }

    .text-content-more {
        gap: 0.6rem;         
    }

    .text-content-more .item {
        padding: 0.5rem 0.8rem;
    }

    .text-content-more .label {
        min-width: 160px;    
    }
    
    .myteam-content {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.2rem;
    }

    .myteam-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1rem;
    }

    .myteam-card-pic img {
        width: 80px;
        height: 80px;
    }

    .myteam-card-text .member-name {
        font-size: 1.05rem;
    }
    .myplanning_nav {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .myplanning_meetings {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1rem;
    }

    .myplanning_meeting {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .event_icon {
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
        margin-bottom: 0.3rem;
    }

    /*.change_password .item {
        flex-direction: column; 
    }

    /*.change_password .item .hint{
        display: flex;
        flex-direction: column;
    }*/

    /*.change_password .input {
        width: 100%
    }

    .change_password .button {
        width: 100%;
        align-self: flex-start;
    }*/
}


