/* =========================
   Custom Navi Blue Sidebar Theme
========================= */
/* Make all links gray, including active ones */

a,
a.active {
    color: #6c757d !important;  /* gray */
    text-decoration: none;       /* optional: remove underline */
}

/* Optional: on hover, slightly darker gray */
a:hover,
a.active:hover {
    color: #495057 !important;
    text-decoration: underline;
}

/* Buttons inside btn-group */
.btn-group .btn {
       /* border */
    color: #ffffff !important;             /* white text */
    transition: all 0.2s ease;
}

/* Hover / focus state */
.btn-group .btn:hover,
.btn-group .btn:focus {

    color: #ffffff !important;  /* keep text white */
}

/* Active / pressed state */
.btn-group .btn:active,
.btn-group .btn.active,
.show>.btn.dropdown-toggle {

    color: #ffffff !important;  /* keep text white */
}

/* Disabled state */
.btn-group .btn.disabled,
.btn-group .btn:disabled {

    color: #ffffff !important;  /* white text */
}

.btn-group .btn + .btn {
    border-radius: 0.2rem;
    margin-left: 5px; /* adjust gap as needed */
}

.btn-success{
    color: white;
}

.btn-group .btn {
    border-radius: 0.2rem !important; /* round all corners */
    margin-left: 5px;                 /* gap between buttons */
}
/* Optional: link hover color */
body a:hover {
    color: #09518b; /* navy blue on hover */
    text-decoration: underline;
}

#recent-actions-module {
    background-color: #ffffff; /* White background */
    padding: 1rem; /* Space inside the container */
    border-radius: 0.5rem; /* Rounded corners */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    color: #000000; /* Black text for readability */
    margin-bottom: 1rem; /* Space below the container */
}


.main-sidebar {
    position: fixed !important;
    top: 56px;
    left: 0;
    bottom: 0;
    width: 250px;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    z-index: 1000;
    background-color: #003366 !important;
    transition: width 0.3s ease;
}

/* Sidebar collapsed */
body.sidebar-collapse .main-sidebar {
    width: 80px;
}

/* Adjust content-wrapper to not overlap */
.content-wrapper {
    margin-left: 250px;           /* expanded sidebar */
    transition: margin-left 0.3s ease;
}

body.sidebar-collapse .content-wrapper {
    margin-left: 80px;            /* collapsed sidebar */
}

/* Optional: scrollbar styles */
.main-sidebar::-webkit-scrollbar {
    width: 6px;
}

.main-sidebar::-webkit-scrollbar-track {
    background: #002952;
}

.main-sidebar::-webkit-scrollbar-thumb {
    background-color: #001f3d;
    border-radius: 3px;
}


/* Main sidebar background */
.main-sidebar.sidebar-dark-primary {
    background-color: #003366 !important; /* deep navy */
}

/* Sidebar brand/logo section */
.main-sidebar.sidebar-dark-primary .brand-link {
    background-color: #002952 !important; /* slightly darker navy */
    color: #ffffff !important;
}

/* Sidebar links (models) */
.main-sidebar.sidebar-dark-primary .nav-sidebar .nav-link {
    color: #e0e0ff !important; /* slightly lighter than white */
    transition: all 0.2s ease;
}

/* Active link */
.main-sidebar.sidebar-dark-primary .nav-sidebar .nav-link.active {
    background-color: #003366 !important; /* darker shade for active item */
    color: #ffffff !important;
}

/* Hover state */
.main-sidebar.sidebar-dark-primary .nav-sidebar .nav-link:hover {
    background-color: #001f3d !important; /* darkest navy */
    color: #ffffff !important;
}

/* Sidebar icons */
.main-sidebar.sidebar-dark-primary .nav-icon {
    color: #ffffff !important;
    font-size: 0.85rem;
}

/* Elevation / shadow */
.main-sidebar.elevation-4 {
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.25) !important;
}

/* =========================
   Sidebar App Section Headers & Separators
========================= */

/* App headers */
.main-sidebar.sidebar-dark-primary .nav-sidebar .nav-header {
    color: white !important; /* lighter blue for app headers */
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    padding-bottom: 0.25rem;
    border-bottom: 1px solid #666666; /* gray separator under header */
}

/* Separator after last nav-item of each app section */
.main-sidebar.sidebar-dark-primary .nav-sidebar .nav-header + .nav-item:last-of-type {
    border-bottom: 1px solid #555555; /* subtle gray line between app sections */
    margin-bottom: 0.5rem;
}

/* Optional padding for items */
.main-sidebar.sidebar-dark-primary .nav-sidebar .nav-header + .nav-item {
    padding-bottom: 0.25rem;
}

/* =========================
   Sidebar Model Icons
========================= */

/* Dashboard */
.main-sidebar.sidebar-dark-primary .nav-sidebar a[href="/admin/"] .nav-icon::before {
    content: "\f3fd"; /* fa-tachometer-alt */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
}

/* History / Logs */
.main-sidebar.sidebar-dark-primary .nav-sidebar a[href*="history"] .nav-icon::before {
    content: "\f1da"; /* fa-history */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
}

/* Users / Accounts */
.main-sidebar.sidebar-dark-primary .nav-sidebar a[href*="user"] .nav-icon::before {
    content: "\f007"; /* fa-user */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
}

/* API Keys / Access */
.main-sidebar.sidebar-dark-primary .nav-sidebar a[href*="apikey"] .nav-icon::before {
    content: "\f084"; /* fa-key */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
}

/* Settings / Config */
.main-sidebar.sidebar-dark-primary .nav-sidebar a[href*="configuration"] .nav-icon::before {
    content: "\f085"; /* fa-cogs */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
}

