@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;700&display=swap');

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f4f7f6;
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Asegura que el body ocupe al menos toda la altura de la pantalla */
}

.navbar {
    background-color: #eb753a; /* Fondo naranja */
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}

.navbar-brand .logo {
    height: 50px; /* Ajusta el tamaño de tu logo */
}

.navbar-links-desktop {
    display: none;
}

.hamburger {
    display: block;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}

.mobile-menu {
    display: none;
    background-color: #eb753a;
    text-align: right;
    padding: 1rem 2rem;
}

/* Clase que se añade con JS para mostrar el menú */
.mobile-menu.active {
    display: block;
}

/* --- ESTILOS AÑADIDOS PARA EL ENLACE DE CERRAR SESIÓN --- */
.mobile-menu a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    display: block;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: background-color 0.2s ease-in-out;
    text-align: right;
}

.mobile-menu a:hover {
    background-color: rgba(255, 255, 255, 0.1); /* Un ligero resaltado al pasar el mouse */
}
/* --- FIN DE LOS ESTILOS AÑADIDOS --- */

.content {
    padding: 2rem;
    flex-grow: 1; /* Hace que el contenido principal crezca y empuje el footer hacia abajo */
}

/* Estilos para el main */
.user-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    padding: 1.5rem 2rem;
    max-width: 95%;
    margin: rem auto;
    border: 1px solid #e2e8f0;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 1rem;
}

.user-name {
    margin: 0;
    font-size: 1.5rem;
    color: #1a202c;
    max-width: 95%;
}

.user-email {
    margin: 0.25rem 0 0 0;
    font-size: 0.9rem;
    color: #718096;
}

/* Estilos para el badge de verificación */
.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.badge.verified {
    background-color: #e6fffa;
    color: #2c7a7b;
}

.badge.pending {
    background-color: #fffaf0;
    color: #c05621;
}

.balances-container {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
}

.balance-row {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 230px; /* Ajusta según necesites */
}

.balance-row .stat-label {
    font-size: 0.875rem;
    color: #718096;
}

.balance-row .stat-value {
    font-size: 1.2rem;
    font-weight: 900;
    color: #2d3748;
}

.balance-info {
    display: flex;
    flex-direction: row;  /* Apila los elementos verticalmente */
    align-items: flex-end;   /* Alinea a la derecha (justificado al final) */
    gap: 0.5rem;             /* Espacio entre los elementos */
    margin-top: 1rem;
}

.balance-item {
    display: flex;
    flex-direction: column;
    align-items: flex-end;   /* Alinea el texto a la derecha */
}

.stat-label {
    font-size: 0.75rem;
    color: #718096;
    margin-right: 1rem;
    text-align: left;
}

.stat-value {
    font-size: 0.875rem;
    font-weight: 600;
    color: #2d3748;
    text-align: right;
    min-width: 100px; /* Para alinear los valores */
}

/* Estilos específicos para los valores */
.stat-value.balance-available {
    color: #38a169; /* Verde para disponible */
}

.stat-value.balance-pending {
    color: #dd6b20; /* Naranja para pendiente */
}

.balance-available {
    font-size: 1.25rem;
    font-weight: 600;
    color: #38a169;
}

.balance-pending {
    font-size: 1.25rem;
    font-weight: 600;
    color: #e53e3e;          /* Rojo para el balance pendiente */
}

.balance-available {
    color: #219a14;          /* Verde para el balance disponible */
}

.balance-pending {
    color: #ff9800;          /* Naranja/ámbar para el balance pendiente (opcional) */
}

.card-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 columnas en pantallas grandes */
    gap: 1.5rem;
    padding-top: 1.5rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 0.8rem;
    color: #718096;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
}

.stat-value {
    font-size: 1rem;
    color: #2d3748;
    font-weight: 600;
}

.stat-value.enabled::before,
.stat-value.disabled::before {
    content: '●';
    margin-right: 0.5rem;
}

.stat-value.enabled {
    color: #38a169; /* Verde */
}

.stat-value.disabled {
    color: #e53e3e; /* Rojo */
}

.stat-item {
    border-left: 1px solid #e2e8f0; /* Color gris claro para la línea */
    padding-left: 1.5rem; /* Espacio entre la línea y el contenido */
}

.icon-enabled {
    color: #38a169; /* Verde */
    margin-right: 0.5rem;
}

.icon-disabled {
    color: #e53e3e; /* Rojo */
    margin-right: 0.5rem;

}

.onboarding-card {
    background-color: #fffaf0; /* Un fondo amarillo pálido */
    border-left: 4px solid #eb753a; /* Un borde naranja oscuro */
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    padding: 1.5rem 2rem;
    max-width: 95%;
    margin: 1rem auto;
}

.onboarding-card h3 {
    margin-top: 0;
    color: #eb753a;
    font-weight: normal;
}

.onboarding-card p {
    color: #eb753a;
    margin-bottom: 1.5rem;
}

.onboarding-button {
    display: inline-block;
    background-color: #eb753a;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    text-decoration: none; /* Quita el subrayado del enlace */
}
/* Crear enlace de pago */
.payment-link-creator {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    padding: 1.5rem 2rem;
    max-width: 95%;
    margin: 2rem auto;
    border: 1px solid #e2e8f0;
}

