/* Custom styles for B.I. Evento */

body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Header */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
}

/* Cards */
.card {
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,.1);
    transition: transform 0.2s ease-in-out;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,.15);
}

/* Status indicator */
#status-indicator {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container-fluid {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .fs-1 {
        font-size: 2rem !important;
    }
    
    .table-responsive {
        font-size: 0.875rem;
    }
}

@media (max-width: 576px) {
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    .card-title {
        font-size: 0.9rem;
    }
    
    .fs-1 {
        font-size: 1.5rem !important;
    }
    
    .btn {
        font-size: 0.875rem;
    }
}

/* Chart containers */
canvas {
    max-height: 300px;
}

/* Table styling */
.table th {
    border-top: none;
    font-weight: 600;
    font-size: 0.875rem;
}

.table td {
    font-size: 0.875rem;
    vertical-align: middle;
}

/* Loading animation */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Custom badge styles */
.badge {
    font-size: 0.75rem;
}

/* Footer */
footer {
    margin-top: auto;
}

/* Animation for number changes */
.number-change {
    animation: numberUpdate 0.5s ease-in-out;
}

@keyframes numberUpdate {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Custom colors for different metrics */
.metric-primary { color: #0d6efd !important; }
.metric-success { color: #198754 !important; }
.metric-warning { color: #ffc107 !important; }
.metric-info { color: #0dcaf0 !important; }
.metric-danger { color: #dc3545 !important; }

/* Card hover effects */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Status indicators */
.status-online {
    color: #28a745;
}

.status-offline {
    color: #dc3545;
}

.status-warning {
    color: #ffc107;
}

/* Mobile-first responsive design */
@media (max-width: 991.98px) {
    .row.g-3 > [class*="col-"] {
        margin-bottom: 1rem;
    }
}

/* Print styles */
@media print {
    .navbar, footer, .btn {
        display: none !important;
    }
    
    .card {
        box-shadow: none !important;
        border: 1px solid #dee2e6 !important;
    }
    
    body {
        background-color: white !important;
    }
}
