/* Estilos para el Dashboard de Usuario Equital */

.equital-dashboard-wrapper {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
}

/* Menú de navegación */
.nav-menu {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    align-items: stretch;
}

.nav-item {
    flex: 1;
    text-align: center;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    background-color: #fff;
}

.nav-item:hover {
    background-color: #f8f8f8;
    border-bottom-color: #ddd;
}

.nav-item.active {
    background-color: #f0f0f0;
    border-bottom-color: var(--equital-primary-color, #f39200);
}

.nav-item h3 {
    color: #333;
    font-size: 18px;
    margin-bottom: 5px;
}

.nav-item p {
    color: #666;
    font-size: 14px;
}

/* Contenido principal */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Sección del perfil */
.profile-section {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.sidebar {
    /* background-color: var(--equital-primary-color, #f39200); */
    color: white;
    padding: 30px 20px;
    border-radius: 8px;
    width: 200px;
    text-align: center;
}

.sidebar h2 {
    font-size: 20px;
    margin-bottom: 20px;
}

.profile-content {
    flex: 1;
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.profile-content h1 {
    color: #333;
    font-size: 28px;
    margin-bottom: 30px;
    font-weight: normal;
}

.profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 40px;
}

.profile-field {
    display: flex;
    flex-direction: column;
}

.profile-field label {
    color: #666;
    font-size: 14px;
    margin-bottom: 8px;
    font-weight: bold;
}

.profile-field span {
    color: #333;
    font-size: 16px;
}

.profile-actions {
    margin-top: 30px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.btn-change-password {
    background-color: #fff;
    border: 2px solid #ddd;
    color: #666;
    padding: 12px 30px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-change-password:hover {
    background-color: #f8f8f8;
    border-color: #999;
}

.btn-refresh {
    background-color: var(--equital-secondary-color, #ccc);
    color: #333;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.btn-refresh:hover {
    background-color: #999;
    color: white;
}

.btn-refresh:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-logout {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.btn-logout:hover {
    background-color: #c82333;
}

/* Secciones ocultas */
.section {
    display: none;
}

.section.active {
    display: block;
}

.placeholder-section {
    background-color: white;
    padding: 50px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center;
    margin-top: 20px;
}

.placeholder-section h2 {
    color: #333;
    font-size: 24px;
    margin-bottom: 15px;
}

.placeholder-section p {
    color: #666;
    font-size: 16px;
}

/* Mensajes */
.equital-message {
    padding: 15px;
    border-radius: 4px;
    margin: 15px 0;
    text-align: center;
}

.equital-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.equital-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Modal de cambio de contraseña */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 0;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from { opacity: 0; transform: translateY(-50px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid #eee;
    background-color: var(--equital-primary-color, #f39200);
    color: white;
    border-radius: 8px 8px 0 0;
}

.modal-header h3 {
    margin: 0;
    font-size: 20px;
}

.close {
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.close:hover {
    opacity: 0.7;
}

.change-password-form {
    padding: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: bold;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: var(--equital-primary-color, #f39200);
}

.form-group small {
    color: #666;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

.form-error {
    background-color: #f8d7da;
    color: #721c24;
    padding: 12px;
    border-radius: 5px;
    margin-bottom: 20px;
    border: 1px solid #f5c6cb;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.btn-primary {
    background-color: var(--equital-primary-color, #f39200);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-primary:hover {
    background-color: #e08900;
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
    }

    .profile-section {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        text-align: center;
    }

    .profile-grid {
        grid-template-columns: 1fr;
    }

    .profile-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .profile-actions button {
        width: 100%;
        margin: 5px 0 !important;
    }
} 