/*confirm modal side panel styling*/
/* Side panel look */
.side-panel {
    max-width: 400px;
    /* panel width */
    margin-left: auto;
    /* stick to right */
    height: 100%;
    /* full height */
    border-radius: 8px;
    /* rounded corners */
    margin-left: auto;
    /* stick to right */
    margin-right: 1rem;
    /* leave gap on right */

}

/* Confirm button: aqua background, white text */
.btn-confirm {
    background-color: #00cfcf;
    /* aqua */
    color: #fff;
    border: none;
}

.btn-confirm:hover {
    background-color: #00b5b5;
    /* darker aqua on hover */
}

/* Cancel button: transparent with light grey border + black text */
.btn-cancel {
    background-color: transparent;
    border: 1px solid #ccc;
    color: #000;
}

.btn-cancel:hover {
    background-color: #f8f9fa;
    /* subtle grey hover */
}

/*end confirm modal side panel styling*/

/*tabs styling on the settings page*/
/* Grey background for all tabs */
.nav-tabs .nav-link {
    background-color: #f8f9fa;
    /* light grey */
    color: #333;
    /* dark text */
    border: none;
    /* remove default borders */
}

/* Aqua underline for active tab */
.nav-tabs .nav-link.active {
    border-bottom: 3px solid #00cfcf;
    /* aqua bar */
    background-color: #f8f9fa;
    /* keep grey background */
    color: #000;
    /* active text color */
}

/*end tabs styling for settings page*/


/* start status badge*/
.status-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 8px;
    /* rounded pill border */
    border: 1px solid transparent;

}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 6px;
}

.status-badge.online {
    border-color: #198754;
    /* green border */
}

.status-badge.online .status-dot {
    background-color: #198754;
}

.status-badge.offline {
    border-color: #dc3545;
    /* red border */
}

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

/*end status badge*/

/* sidebar Section headers: light grey */
.sidebar-section-title {
    color: #adb5bd;
    /* Bootstrap's light grey tone */
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 600;
    margin: 0.5rem 0;
}

/* sidebar Menu items: dark grey text */
.sidebar .nav-link {
    color: #343a40;
    /* dark grey */
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* sidebar Menu items hover/active states */
.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    color: #212529;
    /* even darker grey on hover/active */
    background-color: #e9ecef;
    /* subtle background highlight */
    border-radius: 4px;
}

/* sidebar Icons: grey */
.sidebar .nav-link i {
    color: #6c757d;
    /* medium grey for icons */
    width: 1.25rem;
    /* consistent width for alignment */
    text-align: center;
}

/* Make each pagination button isolated */
.pagination .page-link {
    border: 1px solid #dee2e6;
    /* keep a light border */
    margin: 0 0.25rem;
    /* spacing between buttons */
    border-radius: 0.375rem;
    /* round all corners */
    border-color: rgb(210, 209, 209);
    color: black;
}

/* pagination Active state */
.pagination .page-item.active .page-link {
    background-color: #adb5bd;
    /* Bootstrap primary blue */
    color: #fff;
    border-radius: 0.375rem;
    /* ensure all corners rounded */
    border-color: rgb(210, 209, 209);
}

/* pagination Disabled state */
.pagination .page-item.disabled .page-link {
    color: #adb5bd;
    background-color: #f8f9fa;
    border-radius: 0.375rem;
}

body {
    overflow: hidden;
}

/* HEADER FLEX FIXES */
.navbar .container-fluid {
    flex-wrap: nowrap;
}

#headerSearch {
    flex: 1 1 auto;
    max-width: 200px;
    min-width: 100px;
}

.dropdown button {
    flex-shrink: 0;
}

/* CONTENT WRAPPER */
.content-wrapper {
    height: calc(100vh - 75px);
    display: flex;
}

/* SIDEBAR */
.sidebar {
    white-space: nowrap;
    height: 100%;
    overflow-y: auto;
    transition: width 0.3s;
    position: relative;
}

.sidebar-collapsed {
    width: 75px !important;
}

.sidebar .nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sidebar-collapsed .sidebar-text {
    display: none;
}

/* SECTION TITLES */
.sidebar-section-title {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #6c757d;
    padding: 0.75rem 0.5rem 0.25rem 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* SIDEBAR CARD (minimal, no hover) */
.sidebar-card {
    /* light gray border */
    border-radius: 0.5rem;
    padding: 0.75rem 0.5rem;
    margin-top: 1rem;
    background-color: #fff;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.05);
}


.sidebar-card .full-card {
    display: block;
}

.sidebar-collapsed .sidebar-card .full-card {
    display: none;
}

.sidebar-card .icon-card {
    display: none;
}

.sidebar-collapsed .sidebar-card .icon-card {
    display: flex;
    justify-content: center;
    align-items: center;
}

.sidebar-card .progress {
    background-color: #e9ecef;
}

.sidebar-card .progress-bar {
    transition: width 0.4s ease;
    background-color: aqua;
}

.sidebar-card .btn {
    border-radius: 0.25rem;
    font-size: 0.75rem;
    background-color: aqua;
}

.icon-card {
    text-align: center;
    padding: 0.5rem 0;
}

/* dashboard MAIN CONTENT */
.content {
    flex: 1;
    height: 100%;
    overflow-y: auto;
    padding: 1.5rem;
    transition: margin-left 0.3s;
}