﻿/*@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');*/
/*@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Sankofa+Display&display=swap');*/
:root {
    --color-primary: #3C5B6F;
    --color-secondary: #1E5F74;
    --color-accent: #FFA500;
    --color-bg: #E9ECEF;
    --color-text: #212529;
    --color-text-light: #FFFFFF;
    --color-border: #CED4DA;
    --color-bg-secondary: #f8f9fa;
}

.text-primary {
    color: var(--color-primary) !important;
}

.welcome-text h1 {
    font-weight: 700;
    font-size: 2.5rem;
}

.welcome-text h2 {
    font-weight: 400;
    font-size: 1.2rem;
    margin-top: 0.5rem;
}

.welcome-text h3 {
    font-size: 2rem;
    font-weight: 500;
    margin-top: 1rem;
}

@media (min-width: 768px) {
    html {
        font-size: 14px;
    }

    html.loginText {
        font-size: 16px;
    }
}

#datetime {
    /*    font-size: 1.5rem;*/
    font-family: Arial, sans-serif;
    font-weight: bold;
}

.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%;
    /*    font-size: 10px;*/
}

body {
    margin-bottom: 60px;
    /*   background-color: #bacccc;*/
    font-family: 'Poppins', sans-serif;
    /*    margin: 0;
    padding: 0;*/
    /*background: url('../images/icons/svg/background.svg') no-repeat center center fixed;
    background-size: cover;*/
    /*font-size: 10px;*/
}

.b_light {
    background: url('../images/icons/svg/background.svg') no-repeat center center fixed;
    background-size: cover;
}

.b_dark {
    background: url('../images/icons/svg/background_dark.svg') no-repeat center center fixed;
    background-size: cover;
}

footer {
    background-color: #04364A;
    font-size: small;
}

#primary-nav {
    background-color: #04364A;
}

footer a {
    color: #64CCC5;
}

.headIcon {
    color: white !important;
    /*    border: 1px solid whitesmoke !important;
    border-radius:10px;*/
}

.headIcon>img {
    width: 30px;
    height: 30px;
    margin-inline-end: 5px;
}

/* Default: scale on hover (for large screens) */
.headIcon:hover {
    transform: scale(1.2);
    transition: transform 0.2s ease;
}

/* For md and sm (≤991.98px): move icon to the right on hover */
@media (max-width: 991.98px) {
    .headIcon:hover {
        transform: translateX(5px);
    }
}

.divContent {
    background-color: whitesmoke;
    border-radius: 5px !important;
    padding: .5rem !important;
    /*font-family: 'Sankofa Display', sans-serif;*/
}

/*BUTTONS CLASS*/
.btn-outline-primary {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.btn-outline-primary:hover {
    background-color: var(--color-primary);
    color: whitesmoke;
    border-color: var(--color-primary);
}

.btn-outline-primary:focus {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background-color: white;
    outline: 2px solid var(--color-primary);
}

/* Target button when clicked (mousedown) */
.btn-outline-primary:active {
    background-color: var(--color-primary) !important;
    border-color: var(--color-primary) !important;
}

/* Optional: for better support on keyboard + mouse */
.btn-outline-primary:focus:active {
    background-color: var(--color-primary) !important;
    border-color: var(--color-primary) !important;
}

.btn-primary {
    background-color: var(--color-primary);
    border-color: gray;
    color: white;
}

.btn-primary:hover {
    color: black !important;
    background-color: whitesmoke !important;
    border-color: black !important;
}

.btn-primary:focus {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: white !important;
    outline: 2px solid var(--color-primary);
}

/* Target button when clicked (mousedown) */
.btn-primary:active {
    background-color: var(--color-primary) !important;
    border-color: var(--color-primary) !important;
    color: white !important;
}

/* Optional: for better support on keyboard + mouse */
.btn-primary:focus:active {
    background-color: var(--color-primary) !important;
    border-color: var(--color-primary) !important;
    color: white !important;
}

.btn-primary:hover:focus {
    color: black !important;
    background-color: whitesmoke !important;
    border-color: black !important;
}

.btn-primary:focus-visible {
    color: black !important;
    background-color: whitesmoke !important;
    border-color: black !important;
}

/*BUTTONS CLASS END*/

.dropdown-submenu {
    position: relative;
}

.dropdown-submenu .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -1px;
}

