/* =========================================
   MONETIX - DASHBOARD & ADMIN STYLES
   Extracted from app.js CSS injection block
   ========================================= */

/* TABLA */
.table-wrapper {
    overflow-x: auto !important;
    width: 100%;
    margin-bottom: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    background: var(--bg-card);
    border: 1px solid var(--input-border);
}

.custom-table {
    width: 100%;
    min-width: 850px;
    border-collapse: separate;
    border-spacing: 0;
}

.custom-table th {
    background-color: #003366;
    color: white;
    padding: 15px;
    text-align: left;
    position: sticky;
    top: 0;
    z-index: 10;
}

.custom-table td {
    padding: 12px 15px !important;
    vertical-align: middle;
    font-size: 13px;
    border-bottom: 1px solid var(--input-border);
    color: var(--text-primary);
}

.nombre-celda {
    white-space: normal !important;
    min-width: 250px !important;
    max-width: 300px;
    line-height: 1.4;
    font-weight: 600;
    color: var(--text-primary);
    padding-right: 20px !important;
}

.col-acciones {
    position: sticky;
    right: 0;
    background: var(--bg-card);
    border-left: 2px solid var(--input-border);
    z-index: 5;
    text-align: center;
    width: 120px;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.05);
}

/* DASHBOARD VERTICAL */
#screen-admin-dash .dash-header {
    padding-bottom: 10px !important;
    margin-bottom: 0px !important;
    border-radius: 0 0 30px 30px;
}

.stats-vertical {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 20px;
    margin-top: 10px;
}

.stat-card {
    width: 100%;
    background: var(--bg-card);
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--input-border);
    text-align: left;
    position: relative;
    overflow: hidden;
}

.stat-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.stat-value {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-primary);
}

.stat-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 40px;
    opacity: 0.1;
    color: var(--text-primary);
}

/* COLORES TARJETAS */
.card-total {
    border-left: 6px solid #003366;
}

.card-total .stat-value {
    color: #003366;
}

body.dark-mode .card-total .stat-value {
    color: #4fc3f7;
}

.card-prestado {
    border-left: 6px solid #F4B400;
}

.card-prestado .stat-value {
    color: #F4B400;
}

.card-ganancia {
    border-left: 6px solid #673AB7;
}

.card-ganancia .stat-value {
    color: #673AB7;
}

body.dark-mode .card-ganancia .stat-value {
    color: #b39ddb;
}

.card-saldo {
    border-left: 6px solid #0F9D58;
}

.card-saldo .stat-value {
    color: #0F9D58;
}

body.dark-mode .card-saldo .stat-value {
    color: #69f0ae;
}

/* ESTILOS MODAL FLUJO & FILTROS PREMIUM */
/* Contenedor de filtros con diseño glassmorphism sutil o tarjeta limpia */
.filter-box {
    background: var(--bg-card);
    padding: 15px;
    border-radius: 16px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.filter-row {
    display: flex;
    gap: 12px;
    align-items: center;
}

.filter-input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    font-size: 13px;
    background: #f8f9fa;
    color: var(--text-primary);
    transition: all 0.3s ease;
    font-family: 'Segoe UI', system-ui, sans-serif;
}

.filter-input:focus {
    background: #fff;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
    outline: none;
}

.btn-report {
    width: 100%;
    background: linear-gradient(135deg, #546e7a 0%, #37474f 100%);
    color: white;
    padding: 12px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 10px rgba(84, 110, 122, 0.3);
}

.btn-report:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(84, 110, 122, 0.4);
}

.btn-report:active {
    transform: scale(0.98);
}

/* Lista de movimientos estilizada */
.flow-list {
    margin-top: 15px;
    background: transparent;
    /* border-radius: 16px; Quitado fondo blanco para que las cards floten */
    padding: 5px;
    max-height: 400px;
    overflow-y: auto;
}

/* Scrollbar invisible pero funcional */
.flow-list::-webkit-scrollbar {
    width: 6px;
}

.flow-list::-webkit-scrollbar-track {
    background: transparent;
}

.flow-list::-webkit-scrollbar-thumb {
    background: #cfd8dc;
    border-radius: 10px;
}

.flow-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    margin-bottom: 12px;
    background: #fff;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
    transition: transform 0.2s, box-shadow 0.2s;
}

