﻿/* ── TOPBAR ────────────────────────────────────────────────── */
.app-topbar {
    border-bottom: 1px solid rgba(255,255,255,0.06) !important;
    padding: 0 1rem !important;
}

.topbar-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 0.5rem;
}

.topbar-logo-text {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.topbar-user {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.4rem 0.75rem;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s ease;
}

    .topbar-user:hover {
        background: rgba(255,255,255,0.06);
    }

.topbar-user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.3;
}

.topbar-user-name {
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}

.topbar-user-profile {
    font-size: 0.72rem;
    opacity: 0.45;
    white-space: nowrap;
}

.topbar-avatar {
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    flex-shrink: 0;
}

/* ── DRAWER ────────────────────────────────────────────────── */
.app-drawer {
    border-right: 1px solid rgba(255,255,255,0.06) !important;
}

.app-drawer-header {
    padding: 1rem 1.25rem 0.5rem;
    min-height: 48px;
    display: flex;
    align-items: center;
}

.app-nav-menu {
    padding: 0.5rem 0.75rem;
    flex: 1;
}

.nav-section-label {
    color: rgba(255,255,255,0.3);
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 1rem 0.75rem 0.4rem;
}

.nav-menu-item {
    border-radius: 10px !important;
    margin-bottom: 2px !important;
    font-size: 0.9rem !important;
    transition: background 0.2s ease !important;
}

.app-drawer-footer {
    padding: 0.75rem;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.nav-logout {
    color: rgba(244,67,54,0.7) !important;
    border-radius: 10px !important;
}

    .nav-logout:hover {
        background: rgba(244,67,54,0.08) !important;
        color: #F44336 !important;
    }

/* ── LAYOUT ────────────────────────────────────────────────── */
.app-layout {
    min-height: 100vh;
}

.app-main-content {
    padding-top: 64px;
}

.app-container {
    padding: 2rem 1.5rem;
}

/* ── DASHBOARD ─────────────────────────────────────────────── */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.75rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.dashboard-title {
    font-weight: 700 !important;
    margin-bottom: 0.2rem !important;
}

.dashboard-subtitle {
    opacity: 0.5;
}

.dashboard-date {
    opacity: 0.4;
    align-self: center;
}

/* ── KPI CARD ──────────────────────────────────────────────── */
.kpi-card {
    border-radius: 16px !important;
    transition: transform 0.2s ease;
    height: 100%;
}

    .kpi-card:hover {
        transform: translateY(-4px);
    }

.kpi-card-content {
    padding: 1.5rem !important;
}

.kpi-top {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 1rem;
}

.kpi-data {
    flex: 1;
    min-width: 0;
}

.kpi-title {
    font-size: 0.78rem;
    opacity: 0.5;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 0.5rem;
}

.kpi-value {
    font-size: 1.9rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 0.3rem;
}

.kpi-subtitle {
    font-size: 0.78rem;
    opacity: 0.4;
}

.kpi-icon-wrapper {
    border-radius: 12px;
    width: 52px;
    height: 52px;
    min-width: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.kpi-divider {
    height: 1px;
    background: rgba(255,255,255,0.06);
    margin-bottom: 0.75rem;
}

.kpi-change {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.82rem;
    font-weight: 600;
}

.kpi-change--positive {
    color: #4CAF50;
}

.kpi-change--negative {
    color: #F44336;
}

.kpi-change-label {
    font-weight: 400;
    opacity: 0.45;
    margin-left: 0.25rem;
    font-size: 0.78rem;
}

/* ── CHART ─────────────────────────────────────────────────── */
.chart-card {
    border-radius: 16px !important;
    height: 100%;
}

.chart-card-content {
    padding: 1.5rem !important;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.chart-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.chart-subtitle {
    font-size: 0.78rem;
    opacity: 0.45;
}

.chart-bars {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.5rem;
    height: 180px;
    flex: 1;
}

.chart-bar-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    gap: 0.35rem;
}

.chart-bar-value {
    font-size: 0.7rem;
    font-weight: 600;
    opacity: 0.6;
}

.chart-bar-wrapper {
    flex: 1;
    width: 100%;
    background: rgba(255,255,255,0.05);
    border-radius: 6px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    min-height: 20px;
}

.chart-bar-fill {
    width: 100%;
    border-radius: 6px;
    transition: height 0.6s ease;
    min-height: 4px;
}

.chart-bar-label {
    font-size: 0.7rem;
    opacity: 0.4;
    white-space: nowrap;
}

/* ── TRANSACTIONS ───────────────────────────────────────────── */
.transactions-card {
    border-radius: 16px !important;
    height: 100%;
}

.transactions-content {
    padding: 1.5rem !important;
}

.transactions-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.transactions-title {
    font-size: 1rem;
    font-weight: 700;
}

.transaction-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    gap: 0.75rem;
}

    .transaction-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

.transaction-info {
    flex: 1;
    min-width: 0;
}

.transaction-desc {
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.transaction-user {
    font-size: 0.75rem;
    opacity: 0.4;
    margin-top: 0.15rem;
}

.transaction-right {
    text-align: right;
    flex-shrink: 0;
}

.transaction-amount {
    font-size: 0.88rem;
    font-weight: 700;
}

.transaction-status {
    font-size: 0.72rem;
    font-weight: 600;
    margin-top: 0.15rem;
}

/* ESTILOS PARA EL DIALOG DE CONFIRMACION */
.confirm-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999 !important;
}

.confirm-card {
    border-radius: 20px !important;
    max-width: 420px;
    width: 90%;
}

.confirm-icon {
    text-align: center;
    margin-bottom: 1rem;
}

.confirm-title {
    font-size: 1.2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.5rem;
}

.confirm-text {
    text-align: center;
    opacity: 0.6;
    font-size: 0.9rem;
    line-height: 1.6;
}

.confirm-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1rem 1.5rem !important;
    border-top: 1px solid rgba(255,255,255,0.06);
}