.payment-link-creator h2 {
    margin-top: 0;
    font-size: 1.25rem;
    color: #eb753a;
}

.payment-link-creator p {
    color: #718096;
    margin-bottom: 1.5rem;
}

#payment-link-form .form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

#payment-link-form .form-group {
    flex: 1; /* Hace que ambos campos ocupen el mismo espacio */
    display: flex;
    flex-direction: column;
}

#payment-link-form label {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #4a5568;
}

#payment-link-form input {
    padding: 0.75rem 1rem;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
}

#payment-link-form button {
    background-color: #eb753a;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    transition: background-color 0.2s;
}

#payment-link-form button:hover {
    background-color: #e63a1a;
}

.result-container {
    margin-top: 1.5rem;
}

.result-input-group {
    display: flex;
}

.result-input-group input {
    flex-grow: 1;
    padding: 0.75rem 1rem;
    border: 1px solid #cbd5e0;
    border-radius: 6px 0 0 6px;
    background-color: #f7fafc;
    font-family: 'Poppins', sans-serif;
    color: #2d3748;
}

.result-input-group button {
    background-color: #2d3748;
    color: white;
    border: 1px solid #2d3748;
    padding: 0.75rem 1rem;
    border-radius: 0 6px 6px 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.error-message {
    color: #eb753a;
    margin-top: 1rem;
}

/* balances */
.status-badge-container {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
}

.verification-status {
    margin-bottom: 0.5rem;
}


.hidden {
    display: none;
}

/* Estilos para los separadores */
.vertical-separator {
    width: 1px;
    background-color: #e2e8f0; /* Color gris claro */
    margin: 0 1rem; /* Espacio a los lados */
}

.form-separator {
    border: none;
    height: 1px;
    background-color: #e2e8f0; /* Color gris claro */
    margin: 1.5rem 0;
}

/* Ajuste al contenedor de los inputs para que el separador se estire */
#payment-link-form .form-row {
    align-items: stretch; /* Asegura que los items ocupen toda la altura */
}
 /* footer */
 .site-footer {
    background-color: #2d3748; /* Un color oscuro y elegante */
    color: #a0aec0; /* Texto gris claro */
    padding: 2rem;
    /* margin-top ya no es necesario */
}

/* success page */
.success-page-body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #f4f7f6;
    font-family: 'Poppins', sans-serif;
}

.success-card {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    padding: 3rem;
    max-width: 500px;
    text-align: center;
    margin: 1rem;
}

/* --- Estilos para la Tabla de Transacciones --- */

.transactions-list {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    padding: 1.5rem 2rem;
    max-width: 95%;
    margin: 2rem auto;
    border: 1px solid #e2e8f0;
}

.transactions-list h2 {
    margin-top: 0;
    font-size: 1.25rem;
    color: #1a202c;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.transactions-list table {
    width: 100%;
    border-collapse: collapse;
}

.transactions-list th,
.transactions-list td {
    padding: 0.75rem 0;
    text-align: left;
    border-bottom: 1px solid #f1f5f9;
}

.transactions-list th {
    font-size: 0.8rem;
    color: #718096;
    text-transform: uppercase;
    font-weight: 600;
}

.transactions-list td {
    color: #4a5568;
}

.transactions-list .text-right {
    text-align: right;
}

.no-data-message {
    color: #718096;
    text-align: center;
    padding: 2rem;
}

.success-icon {
    color: #38a169; /* Verde */
    margin-bottom: 1.5rem;
}

.success-card h1 {
    font-size: 1.75rem;
    color: #1a202c;
    margin-bottom: 1rem;
}

.success-card p {
    color: #718096;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.success-button {
    display: inline-block;
    background-color: #eb753a; /* Naranja de la marca */
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    text-decoration: none;
    transition: background-color 0.2s;
}

.success-button:hover {
    background-color: #e63a1a;
}

.footer-content {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Para que se adapte en móviles */
    gap: 1rem;
}

.footer-info p {
    margin: 0.25rem 0;
    font-size: 0.9rem;
}

.footer-info a {
    color: #FF4B2B; /* Naranja de la marca */
    text-decoration: none;
    font-weight: bold;
}

.footer-info a:hover {
    text-decoration: underline;
}

.footer-social a {
    color: #a0aec0;
    font-size: 1.25rem;
    margin-left: 1rem;
    transition: color 0.2s;
}

.footer-social a:hover {
    color: #FF4B2B; /* Naranja de la marca */
}



/* Responsividad para el footer */
@media (max-width: 768px) {
    .card-stats {
        grid-template-columns: repeat(2, 1fr); /* 2 columnas en tablets */
    }

    #payment-link-form .form-row {
        flex-direction: column;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-social {
        margin-top: 1rem;
    }

    .footer-social a {
        margin: 0 0.75rem;
    }
}

@media (max-width: 480px) {
    .card-header {
        flex-direction: column;
        align-items: stretch;
    }

    #background-image {
        display: none; /* Oculta la imagen de fondo en móviles */
    }

    .status-badge-container {
        display: flex;
        justify-content: flex-end;
        margin-top: 1rem;
        margin-top: 0.5rem;
    }

    .card-stats {
        grid-template-columns: 1fr; /* 1 columna en celulares */
    }
}