:root {
    --primary-color: #0d6efd;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

.card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 0.5rem;
}

.status-up {
    background-color: var(--success-color);
    box-shadow: 0 0 8px var(--success-color);
}

.status-down {
    background-color: var(--danger-color);
    box-shadow: 0 0 8px var(--danger-color);
    animation: pulse 1.5s infinite;
}

.status-unknown {
    background-color: #6c757d;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
    }
}

.table th {
    font-weight: 600;
    border-top: none;
}

.progress {
    background-color: #e9ecef;
    border-radius: 0.5rem;
}

.badge {
    font-weight: 500;
}

.footer {
    border-top: 1px solid #dee2e6;
}

/* Dashboard stats cards */
.card .display-4 {
    font-size: 3rem;
}

/* Login page */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Animations */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Chart container */
.chart-container {
    position: relative;
    height: 300px;
    width: 100%;
}

/* Map styles */
#map, #hostMap {
    z-index: 1;
}

.leaflet-container {
    font-family: inherit;
}

/* Custom marker styles for Leaflet */
.custom-marker {
    background: transparent;
    border: none;
}

/* SNMP Badge */
.badge-snmp {
    background-color: #17a2b8;
    color: white;
}

/* Device type colors */
.bg-purple {
    background-color: #6f42c1 !important;
}

.bg-orange {
    background-color: #fd7e14 !important;
}

.text-purple {
    color: #6f42c1 !important;
}

.text-orange {
    color: #fd7e14 !important;
}

/* Metric cards */
.metric-card {
    transition: transform 0.2s ease-in-out;
}

.metric-card:hover {
    transform: translateY(-3px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .card .display-4 {
        font-size: 2rem;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
}
