/* Croppie-related styles */
#cropButtonsContainer {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 10px;
}

#cropButtonsContainer button {
    width: 150px;
    padding: 10px;
    font-size: 16px;
}

@media (max-width: 600px) {
    #cropButtonsContainer {
        flex-direction: column;
        align-items: center;
    }
    #cropButtonsContainer button {
        width: 100%;
    }
}

.clickable-label {
    cursor: pointer;
    display: inline-block;
}

.clickable-label:hover .profile-pic {
    opacity: 0.8;
}

.profile-pic {
    transition: opacity 0.2s ease;
    width: 128px;
    height: 128px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ddd;
    display: block;
    margin: 10px auto;
}

/* Main styles */
body {
    background-color: #0A0A0A;
    color: #E6E6E6;
    font-family: 'Helvetica', sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    line-height: 1.6;
}

.container {
    max-width: 600px;
    width: 90%;
    margin: 2rem auto;
    padding: 1.5rem;
    background-color: #262626;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.section-box {
    border: 2px solid #684d70;
    padding: 1.0rem;
    border-radius: 10px;
    margin-bottom: 1.875rem;
    background-color: #1F1F1F;
}

.section-box2 {
    border: 2px solid #684d70;
    padding: 1.0rem;
    text-align: center;
    border-radius: 10px;
    margin-bottom: 1.875rem;
    background-color: #1a1a1a;
}

.header {
    background: #333333;
    padding: 1.0rem 1.0rem;
    border-radius: 8px;
    text-align: center;
    margin: 0 auto;
    max-width: 100%;
}

.logo {
    max-width: 250px;
    height: auto;
    margin-top: 6px; /* Moved from inline style */
}

.form-group { 
    display: flex; 
    flex-direction: column; 
    align-items: flex-start; 
    margin-bottom: 10px; 
    width: 100%;
}
label { 
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    margin-bottom: 3px; 
    color: #994db0;
}
input, select {
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    width: 90%; 
    padding: 6px; 
    background: #333; 
    color: #819b51; 
    border: none; 
    border-radius: 5px; 
    margin: 0 auto;
}

h2 {
    color: #B0B0B0;
    font-size: clamp(1.4rem, 3.8vw, 1.8rem);
    text-align: center;
    margin-bottom: 0.3rem;
}

h3 {
    color: #994db0;
    text-align: center;
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    margin-top: 0;
    margin-bottom: 0.625rem;
}

a {
    color: #994db0;
}

.checkbox-group {
    width: 90%;
    margin: 10px auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.button-group {
    margin-top: 1.25rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.3375rem;
    justify-content: center;
}
button, .dashboard-btn {
    padding: 0.5rem 0.6rem;
    border: none;
    border-radius: 6px;
    font-size: clamp(0.8rem, 2vw, 1rem);
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #994db0;
    color: #FFFFFF;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    min-width: 0rem;
}
button:hover, .dashboard-btn:hover {
    background-color: #DDA0DD;
    color: #2A2A2A;
}   

.username-item {
    color: #B0B0B0;
    font-size: clamp(1.2rem, 3.8vw, 1.6rem);
    text-align: center;
    margin-top: 0.75rem;
    margin-bottom: 0.2rem;
    font-weight: 700;
}

.username-role {
    color: #B0B0B0;
    font-size: clamp(0.8rem, 3.8vw, 1.0rem);
    text-align: center;
    margin-top: 0.75rem;
    margin-bottom: 0.2rem;
    font-weight: 700;
}

.info-item {
    margin: 1rem 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.info-label {
    color: #994db0;
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    margin-right: 0.4rem;
    min-width: 130px;
}

.info-value, .empty-field {
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    transition: color 0.3s ease;
}

.info-value, .empty-field {
    cursor: pointer;
}

.info-value:hover:not([data-field="username"]), .empty-field:hover:not([data-field="username"]) {
    color: #20B2AA;
}

.empty-field {
    color: #666666;
    font-style: italic;
}

.info-input {
    width: 100%;
    max-width: 300px;
    padding: 0.75rem;
    background-color: #333333;
    border: 2px solid #B0B0B0;
    border-radius: 8px;
    color: #E6E6E6;
    font-size: 1rem;
    box-sizing: border-box;
}

.info-input[type="date"] {
    color-scheme: dark;
}

select.info-input {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: #333333 url('data:image/svg+xml;utf8,<svg fill="%23E6E6E6" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>') no-repeat right 0.75rem center;
    padding-right: 2rem;
}

textarea {
    width: 90%;
    resize: vertical;
    padding: 6px;
    background: #333;
    color: #819b51;
    border: none;
    border-radius: 5px;
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    margin: 0 auto;
}

.button-group {
    margin-top: 1.25rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.9375rem;
    justify-content: center;
}

button, .logout-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    font-size: clamp(0.8rem, 2vw, 1rem);
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #994db0;
    color: #FFFFFF;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    min-width: 2rem;
}

button:hover, .logout-btn:hover {
    background-color: #DDA0DD;
    color: #2A2A2A;
}

.notification-bar {
    width: 100%;
    background-color: #819b51;
    color: rgb(0, 0, 0);
    padding: 1rem;
    text-align: center;
    display: none;
    z-index: 1000;
    border-radius: 0px;
}

.notification-error {
    color: #FF4444;
}

.welcome-banner {
    background-color: #819b51;
    color: #1f1f1f;
    padding: 0.8rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    position: relative;
    text-align: center;
}
.welcome-banner h3, .welcome-banner p {
    color: #1f1f1f;
}
.banner-link {
    text-decoration: none;
    color: inherit;
    display: block;
    padding: 0.8rem;
}
.welcome-banner button {
    position: absolute;
    top: 3px;
    right: 5px;
    background: none;
    border: none;
    color: black;
    font-size: 1.2rem;
    cursor: pointer;
}


.footer {
    text-align: center;
    padding: 15px 0;
    background-color: #1a1a1a;
    color: #e0e0e0;
    font-size: 0.8rem;
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
}

.footer a {
    color: #e0e0e0;
    text-decoration: none;
    margin: 0 10px;
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
}

.footer a:hover {
    text-decoration: underline;
}

.footer-links {
    margin-top: 5px;
}

@media (max-width: 768px) {
    .container {
        width: 90%;
        margin: 1rem auto;
        padding: 1rem;
    }
    .section-box {
        padding: 1rem;
    }
    .header {
        max-width: 90%;
    }
    .button-group {
        flex-direction: column;
        align-items: center;
    }
    button, .logout-btn {
        width: 50%;
        max-width: 10rem;
    }
}

@media (max-width: 480px) {
    .info-input {
        padding: 0.625rem;
    }
    .info-item {
        margin: 0.75rem 0;
    }
}