[data-bs-theme="dark"] {
    --bs-primary: #0d6efd;
    /* Example primary color adjustment for dark mode */
    --bs-secondary: #6c757d;
    /* Example secondary color adjustment for dark mode */
    --bs-body-color: #ffffff;
    /* Example body text color for dark mode */
    --bs-body-bg: #121212;
    /* Example body background color for dark mode */
    /* Add more custom styles as needed */
}

@media (prefers-color-scheme: dark) {
    html {
        --bs-body-color: #ffffff;
        --bs-body-bg: #121212;
        /* Add more custom styles as needed */
    }
}

.dropdown-item:hover>.dropdown-menu {
    display: block;
    margin-left: 90%;
    margin-top: -17%;
}

.nav-item.active>a {
    background-color: gray;
    border-radius: 5px;
    color: black;
}

.border-gray {
    border-color: gray;
}

.fixed-column {
    position: sticky;
    left: 0;
    z-index: 1;
    background-color: white;
}

/* Format table to be scrollable*/
.table-responsive.t-xy-scrollable {
    overflow-x: auto;
    overflow-y: auto;
    height: 300px;
    /* adjust the height to your needs */
}

/* Format table to have sticky columns */
.table-responsive.t-xy-scrollable thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background-color: #f0f0f0;
    /* optional */
}

#loading {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
}

.loadingHidden {
    display: none;
}

.LoadingVisible {
    display: block;
}

.s-text * {
    font-size: 12px;
}

.loader-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loader {
    border: 8px solid #f3f3f3;
    border-radius: 50%;
    border-top: 8px solid #3498db;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

#content {
    display: none;
    /* Hide content until fully loaded */
}

.navbgColor {
    background-color: #000066;
}

textarea {
    resize: none;
}

