/* =================== GENERAL STYLING =================== */
body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    transition: background-color 0.3s, color 0.3s;
}

.content {
    margin-top: 80px;
    margin-bottom: 80px;
    padding: 20px;
}

/* =================== THEME MODES =================== */
body.light-mode {
    background-color: #fff;
    color: black;
}

body.dark-mode {
    background-color: #222;
    color: white;
}

/* =================== NAVBAR =================== */
.navbar-glass {
    /*background: linear-gradient(to right, rgba(8, 137, 243, 0.6), rgba(110, 231, 198, 0.6));*/
    backdrop-filter: blur(10px);
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    height: 6%;
}

/* Navbar links */
.navbar-nav .nav-link {
    display: flex;
    position: relative;
    transition: all 0.3s ease;
    color: inherit;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    background: rgba(0, 123, 255, 0.7);
    color: #fff;
    border-radius: 5px;
    transform: translateY(-4px);
    box-shadow: 0 8px 15px rgba(0, 123, 255, 0.7);
    /*text-shadow: 0 0 10px rgba(0, 123, 255, 0.9);*/
}

.navbar-nav .nav-link.active {
    background: rgba(0, 123, 255, 0.9);
}

/* =================== SIDEBAR =================== */
.sidebar {
    width: 250px;
    position: fixed;
    top: 6%;
    bottom: 6%;
    left: 0;
    background: linear-gradient(to bottom, rgba(8, 137, 243, 0.6), rgba(110, 231, 198, 0.6));
    backdrop-filter: blur(10px);
    padding-top: 20px;
    border-right: 2px solid #ddd;
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.3);
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
}

/* Sidebar links */
.sidebar a {
    display: block;
    padding: 15px;
    font-size: 18px;
    color: black;
    text-decoration: none;
}

.sidebar a:hover {
    background: #007bff;
}

/* Sidebar Toggle */
.sidebar-toggle {
    cursor: pointer;
    color: white;
    font-size: 24px;
}

/* =================== SETTINGS PANEL =================== */
.settings-panel {
    width: 250px;
    position: fixed;
    top: 14%;
    bottom: 6%;
    right: 0; /* Initially hidden */
    background: linear-gradient(to top, rgba(8, 137, 243, 0.6), rgba(110, 231, 198, 0.6));
    backdrop-filter: blur(10px);
    padding: 20px;
    border-left: 2px solid #ddd;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    z-index: 1020;
    min-height: 100vh;
}

.settings-panel-toogle {

}

.settings-panel.open {
    right: 0;
}

/* Settings Panel Header */
.settings-panel h5 {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 20px;
}

/* Settings Panel Items */
.settings-panel ul {
    padding-left: 0;
}

.settings-panel li {
    margin-bottom: 20px;
}

.settings-panel label {
    font-weight: 600;
}

.settings-panel .form-control,
.settings-panel .form-select {
    width: 100%;
}

.settings-panel .form-check-label {
    font-weight: normal;
}

/* =================== RESET BACKGROUND BUTTON =================== */
#resetBg {
    margin-top: 10px;
    padding: 5px 15px;
    border: none;
    background: red;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: background 0.2s;
}

#resetBg:hover {
    background: darkred;
}

/* =================== BACKGROUND IMAGE =================== */
body.custom-bg {
    background-image: url('');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* =================== IMAGE SELECTION GRID =================== */
#bgImageSelector {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
    margin-top: 5px;
}

.image-option {
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease;
    border: 2px solid transparent;
    border-radius: 10px;
    padding: 2px;
}

.image-option img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    transition: transform 0.3s ease;
    aspect-ratio: 1;
}

/* Hover Effects */
.image-option:hover {
    transform: scale(1.05);
    border-color: #007bff;
}

.image-option:hover img {
    transform: scale(1.1);
}

/* Active State */
.image-option.selected {
    border-color: #007bff;
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.7);
}

/* Small Preview Image */
.bg-preview {
    height: 20px;
    width: 20px;
}

/* =================== FOOTER =================== */
.footer-text {
    font-size: 16px;
    color: white;
    height: 6%;
}

.bottom-nav {
    height: 6%;
}

/* =================== FONT AND ICON STYLING =================== */
select {
    font-family: 'Poppins', sans-serif;
}

.material-icons {
    margin-left: 2px;
    margin-right: 2px;
}

