body {
    font-family: sans-serif;
    background-color: #f4f4f4;
}

.main {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
}

.settings-container {
    background-color: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 600px;
}

h2 {
    text-align: center;
    margin-bottom: 20px;
}

.avatar-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

.avatar-preview {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid #eee;
}

/* Hide the default file input */
input[type="file"] {
    display: none;
}

/* Style the custom file upload button */
.custom-file-upload {
    display: inline-block;
    padding: 8px 15px;
    cursor: pointer;
    background-color: #555;
    color: white;
    border-radius: 5px;
    font-size: 0.9em;
}

.custom-file-upload:hover {
    background-color: #333;
}

.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="file"],
textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

button[type="submit"] {
    width: 100%;
    padding: 10px;
    background-color: #333;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

/* --- Cropping Modal Styles --- */
.crop-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: none; /* Hidden by default */
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.crop-modal-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    text-align: center;
}

.crop-container {
    max-width: 100%;
    height: 300px;
    margin-bottom: 20px;
}

#image-to-crop {
    max-width: 100%;
    max-height: 100%;
}

.crop-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.crop-actions button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.crop-actions .button-secondary {
    background-color: #ccc;
}