th,
td {
    padding: 8px;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sticky-head thead {
    position: sticky;
    top: 0;
    z-index: 1;
    background: whitesmoke;
}

.hTitle {
    color: black;
    /* Set the text color to black */
    text-shadow: -1px -1px 0 #f5f5dc,
        /* Top-left shadow */
        1px -1px 0 #f5f5dc,
        /* Top-right shadow */
        -1px 1px 0 #f5f5dc,
        /* Bottom-left shadow */
        1px 1px 0 #f5f5dc;
    /* Bottom-right shadow */
}

.form-control-readonly {
    background-color: #e9ecef;
    /* Matches Bootstrap's readonly background */
    pointer-events: none;
    /* Makes it non-interactive */
    caret-color: transparent;
    /* Removes the typing cursor */
}

/* Password toggle */
.password-container {
    display: flex;
    align-items: center;
}

.password-container input {
    flex: 1;
    padding: 8px;
    font-size: 16px;
}

.password-container .toggle-password {
    cursor: pointer;
    padding: 8px;
    float: right;
    margin-top: -38px;
    margin-left: 180px;
}

.toggle-password svg {
    width: 24px;
    height: 24px;
}

.btn-primary:disabled,
.btn-primary.disabled {
    background-color: #B0B9BF !important;
    /* Muted and desaturated */
    border-color: #98A2A8 !important;
    /* Slightly darker border */
    color: #E0E6EA !important;
    /* Light gray text */
    opacity: 0.65 !important;
    /* Keeps it looking disabled */
    cursor: not-allowed !important;
    /* Ensures the cursor reflects the disabled state */
}

/* Custom styles for DataTables */
/* Custom blue background for selected row */
table.dataTable tbody tr.selected>* {
    box-shadow: inset 0 0 0 9999px #679bb1 !important;
    color: white !important;
    /* Optional: white text for contrast */
}

/* Target the active pagination button */
.page-item.active .page-link {
    background-color: #679bb1 !important;
    color: #ffffff !important;
    border-color: #679bb1 !important;
}

.page-item .page-link {
    color: #214554;
}

.dropdown-item.text-dark:active {
    color: white !important;
}

.dropdown-toggle.text-dark:active {
    color: white !important;
}

a.dropdown-toggle {
    color: var(--bs-body-color) !important;
}

table.dataTable thead th {
    background-color: #214554 !important;
    color: white !important;
}

.form-section {
    border: 1px solid #dee2e6;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    background-color: #f8f9fa;
}

.section-title {
    font-weight: 600;
    border-bottom: 2px solid #dee2e6;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
}

.modal-xl-custom {
    max-width: 900px;
}

/*.bg-body-secondary {*/
/*border rounded p-4 mb-4 bg-body-secondary */
/*background-color: var(--color-bg-secondary) !important;
}*/
.bg-primary {
    background-color: #214554 !important;
}


/* For Menu handler */
/* === Base dropdown styles === */
.dropdown-menu {
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    padding: 0.5rem;
}

.dropdown-item {
    border-radius: 6px;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s ease;
}

.dropdown-item:hover {
    background-color: #f1f5f9;
}

/* === Submenu positioning (desktop) === */
.dropend .dropdown-menu {
    top: 0;
    left: 100%;
    margin-left: 0.1rem;
}

/* === Desktop: scrollable dropdown, floating === */
@media (min-width: 769px) {
    .navbar .dropdown>.dropdown-menu {
        position: absolute;
        /* prevent pushing page */
        max-height: 70vh;
        /* limit to viewport */
        overflow-y: auto;
        /* vertical scroll only */
        overflow-x: hidden;
    }

    /* Submenus should fly out, not be clipped */
    .dropdown-menu .dropdown-menu {
        position: absolute;
        top: 0;
        left: 100%;
        margin-left: 0.1rem;
        max-height: none;
        overflow: visible;
    }
}

/* === Mobile: menus stack naturally === */
@media (max-width: 768px) {

    .dropend .dropdown-menu,
    .dropdown-hover .dropdown-menu {
        position: static;
        /* stack in flow */
        margin-left: 0;
        top: auto;
        left: auto;
        box-shadow: none;
    }

    .dropdown-menu {
        max-height: 60vh;
        /* shorter height for small screens */
        overflow-y: auto;
        /* scroll if too long */
    }
}

/* === Hover trigger for submenu (desktop) === */
.dropdown-hover:hover>.dropdown-menu {
    display: block;
}

.dropdown-hover .dropdown-menu {
    display: none;
    position: absolute;
}

/* For Menu handler End */



label.required::after {
    content: " *";
    color: red;
}

#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    overflow: hidden;
}

#overlay img {
    max-width: none;
    /* allow bigger than container when zoomed */
    max-height: none;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    transition: transform 0.2s ease-in-out;
    cursor: grab;
    z-index: 1;
    position: relative;
}

#overlay img.dragging {
    cursor: grabbing;
    transition: none !important;
    /* disable delay during drag */
}

.overlay-toolbar {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 2;
}

.preview-img {
    max-height: 200px;
    cursor: pointer;
    object-fit: contain;
}

/* Floating draggable button */
.drag-btn {
    position: fixed;
    top: 85%;
    left: 0;
    width: 30px;
    height: 30px;
    background: #0d6efd;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0 8px 8px 0;
    cursor: grab;
    z-index: 1052;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    opacity: 0.1;
    /* transparent by default */
    transition: background 0.2s, opacity 0.3s;
}

.drag-btn:hover {
    opacity: 1;
    /* fully visible on hover */
    background: #0b5ed7;
    /* slightly darker blue */
}

.drag-btn:active {
    cursor: grabbing;
}

/* Animate offcanvas sliding */
.offcanvas-start {
    transition: transform 0.4s ease-in-out;
    width: 420px;
    /* wider for contacts + chat */
}