/* =================== DARK MODE FONT STYLING =================== */
body.dark-mode .navbar-nav .nav-link,
body.dark-mode .sidebar a,
body.dark-mode .settings-panel a {
    color: white !important;
}

/* =================== LIGHT MODE FONT STYLING =================== */
body.light-mode .navbar-nav .nav-link,
body.light-mode .sidebar a,
body.light-mode .settings-panel a {
    color: black !important;
}

/* Dark Mode Sidebar Links */
body.dark-mode .sidebar a,
body.dark-mode .settings-panel a {
    color: white;
}

/* Light Mode Sidebar Links */
body.light-mode .sidebar a,
body.light-mode .settings-panel a {
    color: black;
}

/* =================== VISITOR COUNTER IMAGE =================== */
.counterimg {
    height: 30px;
}


:root {
    --background: #ffffff;
    --navbar-width: 360px;
    --navbar-width-min: 80px;
    --navbar-dark-primary: inherit;
    --navbar-dark-secondary: inherit;
    --navbar-light-primary: inherit;
    --navbar-light-secondary: inherit;
}

#nav-toggle:checked ~ #nav-header {
    width: calc(var(--navbar-width-min));
}

#nav-toggle:checked ~ #nav-content, #nav-toggle:checked ~ #nav-footer {
    width: var(--navbar-width-min);
}

#nav-toggle:checked ~ #nav-header #nav-title {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.1s;
}

#nav-toggle:checked ~ #nav-header label[for=nav-toggle] {
    left: calc(50%);
    transform: translate(-50%);
}

#nav-toggle:checked ~ #nav-header #nav-toggle-burger {
    background: var(--navbar-light-primary);
}

#nav-toggle:checked ~ #nav-header #nav-toggle-burger:before, #nav-toggle:checked ~ #nav-header #nav-toggle-burger::after {
    width: 16px;
    background: var(--navbar-light-secondary);
    transform: translate(0, 0) rotate(0deg);
}

#nav-toggle:checked ~ #nav-content .nav-button span {
    opacity: 0;
    transition: opacity 0.1s;
}

#nav-toggle:checked ~ #nav-content .nav-button .fas {
    min-width: calc(100% - 16px);
}

#nav-toggle:checked ~ #nav-footer #nav-footer-avatar {
    margin-left: 0;
    left: 50%;
    transform: translate(-50%);
}

#nav-toggle:checked ~ #nav-footer #nav-footer-titlebox, #nav-toggle:checked ~ #nav-footer label[for=nav-footer-toggle] {
    opacity: 0;
    transition: opacity 0.1s;
    pointer-events: none;
}

#nav-bar {
    position: fixed;
    background: var(--navbar-dark-primary);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /*overflow: hidden;*/
    user-select: none;
    top: 14%;
    bottom: 6%;
    left: 0;
    background: linear-gradient(to bottom, rgba(8, 137, 243, 0.9), rgba(110, 231, 198, 0.9));
    backdrop-filter: blur(10px);
    border-right: 2px solid #ddd;
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.3);
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    z-index: 999;
    min-height: 100vh;
}

#nav-bar hr {
    margin: 0;
    position: relative;
    left: 16px;
    width: calc(100% - 32px);
    border: none;
    border-top: solid 1px var(--navbar-dark-secondary);
}

#nav-bar a {
    color: inherit;
    text-decoration: inherit;
}

#nav-bar input[type=checkbox] {
    display: none;
}

#nav-header {
    position: relative;
    width: var(--navbar-width);
    min-height: 7.0vh;
    z-index: 2;
    display: flex;
    align-items: center;
    transition: width 0.2s;
    background: linear-gradient(to bottom, rgba(8, 137, 243, 0.6), rgba(110, 231, 198, 0.6));
}

#nav-header hr {
    position: absolute;
    bottom: 0;
}

#nav-title {
    font-size: 1.5rem;
    transition: opacity 1s;
}

label[for=nav-toggle] {
    position: absolute;
    right: 0;
    width: 3rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

#nav-toggle-burger {
    position: relative;
    width: 16px;
    height: 2px;
    /*background: var(--navbar-dark-primary);*/
    border-radius: 99px;
    transition: background 0.2s;
}