.flow-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.flow-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.flow-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.bg-red {
    background: linear-gradient(135deg, #ef5350 0%, #c62828 100%);
    color: white;
}

.bg-green {
    background: linear-gradient(135deg, #66bb6a 0%, #2e7d32 100%);
    color: white;
}

.flow-details h4 {
    margin: 0 0 4px 0;
    font-size: 14px;
    font-weight: 700;
    color: #2c3e50;
    letter-spacing: -0.3px;
}

.flow-details p {
    margin: 0;
    font-size: 12px;
    color: #78909c;
    font-weight: 500;
}

.flow-amount {
    font-weight: 800;
    font-size: 16px;
    letter-spacing: -0.5px;
}

.text-red {
    color: #d32f2f;
}

.text-green {
    color: #2e7d32;
}

.flow-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.btn-flow {
    flex: 1;
    padding: 14px;
    border-radius: 14px;
    border: none;
    font-weight: 700;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    background: linear-gradient(135deg, #003366 0%, #0056b3 100%);
    box-shadow: 0 4px 15px rgba(0, 51, 102, 0.3);
    transition: all 0.2s;
}

.btn-flow:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 51, 102, 0.4);
}

.menu-card-btn-injected {
    background: #fff;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    text-align: center;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 120px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.menu-card-btn-injected:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: #007bff;
}

/* ESTILOS BARRA PROGRESO CERDITO */
.sim-progress-container {
    position: relative;
    height: 10px;
    background: #eee;
    border-radius: 10px;
    margin: 30px 10px 15px 10px;
}

.sim-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #0F9D58, #4CAF50);
    width: 0%;
    border-radius: 10px;
    transition: width 1.5s cubic-bezier(0.25, 1, 0.5, 1);
    position: relative;
}

.sim-piggy-marker {
    position: absolute;
    right: -15px;
    top: -22px;
    font-size: 24px;
    color: #e91e63;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.2));
    transition: transform 0.3s;
}

/* ESTILOS: BOTÓN INVERTIR Y BURBUJA */
.btn-lets-invest {
    width: 100%;
    padding: 16px;
    margin-top: 25px;
    background: linear-gradient(135deg, #003366 0%, #0056b3 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.5px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 51, 102, 0.2);
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-lets-invest:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 51, 102, 0.3);
}

.btn-lets-invest:active {
    transform: scale(0.98);
}

.bubble-container {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 10px;
}

.bubble-how {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-card);
    color: var(--text-secondary);
    padding: 10px 25px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid var(--input-border);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.bubble-how:hover {
    transform: scale(1.08);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.12);
    color: #003366;
    border-color: #003366;
}

/* ESTILOS PASO A PASO + GARANTÍA + FAQ */
.step-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    text-align: left;
}

.step-icon {
    flex-shrink: 0;
    width: 45px;
    height: 45px;
    background: #e3f2fd;
    color: #003366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    position: relative;
    z-index: 2;
}

.step-text h4 {
    margin: 0 0 5px 0;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}

.step-text p {
    margin: 0;
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.step-item:not(:last-child) .step-icon::after {
    content: '';
    position: absolute;
    top: 45px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 35px;
    background: #e3f2fd;
    z-index: 1;
}

.seal-box {
    background: #e8f5e9;
    border: 1px solid #c8e6c9;
    padding: 12px;
    border-radius: 10px;
    display: flex;
    gap: 12px;
    align-items: center;
    font-size: 12px;
    color: #2e7d32;
    margin-bottom: 15px;
    text-align: left;
}

.seal-box i {
    font-size: 24px;
}

.faq-item {
    border-bottom: 1px solid var(--input-border);
    padding: 8px 0;
    text-align: left;
}

.faq-item summary {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    list-style: none;
    outline: none;
}

.faq-item p {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 5px;
    line-height: 1.4;
    padding-left: 10px;
}

.btn-whatsapp-link {
    display: block;
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    color: #25D366;
    text-decoration: none;
    font-weight: 500;
}

.btn-whatsapp-link strong {
    font-weight: 700;
}

.btn-whatsapp-link i {
    font-size: 16px;
    vertical-align: middle;
    margin-left: 5px;
}

.btn-whatsapp-link:hover {
    text-decoration: underline;
}

/* CORRECCIÓN ALINEACIÓN SIMULADOR */
.sim-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--input-border);
    font-size: 14px;
    color: var(--text-primary);
}

/* 🔥 RESPONSIVE PARA DASHBOARD (PC) 🔥 */
@media (min-width: 1024px) {
    .stats-vertical {
        flex-direction: row !important;
        flex-wrap: wrap;
    }

    .stat-card {
        flex: 1;
        min-width: 200px;
    }

    .table-wrapper {
        box-shadow: none !important;
        border: 1px solid var(--glass-border);
        background: var(--glass-bg);
    }
}
/* Contenedor Scene (Reemplazo de Video) */
.clay-scene-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    height: 180px; /* Altura fija para mantener consistencia */
    display: flex;
    align-items: center;
    justify-content: center;
}

.clay-bg-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(-45deg, #0f2027, #203a43, #2c5364);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    z-index: 1;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.clay-caption {
    position: relative;
    z-index: 2;
    color: white;
    font-size: 18px;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    text-align: center;
    pointer-events: none;
}

