
/* Custom styles for PuntoCarga Dashboard */

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Smooth transitions */
* {
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

/* Chart tooltip customization */
.chartjs-tooltip {
    background-color: rgba(15, 23, 42, 0.9) !important;
    border-radius: 8px !important;
    padding: 12px !important;
    border: 1px solid #334155 !important;
    backdrop-filter: blur(4px);
}

/* Card hover effects */
.stat-card {
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
}

/* Loading animation */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.loading {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Desktop: add left padding to main container because sidebar is fixed */
@media (min-width: 769px) {
    .flex-1.flex.flex-col {
        padding-left: 260px; /* matches sidebar width */
    }
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .chart-container {
        margin-left: -16px;
        margin-right: -16px;
    }
}