#nav-toggle-burger:before, #nav-toggle-burger:after {
    content: "";
    position: absolute;
    top: -6px;
    width: 10px;
    height: 2px;
    background: var(--navbar-light-primary);
    border-radius: 99px;
    transform: translate(2px, 8px) rotate(30deg);
    transition: 0.2s;
}

#nav-toggle-burger:after {
    top: 6px;
    transform: translate(2px, -8px) rotate(-30deg);
}

#nav-content {
    padding: 16px 0;
    position: relative;
    flex: 1;
    width: var(--navbar-width);
    overflow-x: hidden;
    transition: width 0.2s;
    overflow-y: auto !important;
    scrollbar-width: thin !important;

}

#nav-content::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

#nav-content::-webkit-scrollbar-thumb {
    border-radius: 99px;
    background-color: #D62929;
}

#nav-content::-webkit-scrollbar-button {
    height: 16px;
}

/* Default (Light Mode) */
#nav-content-highlight {
    position: absolute;
    left: 16px;
    top: -70px;
    width: calc(100% - 16px);
    height: 54px;
    background: var(--background);
    background-attachment: fixed;
    border-radius: 16px 0 0 16px;
    transition: top 0.2s, background-color 0.3s;
}

/* Dark Mode */
body.dark-mode #nav-content-highlight {
    background: #2c3e50; /* Darker background for contrast */
}

/* Light Mode */
body.light-mode #nav-content-highlight {
    background: #ffffff; /* Lighter background */
}

#nav-content-highlight:before, #nav-content-highlight:after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 100%;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    box-shadow: 16px 16px var(--background);
}

#nav-content-highlight:after {
    top: 100%;
    box-shadow: 16px -16px var(--background);
}

.nav-button {
    position: relative;
    margin-left: 16px;
    height: 54px;
    display: flex;
    align-items: center;
    color: var(--navbar-light-secondary);
    direction: ltr;
    cursor: pointer;
    z-index: 1;
    transition: color 0.2s;
}

.nav-button span {
    transition: opacity 1s;
}

.nav-button .fas {
    transition: min-width 0.2s;
}

.nav-button:nth-of-type(1):hover {
    color: var(--navbar-dark-primary);
}

.nav-button:nth-of-type(1):hover ~ #nav-content-highlight {
    top: 16px;
}

.nav-button:nth-of-type(2):hover {
    color: var(--navbar-dark-primary);
}

.nav-button:nth-of-type(2):hover ~ #nav-content-highlight {
    top: 70px;
}

.nav-button:nth-of-type(3):hover {
    color: var(--navbar-dark-primary);
}

.nav-button:nth-of-type(3):hover ~ #nav-content-highlight {
    top: 124px;
}

.nav-button:nth-of-type(4):hover {
    color: var(--navbar-dark-primary);
}

.nav-button:nth-of-type(4):hover ~ #nav-content-highlight {
    top: 178px;
}

.nav-button:nth-of-type(5):hover {
    color: var(--navbar-dark-primary);
}

.nav-button:nth-of-type(5):hover ~ #nav-content-highlight {
    top: 232px;
}

.nav-button:nth-of-type(6):hover {
    color: var(--navbar-dark-primary);
}

.nav-button:nth-of-type(6):hover ~ #nav-content-highlight {
    top: 286px;
}

.nav-button:nth-of-type(7):hover {
    color: var(--navbar-dark-primary);
}

.nav-button:nth-of-type(7):hover ~ #nav-content-highlight {
    top: 340px;
}

.nav-button:nth-of-type(8):hover {
    color: var(--navbar-dark-primary);
}

.nav-button:nth-of-type(8):hover ~ #nav-content-highlight {
    top: 394px;
}

#nav-bar .fas {
    min-width: 3rem;
    text-align: center;
}

#nav-footer {
    position: relative;
    width: var(--navbar-width);
    height: 54px;
    background: var(--navbar-dark-secondary);
    /*border-radius: 16px;*/
    display: flex;
    flex-direction: column;
    z-index: 2;
    transition: width 0.2s, height 0.2s;
}

#nav-footer-heading {
    position: relative;
    width: 100%;
    height: 54px;
    display: flex;
    align-items: center;
}

#nav-footer-avatar {
    position: relative;
    margin: 11px 0 11px 16px;
    left: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    transform: translate(0);
    transition: 0.2s;
}

#nav-footer-avatar img {
    height: 100%;
}

