/* Profile Widget Premium Styles */
.alezux-profile-form {
    width: 100%;
    margin: 0 auto;
    background: #ffffff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.profile-avatar-wrapper {
    text-align: center;
    margin-bottom: 30px;
}

.profile-avatar {
    position: relative;
    display: inline-block;
}

.profile-avatar img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.avatar-overlay {
    position: absolute;
    bottom: 0;
    right: 0;
    background: #6c5ce7;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    z-index: 10;
}

.avatar-overlay i {
    color: #ffffff !important;
    font-size: 20px;
    display: block;
}

.avatar-overlay:hover {
    transform: scale(1.1);
}

.avatar-overlay label {
    cursor: pointer;
    margin: 0;
    line-height: 1;
}

.avatar-hint {
    font-size: 13px;
    color: #888;
    margin-top: 10px;
}

.alezux-fields-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.field-group {
    display: flex;
    flex-direction: column;
}

.field-group label {
    font-size: 14px;
    font-weight: 600;
    color: #444;
    display: block;
    margin-bottom: 8px;
    /* Valor por defecto */
}

.field-group input {
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #f9f9f9;
}

.field-group input:focus {
    border-color: #6c5ce7;
    background: #fff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.1);
}

.button-wrapper {
    width: 100%;
}

.alezux-btn-align-left .button-wrapper {
    text-align: left;
}

.alezux-btn-align-center .button-wrapper {
    text-align: center;
}

.alezux-btn-align-right .button-wrapper {
    text-align: right;
}

.alezux-btn-align-justify .button-wrapper {
    text-align: justify;
}

.alezux-submit-btn {
    background: #6c5ce7;
    color: #fff;
    border: none;
    padding: 14px 40px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    gap: 10px;
}

.alezux-btn-align-justify .alezux-submit-btn {
    width: 100%;
}

.alezux-submit-btn:hover {
    background: #a29bfe;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(108, 92, 231, 0.3);
}

.alezux-submit-btn:active {
    transform: translateY(0);
}

/* Responsividad */
@media (max-width: 480px) {
    .alezux-fields-grid {
        grid-template-columns: 1fr;
    }

    .field-group.full-width {
        grid-column: span 1;
    }

    .alezux-profile-form {
        padding: 25px;
    }
}

/* Estilos Modal Cropper */
.alezux-crop-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 2147483647;
    /* Same max z-index as global modal */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.alezux-crop-container {
    background: #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
    width: 100%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.alezux-crop-body {
    padding: 20px;
    max-height: 70vh;
    /* Prevent modal getting too tall */
    display: flex;
    justify-content: center;
    align-items: center;
    background: #000;
}

.img-container {
    width: 100%;
    height: auto;
    max-height: 500px;
    /* Limit image height */
    display: block;
}

/* Cropper JS Overrides force image max-width */
.img-container img {
    max-width: 100%;
    display: block;
}

.alezux-crop-footer {
    padding: 15px 20px;
    background: #252525;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    border-top: 1px solid #333;
}

.alezux-btn-cancel,
.alezux-btn-crop {
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.alezux-btn-cancel {
    background: #333;
    color: #fff;
}

.alezux-btn-cancel:hover {
    background: #444;
}

.alezux-btn-crop {
    background: #6c5ce7;
    color: #fff;
}

.alezux-btn-crop:hover {
    background: #5649c0;
}

/* Spinner adjustment in button */
.btn-loader {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Asegurar que la imagen del cropper no se desborde */
.cropper-container {
    width: 100%;
}