:root {
    --primary-nav-color: #005073;
    --google-blue: #4285F4;
    --google-red: #DB4437;
    --google-yellow: #F4B400;
    --google-green: #0F9D58;
    --anymcp-glass:  rgba(0, 0, 0, 0.6);
    --limegreen: #32CD32;
}

body {
    background-color: black;
    overflow-x: hidden;
    letter-spacing: 0.6px;
}

.sidebar {
    height: 100vh;
    width: 250px;
    position: fixed;
    top: 0;
    left: 0;
    padding-top: 20px;
    transition: all 0.3s;
    z-index: 1030;
    border-right: 1px solid #343a40;
    font-weight: 600;
    background-color: var(--anymcp-glass);
}

.sidebar-header {
    padding: 0 1.5rem 1rem;
}

.sidebar .nav-link {
    padding: 1rem 1.5rem;
    transition: background-color 0.2s;
    font-size: large;
    font-weight: 100;
}

.sidebar .nav-link:hover, .sidebar .nav-link.active {
    background-color: rgba(255, 255, 255, 0.1);
    color: rgb(248, 249, 250);
}

.main-content {
    position: relative;
    margin-left: 250px;
    width: calc(100% - 250px);
    transition: margin-left 0.3s, width 0.3s;
}

.main-content .navbar {
    border-bottom: 1px solid #343a40;
    height: 5rem;
    padding: 1rem;
    background-color: var(--anymcp-glass);
}

.content-area {
    padding: 1.5rem; 
    /* was 2rem */
}

.global-video {
    opacity: 0.6;
    position: fixed;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -100;
    transform: translateX(-50%) translateY(-50%);
    object-fit: cover;
}

.global-hover:hover {
    opacity: 0.6;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1029;
    opacity: 0;
    transition: opacity 0.3s;
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

.card {
    background-color: unset !important;
}

table {
    --bs-table-bg: unset !important;
}

.form-control, .form-select {
    background-color: unset !important;
    color: #fff;
}

option {
    color: black !important;
}

.gblue { color: var(--google-blue) }
.ggreen { color: var(--google-green) }
.gred { color: var(--google-red) }
.gyellow { color: var(--google-yellow) }
.limegreen { color: var(--limegreen) }

.text-lime {
    --bs-text-opacity: 1;
    color: var(--limegreen);
}

.btn-lime {
    /* * CRITICAL CHANGE: Lime green is very bright. White text (#fff)
        * is unreadable on it. I've changed the text color to 
        * black (#000) for high contrast and accessibility.
    */
    --bs-btn-color: #000;
    --bs-btn-bg: #32CD32;
    --bs-btn-border-color: #32CD32;

    /* Darker green shade for the hover state */
    --bs-btn-hover-color: #000;
    --bs-btn-hover-bg: #2aaa2a;
    --bs-btn-hover-border-color: #28a728;

    /* The RGB value for #32CD32 (50, 205, 50) for the focus shadow */
    --bs-btn-focus-shadow-rgb: 50, 205, 50;

    /* An even darker green shade for the active (clicked) state */
    --bs-btn-active-color: #000;
    --bs-btn-active-bg: #248e24;
    --bs-btn-active-border-color: #207a20;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);

    /* Disabled state styles */
    --bs-btn-disabled-color: #000;
    --bs-btn-disabled-bg: #32CD32;
    --bs-btn-disabled-border-color: #32CD32;
}


.hamburger-menu {
    font-size: 27px !important;
    border-color: var(--google-yellow);
    border: solid;
    border-width: 2px;
    border-radius: 4px;
    padding: 0px;
    padding-left: 4px;
    padding-right: 4px;
}


.card-header {
    background-color: RGB(251, 188, 5, 0.2);
}

.input-group-text {
    background-color: unset;
}

.h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6 {
    font-weight: 100;
    margin-bottom: 0rem;
}

.form-control, .form-select {
    font-weight: 100;
}

tbody {
    font-weight: 100;
}

@media (max-width: 991.98px) {
    .sidebar { left: -250px; }
    .sidebar.active { left: 0; background-color: rgba(0, 0, 0, 0.9); }
    .main-content { margin-left: 0; width: 100%; }
    .login-body { padding-bottom: 15rem; }
}

.login-body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 90vh;
}

.login-container {
    /* padding: 1rem; */
    /* border-radius: 8px; */
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
    z-index: 2;
    background-color: rgb(0, 0, 0, 0.6);
    padding: 2rem;
    border-radius: 1rem;
}

#bg-video {
    position: fixed;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -100;
    transform: translateX(-50%) translateY(-50%);
    object-fit: cover;
}

.video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

.card {
    background-color: #212529;
    border: 1px solid #343a40;
}

.form-control:focus, .form-select:focus {
    background-color: #2c3034;
    color: #fff;
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, .25);
}

.table { color: #dee2e6; }
.table-striped>tbody>tr:nth-of-type(odd)>* { --bs-table-accent-bg: rgba(255, 255, 255, 0.05); }

.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}
.password-wrapper .form-control { padding-right: 3rem; }
.password-toggle-icon {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    z-index: 5;
    color: #adb5bd;
}
.password-toggle-icon:hover { color: #fff; }

.table-sortable th { cursor: pointer; user-select: none; }
.table-sortable th:hover { background-color: rgba(255, 255, 255, 0.1); }
.table-sortable th::after {
    content: '';
    display: inline-block;
    margin-left: 0.5em;
    opacity: 0.3;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
}
.table-sortable th.sorted-asc::after { opacity: 1; border-bottom: 5px solid; }
.table-sortable th.sorted-desc::after { opacity: 1; border-top: 5px solid; }

/* Patrol page specific styles */
#shutter {
  opacity: 0;
  transition: all 30ms ease-in;
  position: fixed;
  height: 0%;
  width: 0%;
  pointer-events: none;
  background-color: white;
  left:50%;
  top:50%;
  transform: translate(-50%, -50%);
  -webkit-transform: translate(-50%, -50%)
}

#shutter.on {
  opacity: 1;
  height: 100%;
  width: 100%;
}