* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: #060a12;
    color: #ffffff;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Contenedor Principal */
.app-container {
    width: 100%;
    max-width: 1420px;
    background: #091122;
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-radius: 20px;
    box-shadow: 0 0 30px rgba(245, 158, 11, 0.12), 0 20px 50px rgba(0, 0, 0, 0.8);
    display: flex;
    overflow: hidden;
    min-height: 750px;
}

/* Lateral Izquierdo (Sidebar) */
.sidebar {
    width: 310px;
    background: linear-gradient(180deg, #091938 0%, #050d1e 100%);
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    flex-shrink: 0;
}

.sidebar-title h1 {
    font-size: 1.9rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.5px;
}

.sidebar-title h1 span {
    color: #f59e0b;
    display: block;
}

.sidebar-title p {
    color: #94a3b8;
    font-size: 0.8rem;
    margin-top: 10px;
    line-height: 1.4;
}

/* Men�� de Navegaci��n Lateral */
.sidebar-nav {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav-section-title {
    font-size: 0.7rem;
    font-weight: 800;
    color: #f59e0b;
    letter-spacing: 0.8px;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    color: #94a3b8;
    text-decoration: none;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.04);
    color: #ffffff;
}

.nav-item.active {
    background: rgba(245, 158, 11, 0.12);
    color: #f59e0b;
    border-color: rgba(245, 158, 11, 0.3);
}

.nav-icon {
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

.badge-proximamente {
    margin-left: auto;
    font-size: 0.65rem;
    background: rgba(255, 255, 255, 0.08);
    color: #64748b;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 700;
}

.btn-salir {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    width: 100%;
    justify-content: center;
}

.btn-salir:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Panel Principal (Derecha) */
.main-content {
    flex: 1;
    padding: 30px;
    display: flex;
    flex-direction: column;
    background: #070e1c;
    overflow: hidden;
}

.modulo-seccion {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Barra Superior de Control */
.control-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #091326;
    padding: 16px 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 20px;
    gap: 15px;
}

.upload-group {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.file-select-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px dashed rgba(255, 255, 255, 0.25);
    padding: 10px 16px;
    border-radius: 8px;
    color: #cbd5e1;
    font-size: 0.82rem;
    cursor: pointer;
    max-width: 320px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.file-select-btn:hover {
    border-color: #f59e0b;
    color: #ffffff;
}

.btn-cargar {
    background: #f59e0b;
    color: #0b1329;
    font-weight: 800;
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-cargar:hover {
    background: #d97706;
}

.btn-excel-primary {
    background: #10b981;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 800;
    font-size: 0.85rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.25);
    transition: all 0.2s ease;
}

.btn-excel-primary:hover {
    background: #059669;
    transform: translateY(-1px);
}

/* Header Bar */
.header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.header-bar h2 {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.badge-count {
    background: #f59e0b;
    color: #0b1329;
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 800;
    font-size: 0.8rem;
}

/* Tabla de Movimientos */
.table-container {
    flex: 1;
    max-height: 500px;
    overflow-y: auto;   
    background: #0a1326;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.82rem;
}

th {
    position: sticky;
    top: 0;
    background: #081120;
    color: #f59e0b;
    padding: 14px 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 10;
}

td {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: #cbd5e1;
    white-space: nowrap;
}

tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.monto-retiro {
    color: #f87171;
    font-weight: 700;
}

.monto-deposito {
    color: #34d399;
    font-weight: 700;
}

.select-cat {
    background: #09152b;
    color: #38bdf8;
    border: 1px solid #0284c7;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    outline: none;
    max-width: 220px;
    transition: all 0.2s ease;
}

.select-cat.revisar {
    border-color: #ef4444;
    color: #f87171;
    background: rgba(239, 68, 68, 0.1);
}

.select-cat.manual {
    border-color: #f59e0b;
    color: #fbbf24;
    background: rgba(245, 158, 11, 0.12);
}

.select-cat.claude {
    border-color: #a855f7;
    color: #c084fc;
    background: rgba(168, 85, 247, 0.12);
}

.select-cat option {
    background: #091122;
    color: #ffffff;
}

.badge-rastro {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
}

.badge-rastro.regla {
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.3);
}

.badge-rastro.manual {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.4);
}

.badge-rastro.claude {
    background: rgba(168, 85, 247, 0.15);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.4);
}

.badge-rastro.duplicado {
    background: rgba(100, 116, 139, 0.15);
    color: #94a3b8;
    border: 1px solid rgba(100, 116, 139, 0.4);
    margin-left: 6px;
}

.fila-duplicada td {
    opacity: 0.55;
}

/* Pie de Acci��n */
.action-footer {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 20px;
}

.btn-action-outline {
    background: transparent;
    border: 1px solid #0284c7;
    color: #38bdf8;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-action-outline:hover {
    background: rgba(2, 132, 199, 0.15);
}

.btn-action-primary {
    background: #3b82f6;
    color: #ffffff;
    border: none;
    padding: 12px 22px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.3);
    transition: all 0.2s ease;
}

.btn-action-primary:hover {
    background: #2563eb;
}

/* Contenedor de M��dulos Futuros */
.placeholder-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #0a1326;
    border-radius: 12px;
    border: 1px dashed rgba(255, 255, 255, 0.1);
    color: #64748b;
    text-align: center;
    padding: 40px;
}

.placeholder-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #f59e0b;
    opacity: 0.6;
}

.placeholder-container h3 {
    color: #e2e8f0;
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.placeholder-container p {
    font-size: 0.85rem;
    max-width: 400px;
}

/* Alternancia de M��dulos */
.oculto-modulo {
    display: none !important;
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #070e1c; }
::-webkit-scrollbar-thumb { background: #1e293b; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #334155; }