/* Chat panel layout */
.chat-container {
    display: flex;
    height: 100%;
    gap: 10px;
    overflow: hidden;
    font-family: inherit;
    /* CHANGED: Keep page's default font */
}

/* Contacts list */
.contacts {
    width: 140px;
    min-width: 140px;
    border-right: 1px solid #dee2e6;
    overflow-y: auto;
    transition: width 0.3s ease, min-width 0.3s ease;
    display: flex;
    flex-direction: column;
}

.contacts.collapsed {
    width: 0;
    min-width: 0;
    border: none;
    overflow: hidden;
}

.contact-search {
    padding: 5px;
    border-bottom: 1px solid #dee2e6;
}

.contact {
    padding: 10px;
    cursor: pointer;
    border-radius: 6px;
}

.contact:hover,
.contact.active {
    background: #e9ecef;
}

/* Chat messages section */
.chat-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    transition: flex 0.3s ease;
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.messages {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    /* CHANGED: stack messages vertically */
}

/* Message bubbles */
.message {
    display: inline-block;
    padding: 8px 12px;
    margin: 6px 0;
    border-radius: 16px;
    line-height: 1.4;
    word-wrap: break-word;
    /* Break long words */
    white-space: pre-wrap;
    /* Keep line breaks */
    max-width: 75%;
    /* Prevent stretching too wide */
    font-family: inherit;
    /* CHANGED: keep consistent font */
    text-align: left;
    /* CHANGED: prevent auto-centering */
}

/* User message (blue, right side) */
.message.user {
    background: #007bff;
    color: white;
    align-self: flex-end;
    /* stays right */
    border-bottom-right-radius: 4px;
    text-align: left;
    /* CHANGED: don't center text */
}

/* Bot message (gray, left side) */
.message.bot {
    background: #f1f1f1;
    color: #222;
    align-self: flex-start;
    /* stays left */
    border-bottom-left-radius: 4px;
    text-align: left;
    /* CHANGED: don't center text */
}

/* Chat input */
.chat-input {
    display: flex;
    gap: 5px;
    margin-top: 10px;
}

.chat-input input {
    flex: 1;
}

/* Typing indicator */
.message.typing {
    display: flex;
    gap: 4px;
    padding: 6px 10px;
    background: #f0f0f0;
    border-radius: 12px;
    max-width: fit-content;
}

.message.typing .dot {
    width: 6px;
    height: 6px;
    background: #555;
    border-radius: 50%;
    animation: blink 1.4s infinite both;
}

.message.typing .dot:nth-child(2) {
    animation-delay: 0.2s;
}

.message.typing .dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes blink {

    0%,
    80%,
    100% {
        transform: scale(0);
    }

    40% {
        transform: scale(1);
    }
}

@media (max-width: 768px) {
    .chart-export-btn {
        padding: 0.25rem 0.5rem;
        /* smaller padding */
        font-size: 0.75rem;
        /* smaller text */
    }
}

.marquee {
    position: fixed;
    /* bottom: 0; */
    top:0;
    width: 100%;
    color: white;
    padding: 8px 0;
    font-weight: bold;
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
    z-index: 9999;
}

.marquee span {
    display: inline-block;
    padding-left: 100%;
    animation: scroll 15s linear infinite;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* Variants */
.marquee-danger {
    background: rgba(255, 0, 0, 0.2);
    box-shadow: 0 -2px 10px rgba(255, 0, 0, 0.6);
}

.marquee-success {
    background: rgba(0, 128, 0, 0.2);
    box-shadow: 0 -2px 10px rgba(0, 128, 0, 0.6);
}

.marquee-warning {
    background: rgba(255, 165, 0, 0.2);
    box-shadow: 0 -2px 10px rgba(255, 165, 0, 0.6);
}

.marquee-info {
    background: rgba(0, 123, 255, 0.2);
    box-shadow: 0 -2px 10px rgba(0, 123, 255, 0.6);
}
.solid-logo {
    border: 1px solid white;
}