/* Custom styles for Geoblock Monitor */

body {
    background-color: #f5f7fa;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.card {
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.table-responsive {
    max-height: 600px;
    overflow-y: auto;
}

.status-cell {
    text-align: center;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.status-cell:hover {
    transform: scale(1.05);
}

.status-success {
    background-color: #28a745 !important;
    color: white;
}

.status-blocked {
    background-color: #dc3545 !important;
    color: white;
}

.status-error {
    background-color: #ffc107 !important;
    color: #333;
}

.status-unknown {
    background-color: #6c757d !important;
    color: white;
}

.status-cell small {
    display: block;
    font-size: 0.7em;
    opacity: 0.8;
    margin-top: 2px;
}

/* Pulse animation for refresh button */
@keyframes pulse {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.refreshing {
    animation: pulse 1s linear infinite;
}

/* Connection status */
.badge {
    padding: 0.5em 0.75em;
    font-size: 0.85em;
}

/* Sticky header */
#statusTable thead {
    position: sticky;
    top: 0;
    z-index: 10;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .table-responsive {
        font-size: 0.85em;
    }
    
    .status-cell small {
        display: none;
    }
}

/* Chart containers */
canvas {
    max-height: 300px;
}

/* List items */
.list-group-item {
    border-left: 4px solid transparent;
}

.list-group-item.blocked {
    border-left-color: #dc3545;
}

.list-group-item.success {
    border-left-color: #28a745;
}

/* Loading animation */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Tooltip styling */
.tooltip-inner {
    max-width: 300px;
    text-align: left;
}

/* Stats cards animation */
.card h2 {
    font-size: 2.5rem;
    font-weight: bold;
    margin: 0.5rem 0;
}

/* Filter dropdowns */
.form-select {
    border-radius: 6px;
    border: 1px solid #dee2e6;
}

.form-select:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}