/* Reports / Charts */
.main-sidebar.sidebar-dark-primary .nav-sidebar a[href*="report"] .nav-icon::before {
    content: "\f201"; /* fa-chart-line */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
}

/* Messages / Email */
.main-sidebar.sidebar-dark-primary .nav-sidebar a[href*="email"] .nav-icon::before {
    content: "\f0e0"; /* fa-envelope */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
}

/* =========================
   Water Blue Header & Footer
========================= */

/* Main header / navbar */
.main-header.navbar {
    color:#003366!important;
    border-bottom: 2px solid #003366;
}

/* Navbar links */
.main-header.navbar .nav-link,
.main-header.navbar .navbar-brand,
.main-header.navbar .navbar-text {
    color: #003366 !important;
}

/* Navbar link hover */
.main-header.navbar .nav-link:hover {
    color: #e0f7ff !important; /* lighter blue on hover */
}

/* =========================
   Navi Blue Pagination
========================= */

/* Pagination container */
.pagination {
    display: flex;
    padding-left: 0;
    list-style: none;
    border-radius: 0.25rem;
}

/* Page items */
.pagination .page-item {
    margin: 0 2px; /* small spacing between items */
}

/* Page links */
.pagination .page-link {
    margin-top: 20px;
    position: relative;
    display: block;
    padding: 0.35rem 0.65rem; /* smaller height for sm pagination */
    color: #ffffff; /* default text white */
    border: 1px solid #002952; /* slightly darker border */
    border-radius: 0.25rem;
    transition: all 0.2s ease;
    font-weight: 500;
    text-decoration: none;
}

/* Hover state */
.pagination .page-link:hover {
    background-color:  #003d7a; /* brighter navy */
    border-color: #002952;
    color: #ffffff;
}

/* Active page */
.pagination .page-item.active .page-link {
    background-color: #001f3d !important; /* darkest navy */
    border-color: #001f3d !important;
    color: #ffffff !important;
    font-weight: 600;
}

/* Disabled page */
.pagination .page-item.disabled .page-link {
    background-color: #002952;
    border-color: #002952;
    color: #cccccc;
    cursor: not-allowed;
}

/* Small arrows (« ») */
.pagination .page-item.previous .page-link,
.pagination .page-item.next .page-link {
    font-weight: 600;
}



/* Optional: smaller pagination variant */
.pagination-sm .page-link {
    padding: 0.25rem 0.5rem;
    font-size: 0.85rem;
}


/* Navbar icons */
.main-header.navbar .nav-icon {
    color:#003366 !important;
}

/* Footer */
.main-footer {
    color:#003366 !important;
    border-top: 2px solid #003366;
}

/* Footer links */
.main-footer a {
    color: #e0f7ff !important;
}

.main-footer a:hover {
    color: #003366 !important;
}

/* =========================
   Navi Blue Buttons
========================= */

/* Primary buttons - Navy Blue */
.btn-primary {
    background-color: #003d7a !important;
    border-color: #003366 !important;
    color: #ffffff !important;
    transition: all 0.2s ease;
}
.btn-primary:hover,
.btn-primary:focus {
    background-color: #002952 !important;
    border-color: #001f3d !important;
    color: #ffffff !important;
}
.btn-primary:active,
.btn-primary.active,
.show>.btn-primary.dropdown-toggle {
    background-color: #001f3d !important;
    border-color: #001f3d !important;
    color: #ffffff !important;
}
.btn-primary.disabled,
.btn-primary:disabled {
    background-color: #003366 !important;
    border-color: #003366 !important;
    color: #cccccc !important;
}

/* Optional: rounded buttons */
.btn {
    border-radius: 0.25rem;
    font-weight: 500;
    color: #ffffff;
}
/* Force white text for Add button */
a.btn.btn-success {
    color: #ffffff !important;
}

a.btn.btn-success i {
    color: #ffffff !important;
}
/* Force white text for admin action buttons */
a.btn,
a.btn i {
    color: #ffffff !important;
}

/* Keep white on hover & focus */
a.btn:hover,
a.btn:focus,
a.btn:hover i,
a.btn:focus i {
    color: #ffffff !important;
}
/* Navbar user icon – navy blue */
.nav-link.btn {
    color: #0b1f3a !important; /* navy blue */
}

.nav-link.btn i {
    color: #0b1f3a !important;
}
/* Gray dump button */
.btn.btn-outline-primary,
.btn.btn-outline-info {
    color: #6b7280 !important;
    border-color: #d1d5db !important;
    background-color: #f9fafb;
}

.btn.btn-outline-primary:hover,
.btn.btn-outline-info:hover {
    color: #374151 !important;
    background-color: #e5e7eb;
    border-color: #9ca3af;
}


.user-panel .info a {
    color: #e5e7eb !important;
    text-decoration: none;
}

.user-panel .info a:hover {
    text-decoration: underline;
}
.btn.btn-default.addlink {
    background-color: #17a2b8 !important;
    border-color: #17a2b8 !important;
    color: #fff !important;
}
.jsoneditor-contextmenu-root {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    z-index: 9999;
}
@media (max-width: 1500px) {

    .jsoneditor-menu{
        max-width: 1000px;
    }
    .jsoneditor-frame{
        position: relative;
        margin-left: 30px;
        width: 200px;
    }


}

@media (max-width: 1200px) {

    .jsoneditor-menu{
        max-width: 1000px;
    }
    .jsoneditor-frame{
        position: relative;
        margin-left: 30px;
        width: 150px;
    }


}

@media (max-width: 750px) {

    .jsoneditor-menu{
        max-width: 1000px;
    }
    .jsoneditor-frame{
        display:none;
    }


}
.content.border-bottom.mb-2 {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #f4f8f8;
}

