body {
    background-color: #1e1e2e;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 0;
    padding: 0;
}

/* Cabecera y pestañas */
.admin-header {
    background-color: #2a2a3d;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.back-btn {
    background: none;
    border: none;
    color: #f1f1f1;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

    .back-btn:hover {
        background-color: #3b3b55;
        color: #fff;
    }

.admin-tabs {
    background-color: #2a2a3d;
    display: flex;
    border-bottom: 1px solid #3a3a4d;
    padding: 0 2rem;
    overflow-x: auto;
}

.tab-item {
    color: #b0b0c0;
    padding: 1rem 1.5rem;
    text-decoration: none;
    font-size: 0.9rem;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
    transition: all 0.3s ease;
}

    .tab-item.active {
        background-color: #4285f4;
        color: white;
        border-bottom-color: #4285f4;
        border-radius: 8px 8px 0 0;
        font-weight: 500;
    }

    .tab-item:hover:not(.active) {
        color: #fff;
        background-color: #3b3b55;
    }

/* Contenedor principal */
.dashboard-container {
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

.welcome-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.month-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0;
    color: #fff;
}

.month-subtitle {
    font-size: 0.9rem;
    color: #4285f4;
    cursor: pointer;
    text-decoration: none;
    font-weight: 500;
}

    .month-subtitle:hover {
        text-decoration: underline;
    }

.greeting {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Tarjetas de estadísticas */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    border: 1px solid #e9ecef;
    transition: transform 0.2s, box-shadow 0.2s;
}

    .stat-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    }

.stat-title {
    font-size: 0.9rem;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

    .stat-value.income {
        color: #28a745;
    }

    .stat-value.expense {
        color: #dc3545;
    }

    .stat-value.balance {
        color: #2a2a3d;
    }

.stat-progress {
    height: 6px;
    background-color: #f8f9fa;
    border-radius: 3px;
    overflow: hidden;
}

.stat-progress-bar {
    height: 100%;
    transition: width 0.3s ease;
}

.progress-income {
    background: linear-gradient(90deg, #28a745, #20c997);
}

.progress-expense {
    background: linear-gradient(90deg, #dc3545, #e74c3c);
}

.progress-balance {
    background: linear-gradient(90deg, #4285f4, #6c5ce7);
}

.info-icon {
    color: #6c757d;
    cursor: help;
    font-size: 0.8rem;
}

/* Últimos movimientos */
.movements-section {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    border: 1px solid #e9ecef;
    margin-bottom: 2rem;
}

.movements-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2a2a3d;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.movements-content {
    text-align: center;
    color: #6c757d;
    padding: 3rem 0;
    font-size: 1rem;
}

/* Caja del día */
.daily-cash-section {
    position: absolute;
    right: 2rem;
    top: 180px;
    width: 280px;
    z-index: 1000;
}

.daily-cash-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    text-align: center;
    border: 1px solid #e9ecef;
}

.cash-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    background: linear-gradient(135deg, #4285f4, #6c5ce7);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.95rem;
}

    .cash-button:hover {
        background: linear-gradient(135deg, #3367d6, #5a4fcf);
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(66, 133, 244, 0.3);
        color: white;
        text-decoration: none;
    }

.cash-description {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: #6c757d;
    line-height: 1.5;
}

/* Responsive design */
@@media (max-width: 1200px) {
    .daily-cash-section {
        position: relative;
        right: auto;
        top: auto;
        width: 100%;
        max-width: 400px;
        margin: 0 auto 2rem;
    }

    .dashboard-container {
        padding-right: 2rem;
    }
}

@@media (max-width: 768px) {
    .dashboard-container {
        padding: 1rem;
    }

    .admin-header {
        padding: 1rem;
    }

    .admin-tabs {
        padding: 0 1rem;
        overflow-x: auto;
    }

    .tab-item {
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
    }

    .welcome-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .month-title {
        font-size: 1.8rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .stat-card {
        padding: 1rem;
    }

    .movements-section {
        padding: 1rem;
    }

    .daily-cash-section {
        width: 100%;
        max-width: none;
    }
}

@@media (max-width: 576px) {
    .admin-header {
        padding: 0.75rem;
    }

    .dashboard-container {
        padding: 1rem 0.5rem;
    }

    .admin-tabs {
        padding: 0 0.5rem;
    }

    .month-title {
        font-size: 1.6rem;
    }

    .stat-value {
        font-size: 1.7rem;
    }

    .movements-content {
        padding: 2rem 0;
        font-size: 0.9rem;
    }
}

/* Animaciones */
.dashboard-container {
    animation: fadeInUp 0.5s ease;
}

@@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
