/* Auth Modal Styles */
.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.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 40px;
    border: 1px solid #888;
    width: 90%;
    max-width: 450px;
    border-radius: 15px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    top: 15px;
    right: 20px;
    transition: color 0.3s;
}

.close-modal:hover,
.close-modal:focus {
    color: var(--primary-color);
    text-decoration: none;
    cursor: pointer;
}

/* Auth Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus {
    border-color: var(--primary-color);
    outline: none;
}

.btn-full {
    width: 100%;
    margin-top: 10px;
}

.auth-divider {
    text-align: center;
    margin: 20px 0;
    position: relative;
}

.auth-divider::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: #ddd;
}

.auth-divider span {
    background: #fff;
    padding: 0 10px;
    position: relative;
    color: #777;
    font-size: 14px;
}

.btn-google {
    width: 100%;
    background-color: #fff;
    color: #333;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    border-radius: 50px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-google:hover {
    background-color: #f9f9f9;
}

.auth-switch {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
}

.auth-switch a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

/* User Avatar & Dropdown */
.user-avatar {
    width: 40px;
    height: 40px;
    background-color: var(--secondary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    cursor: pointer;
    transition: transform 0.2s;
}

.user-avatar:hover {
    transform: scale(1.05);
}

.user-dropdown {
    position: relative;
}

.user-menu {
    right: 0;
    left: auto;
    min-width: 200px;
}

.user-menu a i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

/* Profile Page Styles */
.profile-container {
    display: flex;
    gap: 40px;
    margin-top: 120px;
    /* Adjust based on navbar height */
    margin-bottom: 60px;
    min-height: 60vh;
}

.profile-sidebar {
    width: 300px;
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    height: fit-content;
    text-align: center;
}

.profile-avatar-large {
    width: 100px;
    height: 100px;
    background-color: var(--secondary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    font-weight: bold;
    margin: 0 auto 20px;
}

.profile-header h2 {
    margin-bottom: 5px;
    color: #333;
}

.profile-header p {
    color: #777;
    margin-bottom: 30px;
}

.profile-menu {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.profile-menu-item {
    background: none;
    border: none;
    padding: 15px;
    text-align: left;
    cursor: pointer;
    border-radius: 10px;
    transition: background 0.3s;
    color: #555;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.profile-menu-item:hover,
.profile-menu-item.active {
    background-color: #f0f7ff;
    color: var(--primary-color);
    font-weight: 600;
}

.profile-content {
    flex: 1;
    background: #fff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.section-title-small {
    font-size: 24px;
    margin-bottom: 30px;
    color: #333;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 15px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.disabled-input {
    background-color: #f9f9f9;
    color: #777;
    cursor: not-allowed;
}

.empty-state {
    text-align: center;
    padding: 50px;
    color: #999;
}

.empty-state i {
    margin-bottom: 20px;
    color: #ddd;
}

.empty-state p {
    margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .profile-container {
        flex-direction: column;
        margin-top: 100px;
    }

    .profile-sidebar {
        width: 100%;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }
}

/* Password Visibility Toggle */
.password-wrapper {
    position: relative;
    width: 100%;
}

.password-wrapper input {
    padding-right: 40px;
    /* Space for the eye icon */
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #888;
    transition: color 0.3s;
}

.toggle-password:hover {
    color: var(--primary-color);
}
/* ---- LOGIN/REGISTRO EN PAUSA (borra este bloque para reactivarlo) ---- */
#auth-nav-item,
#mobile-auth-item {
    display: none !important;
}
