/* Dashboard Styles */
.sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    padding: 48px 0 0;
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
}

@media (max-width: 767.98px) {
    .sidebar {
        top: 3.5rem;
        padding-top: 0;
        position: fixed;
        width: 80%;
        height: 100%;
        left: -80%; /* Start off-screen */
        transition: left 0.3s ease;
        z-index: 1030;
        background-color: #f8f9fa;
        box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    }
    
    .sidebar.show {
        left: 0; /* Slide in when shown */
    }
    
    /* Add overlay when sidebar is visible */
    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 1025;
    }
    
    .sidebar-overlay.show {
        display: block;
    }
    
    /* Adjust main content spacing on mobile */
    main {
        padding-top: 1rem;
    }
    
    /* Make cards and tables more mobile-friendly */
    .card {
        margin-bottom: 1rem;
    }
    
    .table-responsive {
        margin-bottom: 1.5rem;
    }
    
    /* Make dropdown more usable on mobile */
    .dropdown-menu {
        position: absolute !important;
    }
}

.sidebar-sticky {
    position: relative;
    top: 0;
    height: calc(100vh - 48px);
    padding-top: .5rem;
    overflow-x: hidden;
    overflow-y: auto;
}

.sidebar .nav-link {
    font-weight: 500;
    color: #333;
}

.sidebar .nav-link.active {
    color: #007bff;
}

.sidebar .nav-link:hover {
    color: #007bff;
}

.sidebar .nav-link .bi {
    margin-right: 4px;
    color: #727272;
}

.sidebar .nav-link.active .bi {
    color: #007bff;
}

.navbar-brand {
    padding-top: .75rem;
    padding-bottom: .75rem;
    font-size: 1rem;
    background-color: rgba(0, 0, 0, .25);
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, .25);
}

.navbar .navbar-toggler {
    top: .25rem;
    right: 1rem;
}

.card-title {
    margin-bottom: 0.5rem;
}

.card-text.display-4 {
    font-size: 2.5rem;
}

.status-badge {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 5px;
}

.status-online {
    background-color: #28a745;
}

.status-offline {
    background-color: #dc3545;
}

.table-action-btn {
    cursor: pointer;
    margin: 0 3px;
}

.table-responsive {
    margin-bottom: 20px;
}

#last-refresh-time {
    font-size: 0.875rem;
}

/* Chart containers */
#response-time-chart {
    min-height: 300px;
}

#action-type-chart, #success-rate-chart {
    min-height: 250px;
}
