html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.hidediv {
    display: none;
}

html.dark .select2-results__option {
    color: whitesmoke;
}

#left-logo-div {
    overflow:hidden;
}

html.dark .card-body {
    color: #a0aab3;
}

.sidebar {
    width: 350px;
    min-width: 350px;
}

.notes-panel {
    position: sticky;
    top: 20px;
    background-color: #f8f9fa;
    border-radius: 0.25rem;
    border: 1px solid #e4e7ed;
    padding: 15px;
}

html.dark .notes-panel {
    background-color: #1e1e2d;
    border: 1px solid #3e3e4e;
}

.notes-header {
    font-weight: bold;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e4e7ed;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

html.dark .notes-header {
    border-bottom: 1px solid #3e3e4e;
}

.sidebar-toggle {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #3c90df;
    color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    border: none;
}

@media (max-width: 222992px) {
    .content-layout {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        min-width: 100%;
    }

        .sidebar.floating-mode {
            position: fixed;
            right: 20px;
            bottom: 80px;
            width: 350px;
            min-width: 350px;
            z-index: 1000;
            box-shadow: 0 5px 15px rgba(0,0,0,0.2);
            max-height: 70vh;
            overflow-y: auto;
            transition: transform 0.3s ease;
        }

            .sidebar.floating-mode.hidden {
                transform: translateX(400px);
            }

    .sidebar-toggle {
        display: flex;
        justify-content: center;
        align-items: center;
    }
}

/* Custom LGDG Table Styling */
.table-lgdg {
    width: 100%;
    margin-bottom: 1rem;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 0.5rem;
    overflow: hidden;
}

    .table-lgdg thead th {
        background-color: #345a8a !important;
        color: white;
        padding: 1rem 0.75rem;
        font-weight: 600;
        border-bottom: 2px solid #2a4870;
        text-align: left;
        vertical-align: middle;
    }

    .table-lgdg tbody tr:nth-of-type(odd) {
        background-color: rgba(240, 245, 255, 1); /* Lighter blue-tinted background */
    }

    .table-lgdg tbody tr:nth-of-type(even) {
        background-color: white; /* Pure white for even rows */
    }

    .table-lgdg tbody td {
        padding: 0.75rem;
        border-top: 1px solid #e2e8f0;
    }

    .table-lgdg tbody tr:hover {
        background-color: rgba(0, 123, 255, 0.1); /* Slightly stronger hover effect */
    }

/* Dark mode adjustments */
html.dark .table-lgdg thead th {
    background-color: #1e3a5f;
    color: #e2e8f0;
    border-bottom: 2px solid #142b4c;
}

html.dark .table-lgdg tbody tr:nth-of-type(odd) {
    background-color: #252547; /* Darker blue-purple for odd rows */
}

html.dark .table-lgdg tbody tr:nth-of-type(even) {
    background-color: #1a1a2e; /* Darker background for even rows */
}

html.dark .table-lgdg tbody td {
    border-top: 1px solid #2d2d44;
}

html.dark .table-lgdg tbody tr:hover {
    background-color: rgba(79, 105, 146, 0.25); /* Stronger hover effect in dark mode */
}

.bg-searchsection {
    background-color: #f0f5ff;
    border-radius: 1.0rem;
}
html.dark .bg-searchsection {
    background-color: #252547;
}
