﻿
.Edit-title {
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-size: 24px;
    line-height: 1.5;
    color: #d72f2f;
    margin-bottom: 20px;
}

.edit-main-flex-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 32px;
    align-items: flex-start;
}

.profile-edit-container {
    flex: 1 1 300px;
    min-width: 0;
}

.profile-photo-edit-container {
    flex: 0 0 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 8px;
    order: 0;
}

.profile-photo-and-edit {
    position: relative;
    width: 260px !important;
    height: 260px !important;
    display: inline-block;
}

.large-photo {
    width: 260px !important;
    height: 260px !important;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #d72f2f;
    background-color: #f8d7da;
    display: block;
}

    .large-photo[hidden] {
        display: none;
    }

.profile-initials {
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffb3b3 0%, #ffc1c1 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Poppins", sans-serif;
    font-size: 42px;
    font-weight: 600;
    color: #d72f2f;
    text-transform: uppercase;
    border: none;
    user-select: none;
}

    .profile-initials[hidden] {
        display: none;
    }

.button-camera {
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%) translateX(36px);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: white;
    border: 2px solid #d72f2f;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
    padding: 0;
}

    .button-camera:hover {
        background-color: #fff5f5;
        transform: translateX(-50%) translateX(36px) scale(1.05);
    }

.edit-camera {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.verify-container {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.column-inputs {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.verify-label {
    font-family: "Poppins", sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #444;
}

.verify-input {
    width: 100%;
    height: 52px;
    border-radius: 12px;
    border: 1px solid #d1d1d1;
    padding: 0 16px;
    font-family: "Poppins", sans-serif;
    font-size: 14px;
    color: #333;
    background-color: #fff;
    box-sizing: border-box;
    transition: border 0.2s ease;
    outline: none;
}

    .verify-input:focus {
        border: 2px solid #d72f2f;
        outline: none;
    }

    .verify-input.select {
        appearance: none;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 16px center;
        padding-right: 40px;
        cursor: pointer;
    }

    .verify-input--readonly,
    .verify-input[readonly] {
        background-color: #f5f5f5;
        cursor: not-allowed;
        border: 1px solid #d1d1d1;
        color: #888;
    }

        .verify-input--readonly:focus,
        .verify-input[readonly]:focus {
            border: 1px solid #d1d1d1;
            outline: none;
            box-shadow: none;
        }

.input-wrapper {
    position: relative;
}

.success-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #28a745;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.input-success + .success-icon {
    opacity: 1;
}

.input-error,
input.input-error,
select.input-error {
    border: 2px solid #d72f2f !important;
    outline: none;
}

.validation-error {
    font-size: 13px;
    color: #d72f2f;
}

    .validation-error[hidden] {
        display: none;
    }

.field-hint {
    font-size: 12px;
    color: #888;
}

.field-hint--warning {
    color: #b45309;
}

.two-button-row {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
}

.cancel-button {
    height: 52px;
    min-width: 90px;
    padding: 0 20px;
    font-family: "Poppins", sans-serif;
    font-size: 16px;
    border-radius: 14px;
    background-color: transparent;
    border: 1px solid #d1d1d1;
    color: #333;
    cursor: pointer;
    transition: border 0.2s ease;
}

    .cancel-button:hover {
        border: 1px solid #d72f2f;
        color: #d72f2f;
    }

.savebutton {
    height: 52px;
    min-width: 140px;
    padding: 0 28px;
    font-family: "Poppins", sans-serif;
    font-size: 16px;
    border-radius: 14px;
    background-color: #d72f2f;
    border: none;
    color: white;
    cursor: pointer;
    transition: background 0.2s ease;
}

    .savebutton:hover {
        background-color: #b52424;
    }

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

    .modal-backdrop[hidden] {
        display: none;
    }

.image-action-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    padding: 20px;
    min-width: 300px;
    max-width: 400px;
    animation: fadeIn 0.3s ease-out;
}

    .image-action-modal[hidden] {
        display: none;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -45%);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.modal-option {
    padding: 18px 20px;
    font-family: "Poppins", sans-serif;
    font-size: 16px;
    color: #6b5dd3;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.2s;
    border-bottom: 1px solid #f0f0f0;
    border-radius: 8px;
}

    .modal-option:hover {
        background-color: #f8f8f8;
    }

    .modal-option:last-child {
        border-bottom: none;
    }

    .modal-option.danger {
        color: #d72f2f;
    }

.toast-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #28a745;
    color: white;
    padding: 14px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-family: "Poppins", sans-serif;
    font-size: 14px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideInRight 0.3s ease-out;
    min-width: 250px;
}

    .toast-notification[hidden] {
        display: none;
    }

    .toast-notification.error {
        background-color: #dc3545;
    }

    .toast-notification.hide {
        animation: slideOutRight 0.3s ease-out;
    }

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

.spinner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

    .spinner-overlay[hidden] {
        display: none;
    }

.spinner {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@media screen and (max-width: 768px) {
    .Edit-title {
        font-size: 20px;
    }

    .verify-input {
        height: 48px;
        font-size: 14px;
    }

    .savebutton,
    .cancel-button {
        height: 48px;
        font-size: 15px;
    }
}

@media screen and (max-width: 560px) {
    .profile-photo-edit-container {
        flex: 0 0 100%;
        order: -1;
        align-items: center;
        padding-top: 0;
        margin-bottom: 8px;
    }

    .button-camera {
        left: 50%;
        transform: translateX(-50%) translateX(46px);
    }

        .button-camera:hover {
            transform: translateX(-50%) translateX(46px) scale(1.05);
        }

    .profile-edit-container {
        flex: 0 0 100%;
    }

    .two-button-row {
        justify-content: center;
    }

    .savebutton {
        flex: 1;
        min-width: 0;
    }

    .cancel-button {
        min-width: 80px;
    }
}

@media screen and (max-width: 380px) {
    .edit-main-flex-container {
        gap: 20px;
    }

    .large-photo,
    .profile-initials,
    .spinner-overlay {
        width: 130px;
        height: 130px;
    }

    .profile-initials {
        font-size: 36px;
    }

    .spinner-overlay {
        width: 130px;
        height: 130px;
    }

    .verify-input {
        height: 44px;
        font-size: 13px;
    }

    .savebutton,
    .cancel-button {
        height: 44px;
        font-size: 14px;
    }
}