#nav-footer-titlebox {
    position: relative;
    margin-left: 16px;
    width: 10px;
    display: flex;
    flex-direction: column;
    transition: opacity 1s;
}

#nav-footer-subtitle {
    color: var(--navbar-light-secondary);
    font-size: 0.6rem;
}

#nav-toggle:not(:checked) ~ #nav-footer-toggle:checked + #nav-footer {
    height: 30%;
    min-height: 54px;
}

#nav-toggle:not(:checked) ~ #nav-footer-toggle:checked + #nav-footer label[for=nav-footer-toggle] {
    transform: rotate(180deg);
}

label[for=nav-footer-toggle] {
    position: absolute;
    right: 0;
    width: 3rem;
    height: 100%;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s, opacity 0.2s;
}

#nav-footer-content {
    margin: 0 16px 16px 16px;
    border-top: solid 1px var(--navbar-light-secondary);
    padding: 16px 0;
    color: var(--navbar-light-secondary);
    font-size: 0.8rem;
    overflow: auto;
}

#nav-footer-content::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

#nav-footer-content::-webkit-scrollbar-thumb {
    border-radius: 99px;
    background-color: #D62929;
}

/* Default Styling */
#nav-toggle-label {
    position: absolute;
    right: -50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    z-index: 10;
    visibility: hidden;

    /* Default Light Mode Styles */
    height: 50px;
    padding: 0 15px;
    background: rgba(0, 0, 0, 0.8); /* Dark background for visibility */
    color: white;
    border: 2px solid black;
    border-left: none; /* Removes left-side border */
    border-radius: 0px 50px 50px 0px;
    transition: background 0.3s, transform 0.5s ease-in-out, border 0.3s;
}

/* Hover Effect */
#nav-toggle-label:hover {
    background: rgba(0, 0, 0, 1);
    transform: scale(1.05);
}

/* Dark Mode Styling */
body.dark-mode #nav-toggle-label {
    background: rgba(255, 255, 255, 0.2); /* Light background for visibility */
    border: 2px solid white;
    color: white;
}

/* Light Mode Styling */
body.light-mode #nav-toggle-label {
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid black;
    color: white;
}

/* No Border & No Background When Icon Changes */
body.dark-mode #nav-toggle:checked ~ #nav-toggle-label,
body.light-mode #nav-toggle:checked ~ #nav-toggle-label {
    background: none;
    border: none;
    color: inherit; /* Uses text color based on mode */
    transform: scale(1.1);
}

#nav-toggle-icon {
    font-size: 35px; /* Adjust size as needed */
    font-weight: bolder;
    transition: transform 0.5s ease-in-out;
}

/* Change icon when sidebar is toggled */
#nav-toggle:checked ~ #nav-header #nav-toggle-icon {
    transform: rotate(180deg);
    content: "close";
}


.mt-6 {
    margin-top: 3.5rem !important;
}

.mt-7 {
    margin-top: 4.0rem !important;
}

.mt-8 {
    margin-top: 4.5rem !important;
}

.mt-9 {
    margin-top: 5rem !important;
}

.mt-10 {
    margin-top: 5.5rem !important;
}


/*Mail Loadee*/


.ip {
    width: 16em;
    height: 8em;
}

.ip__track {
    stroke: hsl(var(--hue), 90%, 90%);
    transition: stroke var(--trans-dur);
}

.ip__worm1,
.ip__worm2 {
    animation: worm1 2s linear infinite;
}

.ip__worm2 {
    animation-name: worm2;
}

/* Dark theme */
@media (prefers-color-scheme: dark) {
    :root {
        --bg: hsl(var(--hue), 90%, 5%);
        --fg: hsl(var(--hue), 90%, 95%);
    }

    .ip__track {
        stroke: hsl(var(--hue), 90%, 15%);
    }
}

/* Animation */

@keyframes worm1 {
    from {
        stroke-dashoffset: 0;
    }
    50% {
        animation-timing-function: steps(1);
        stroke-dashoffset: -358;
    }
    50.01% {
        animation-timing-function: linear;
        stroke-dashoffset: 358;
    }
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes worm2 {
    from {
        stroke-dashoffset: 358;
    }
    50% {
        stroke-dashoffset: 0;
    }
    to {
        stroke-dashoffset: -358;
    }
}


.metric_card {
    min-height: 598px;
    max-height: 600px;
    overflow-y: auto;
    overflow-x: auto;
}

.cardClick {
    color: blue !important;
    text-decoration: none;
    cursor: pointer;

}

table.table.table-bordered tr.ddsc-highlight > td {
    background-color: #fff8b3 !important;
}


#searchByNameBtn,
#searchByCodeBtn {
    opacity: 0.6;          /* faded look by default */
    transition: opacity 0.3s, transform 0.2s;
}

