﻿.profile-container {
    padding-top: 5rem;
    background: white;
    padding-bottom:5rem;
}

.profile-title {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 0rem;
    color: #333;
}
.container-profile-info{
    display:flex;
    flex-direction:column;
    width:60%;
}
.profile-header {
    text-align: center;
    margin-bottom: 1rem;
}

.profile-image-container {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    position: relative;
}

.profile-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}



.profile-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    color: #333;
}

.profile-info {
    margin-bottom: 2rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.info-group {
    margin-bottom: 1rem;
}

    .info-group:last-child {
        margin-bottom: 0;
    }

    .info-group label {
        font-weight: 600;
        margin-right: 0.5rem;
        color: #495057;
    }

.profile-menu {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.profile-menu-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: background-color 0.2s;
}

    .profile-menu-item:hover {
        background-color: #e9ecef;
        text-decoration: none;
        color: #333;
    }

.menu-item-icon {
    width: 40px;
    height: 40px;
    background-color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
}

.menu-item-text {
    flex-grow: 1;
    font-weight: 500;
}

.menu-item-arrow {
    color: #adb5bd;
}
#addressesSection {
    max-width: 800px;
    margin: 0 auto;
    padding: 1rem;
}

#addressesList {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.address-item:hover .delete-address {
    opacity: 1;
}

.delete-address {
    opacity: 0.7;
    transition: opacity 0.2s ease-in-out;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}
.form-group{
    gap:1px;
    margin-bottom:10px;
}

.modal-content {
    background-color: #fefefe;
    margin: 1% auto;
    padding: 20px;
    border: 1px solid #888;
    max-width: 700px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.modal-close {
    background-color: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #aaa;
    transition: color 0.3s ease;
}

    .modal-close:hover {
        color: #333;
    }


/* ... (keep existing styles until #addressesSection) ... */

#addressesSection {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

    #addressesSection h2 {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 1.5rem;
    }

.close-section {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #666;
    cursor: pointer;
    padding: 0.5rem;
}

    .close-section:hover {
        color: #333;
    }

#addressesList {
    display: grid;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.address-form {
    padding-block: 5%;
}

@media (max-width: 640px) {
    #addressesList {
        grid-template-columns: repeat(2, 1fr);
    }
}

.address-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem;
    position: relative;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

    .address-card:hover {
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    .address-card h3 {
        color: #2563eb;
        font-size: 1.1rem;
        font-weight: 600;
        margin-bottom: 0.5rem;
    }

    .address-card p {
        color: #4b5563;
        font-size: 0.9rem;
        margin-bottom: 0.25rem;
    }

    .address-card .delete-address {
        position: absolute;
        top: 0.75rem;
        right: 0.75rem;
        padding: 0.5rem;
        background: none;
        border: none;
        color: #9ca3af;
        cursor: pointer;
        transition: color 0.2s ease;
    }

        .address-card .delete-address:hover {
            color: #ef4444;
        }

#addNewAddressBtn {
    width: 100%;
    padding: 0.75rem;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

    #addNewAddressBtn:hover {
        background: #1d4ed8;
    }


#passwordChangeModal .modal-content {
    max-width: 400px;
}

#passwordChangeModal .form-group {
    margin-bottom: 1rem;
}

#passwordChangeModal label {
    display: block;
    margin-bottom: 0.5rem;
}

#passwordChangeModal input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}

#passwordChangeModal .btn {
    padding: 0.5rem 1rem;
}
.profile-image-placeholder {
    font-size: 65px;
    color: #ccc;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
}
.addresses-container{
    padding-top:10%;
    padding-bottom:5%;
}
.addresses-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    text-align:center;
}

.modal-content .global-loader,
#passwordChangeLoader {
    display: none !important;
}

    /* Cuando necesitamos mostrar el loader específicamente */
    #passwordChangeLoader.show {
        display: flex !important;
    }

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 2rem;
    width: 90%;
    max-width: 400px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

    .modal-content h2 {
        color: #333;
        font-size: 1.5rem;
        margin-bottom: 1rem;
        font-weight: 600;
    }

    .modal-content p {
        color: #666;
        margin-bottom: 1.5rem;
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .modal-content .form-group {
        margin-bottom: 1.5rem;
    }

    .modal-content label {
        display: block;
        margin-bottom: 0.5rem;
        color: #333;
        font-weight: 500;
    }

    .modal-content input {
        width: 100%;
        padding: 0.75rem;
        border: 1px solid #ddd;
        border-radius: 8px;
        font-size: 1rem;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    }

        .modal-content input:focus {
            box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
            border-color: #80bdff;
            outline: none;
        }

    .modal-content .button-group {
        display: flex;
        justify-content: center;
        gap: 1rem;
        margin-top: 2rem;
    }

    .modal-content .btn {
        min-width: 120px;
        padding: 0.75rem 1.5rem;
        border-radius: 8px;
        font-weight: 500;
        font-size: 0.95rem;
        transition: all 0.2s ease;
    }

    .modal-content .btn-primary {
        background-color: #007bff;
        border-color: #007bff;
        color: white;
    }

        .modal-content .btn-primary:hover {
            background-color: #0056b3;
            border-color: #0056b3;
        }

    .modal-content .btn-secondary {
        background-color: #fff;
        border: 1px solid #ddd;
        color: #666;
    }

        .modal-content .btn-secondary:hover {
            background-color: #f8f9fa;
            border-color: #ddd;
        }

.validation-error,
.validation-warning,
.validation-success {
    padding: 0.75rem;
    border-radius: 8px;
    margin: 1rem 0;
    text-align: center;
}

.validation-error {
    background-color: #fff2f0;
    border: 1px solid #ffccc7;
    color: #cf1322;
}

.validation-warning {
    background-color: #fffbe6;
    border: 1px solid #ffe58f;
    color: #ad6800;
}

.validation-success {
    background-color: #f6ffed;
    border: 1px solid #b7eb8f;
    color: #389e0d;
}

@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
    .container-profile-info{
        width:90%;
    }

}