/* Profile Page Styles */
.profile {
    /* display: flex;
    align-items: center;
    justify-content: center; */
    margin: 0 auto;
    max-width: 1100px;
    position: relative;
}

#back-button {
    position: absolute;
    left : 0;
    background: none;
    border: none;
    color: var(--primary-color);
}

#back-button i {
    color: var(--primary-color);
    font-size: 30px;
}

#back-button:hover i {
    color: var(--secondary-color);

}

section {
    background-color: var(--background-color2);
    padding: 30px 30px 10rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px var(--shadow-light);
    max-width: 1100px;
    margin: 0 auto;
}

h1 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--p-color2);
}

h2 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--p-color2);
}

h3 {
    font-size: 16px;
    margin: 15px 0;
    color: var(--p-color2);
}

.profile-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    width: 90%;
    margin: 0 auto 2rem;
    padding: 20px;
}

.profile-picture {
    text-align: center;
}

.profile-picture img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    cursor: pointer;
    object-fit: cover;
    border: 2px solid var(--tertiary-color);
}

.profile-picture p {
    margin-top: 10px;
    font-size: 14px;
    color: var(--p-color1);
}

.profile-details {
    /* flex: 1; */
    text-align: left;
}

.profile-details h2 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--p-color2);
}

.profile-details p {
    margin: 10px 0;
    font-size: 16px;
    color: var(--p-color1);
}

.profile-details strong {
    color: var(--p-color2);
}

#profile-form {
    max-width: 500px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0 1rem;
    margin: 0 auto;
}

#profile-form .form-group {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

#profile-form label {
    font-size: 18px;
    color: var(--p-color2);
    font-weight: 700;
}


#profile-form input,
#profile-form textarea {
    padding: 10px;
    border: 1px solid var(--tertiary-color);
    border-radius: 4px;
    font-size: 16px;
    width: 80%;
    box-sizing: border-box;
    background-color: var(--background-color);
    color: var(--text-color);
}

#profile-form textarea {
    resize: vertical;
    min-height: 100px;
}

.avatar-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-bottom: 20px;
    gap: 10px;
}

.avatar-grid img {
    width: 80px;
    height: 80px;
    cursor: pointer;
    border: 2px solid transparent;
    object-fit: cover;
}

.avatar-grid img:hover {
    border-color: var(--p-color3);
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 100000000;

}

.modal-content {
    background: var(--background-color);
    padding: 20px;
    border-radius: 5px;
    max-width: 600px;
    text-align: center;
    box-shadow: 0 4px 8px var(--shadow-light);
    position: relative;

}

.close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    color: var(--primary-color);
    cursor: pointer;
}

.close:hover {
    color: var(--secondary-color);
}

#modal-profile-picture {
    width: 200px;
    height: 200px;
    margin-bottom: 20px;
    object-fit: cover;
    border: 2px solid var(--tertiary-color);
}

.picture-options input[type="file"] {
    margin: 10px 0;
    font-size: 14px;
    color: var(--p-color1);

}

/* Dashboard Profile Picture */
#dashboard-profile-picture {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-right: 40px;
    cursor: pointer;
    vertical-align: middle;
}

.dashboard-profile-picture {
    width: 80px;
    /* height: 80px; */
    border-radius: 50%;
    margin-right: 10px;
    cursor: pointer;
    vertical-align: middle;
}