body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #121212;
    color: #e0e0e0;
}

.navbar {
    background-color: #1a1a1a !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.sidebar {
    background-color: #1e1e1e;
    min-height: calc(100vh - 56px);
    padding-top: 20px;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
}

.sidebar .nav-link {
    color: #b0b0b0;
    border-radius: 0;
    padding: 12px 20px;
    transition: all 0.3s;
}

.sidebar .nav-link:hover {
    background-color: #333;
    color: #fff;
}

.sidebar .nav-link.active {
    background-color: #007bff;
    color: #fff;
}

.content {
    padding: 20px;
    background-color: #242424;
    min-height: calc(100vh - 56px);
}

.card {
    background-color: #2d2d2d;
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.card-header {
    background-color: #343434;
    border-bottom: 1px solid #444;
    color: #e0e0e0;
}

.table {
    color: #e0e0e0;
}

.table thead th {
    border-bottom: 2px solid #444;
    background-color: #343434;
}

.table td, .table th {
    border-top: 1px solid #444;
}

/* Fix hover effect on table rows */
.table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.1) !important; /* Light hover instead of black */
    color: white !important; /* Ensure text stays white on hover */
}

/* Additional styles to ensure text remains visible */
.table tbody tr:hover td {
    color: #e0e0e0 !important; /* Light color for text */
}

/* Make sure the traffic badges stay visible on hover */
.table tbody tr:hover .traffic-badge {
    color: white !important; /* Keep badge text white */
}

.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
}

.btn-primary:hover {
    background-color: #0069d9;
    border-color: #0062cc;
}

.form-control {
    background-color: #343434;
    border: 1px solid #444;
    color: #e0e0e0;
}

.form-control:focus {
    background-color: #3a3a3a;
    border-color: #007bff;
    color: #fff;
}

.tooltip-inner {
    background-color: #343434;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.loader {
    border: 5px solid #343434;
    border-top: 5px solid #007bff;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.status-badge {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.status-active {
    background-color: #28a745;
    color: white;
}

.status-inactive {
    background-color: #dc3545;
    color: white;
}

.status-pending {
    background-color: #ffc107;
    color: black;
}

.dashboard-stats {
    background: linear-gradient(45deg, #007bff, #0056b3);
    color: white;
    border-radius: 5px;
    padding: 20px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.dashboard-stats h3 {
    margin-bottom: 15px;
    font-size: 18px;
}

.dashboard-stats .value {
    font-size: 32px;
    font-weight: bold;
}

.dashboard-stats .icon {
    position: absolute;
    right: 20px;
    bottom: 20px;
    font-size: 50px;
    opacity: 0.2;
}

.help-text {
    font-size: 13px;
    color: #aaa;
    margin-top: 5px;
}

/* Network traffic display styles */
.traffic-badge {
    display: inline-block;
    padding: 3px 6px;
    font-size: 11px;
    border-radius: 3px;
    margin-right: 5px;
    color: white;
}

.traffic-incoming {
    background-color: #28a745;
}

.traffic-outgoing {
    background-color: #dc3545;
}

.traffic-total {
    background-color: #007bff;
    font-weight: bold;
    font-size: 14px;
    padding: 6px 10px;
}

.network-traffic-container {
    display: flex;
    align-items: center;
}

.traffic-interface {
    font-weight: bold;
    margin-right: 5px;
    min-width: 45px;
}

.active {
    background-color: #28a745;
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    display: inline-block;
}

.inactive {
    background-color: #dc3545;
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    display: inline-block;
}

/* Total row styling */
.total-row {
    background-color: rgba(0, 123, 255, 0.15) !important;
    border-top: 3px solid #007bff;
    font-size: 16px;
    font-weight: bold;
}

/* Ensure total row hover doesn't change its styling too much */
.table tbody tr.total-row:hover {
    background-color: rgba(0, 123, 255, 0.2) !important;
}

.traffic-total-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

/* Animated loading indicator */
.loading-animation {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0, 123, 255, 0.3);
    border-radius: 50%;
    border-top-color: #007bff;
    animation: spin 1s ease-in-out infinite;
}