#searchByNameBtn.active,
#searchByCodeBtn.active {
    opacity: 1;            /* fully visible */
    transform: scale(1.05); /* slight zoom for emphasis */
    font-weight: bold;
}


/* Hide bottom scrollbar */
.dataTables_scrollBody::-webkit-scrollbar {
    height: 0px;
}

/* Show top scrollbar */
.dataTables_scrollHead {
    overflow-x: auto !important;
}

/* Prevent double scrollbars */
.dataTables_scrollBody {
    overflow-x: hidden !important;
}

/* Style top scrollbar */
.dataTables_scrollHead::-webkit-scrollbar {
    height: 8px;
}
.dataTables_scrollHead::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}
.dataTables_scrollHead::-webkit-scrollbar-thumb:hover {
    background: #555;
}


@media (min-width: 1279px) and (max-width: 1536px) {
    .hide-at-1536 {
        width: 532px;
        /* Height is dynamic to the content but can be set if needed */
    }
}








:root{
    --dark-teal:#0f5560;
    --mid-teal:#1b6f7a;
    --light-teal:#2a9aa5;
    --hex-outline:#e6eef1;
    --bg:#f4f7f9;
}
* {box-sizing:border-box}

/* Row with logos and stripes */
.bar {
    position: relative;
    display: flex;
    gap: 16px;
    justify-content: space-between;
}

/* Hex logo holders (left/right) */
.hex {
    /* Custom properties */
    --size: 110px;

    /* Box model and layout */
    width: var(--size);
    display: grid;
    place-items: center;
    padding: 0px;
    margin: 0px;
    z-index: 999;
    /* Visual styling */
    background: #fff;
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    box-shadow:
            0 5px 10px rgba(0, 0, 0, 0.2),
            0 10px 20px rgba(0, 0, 0, 0.15),
            0 20px 40px rgba(0, 0, 0, 0.1),
            inset 0 2px 4px rgba(255, 255, 255, 0.3),
            inset 0 -2px 4px rgba(0, 0, 0, 0.2);
}

.hex img {
    max-width:95%;
    height:auto;
    display:block
}

.top-strip {
    background: var(--dark-teal);
    color: #fff;
    padding: 5px 25px 5px 90px;
    border-radius: 6px;
    width: 75%;
    position: absolute;
    left: 4%;
    top: 0;
    clip-path: polygon(0% 0%, 100% 0%, 98% 100%, 2% 100%);
    text-align: start;
}

.bottom-strip {
    background:var(--light-teal);
    color:#fff;
    padding: 5px 90px 5px 25px;
    border-radius:6px;
    width: 75%;
    position: absolute;
    right: 4%;
    top: 50px;
    clip-path: polygon(2% 0%, 98% 0%, 100% 100%, 0% 100%);
    text-align: end;
}

.title_bar {
    margin:0;
    font-weight:800;
    letter-spacing:.06em;
    text-transform:uppercase;
    /*font-size: clamp(14px, 2.2vw, 26px);*/
    font-size: 1.5vw;
    text-wrap: nowrap;
}




/* Custom background color with a gradient */
.navbar-custom {
    background: #358d50 !important;
}

/* Styling for the circular icon background */
.icon-circle {
    background-color: #e0e0e0;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease-in-out;
}

.icon-circle:hover {
    transform: scale(1.1);
}

/* Styling for the separators between menu items */
.menu-separator {
    color: #718096;
    font-size: 1.5rem;
    margin: 0 10px;
}

/* Styling for the main menu items */
.nav-item-custom {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #cbd5e0;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    transition: color 0.3s ease-in-out;
}

.nav-item-custom:hover span {
    color: #ffffff;
}

/* Premium icon color (now using gradient in HTML) */
.premium-icon {
    /* Styles are now applied directly in the HTML for more control */
}

.card_stat_title{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 700;
    color: white !important;
    background-color: #007bff;
    padding: 6px;
    border-radius: 12px;
}