﻿.modal-backdrop.blur-backdrop {
    backdrop-filter: blur(6px);
    background-color: rgba(0, 0, 0, 0.3);
}

/* =========================
   Variables
   ========================= */
:root {
    --sidebar-w: 250px;
    --sidebar-min-w: 60px;
    --header-h: 56px;
}

#sidebar {
    background-color: #002C53;
}

.sidebar {
    width: 250px;
}

.content {
    margin-left: 250px;
    padding: 0 20px !important;
}

.nav {
    font-size: 13px;
}

.footer {
    /*margin: 5px 0 0 250px !Important;*/
}

.page-header b {
    font-size: 16px !important;
    line-height: 20px !important;
}

.page-header {
    font-size: 16px !important;
    text-transform: uppercase;
    letter-spacing: 0.9px;
    margin: 5px -20px 10px !important;
    padding: 10px 15px !important;
    background: #f3f4f5 !important
}

.btn {
    padding: 5px 10px !important;
    font-size: 11.5px !important;
    text-transform: capitalize !important;
}

a {
    text-decoration: none;
    background-color: transparent;
}

*, ::after, ::before {
    box-sizing: border-box;
}

.modal-content {
    margin: 20px 0px !important;
}

.modal-header {
    padding: 12px !important;
}


.h4, h4 {
    font-size: 15px !important;
    letter-spacing: 0.5px;
}

.modal-title {
    font-weight: 700;
}
#modal-dialog {
    padding-bottom: 20px;
} 

.ls-25 {
    letter-spacing: 0.25px;
}

.table thead tr th {
    background-color: #f3f6f9 !important;
    color: #000000 !important;
}

table.dataTable thead tr th.sorting_asc:after {
    color: #2d353c !important;
}

table.dataTable thead tr th.sorting:after {
    color: #b7bdc2 !important;
}

th.sorting_desc:after {
    color: #2d353c !important;
}

.table td, .table th, .table tbody tr td {
    padding: 10px 5px !important;
}

.table thead tr th {
    font-weight: 600;
    border-bottom: 1px solid #b8c1ca;
    font-size: 12px;
    letter-spacing: 0.25px;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: #fbfbfb;
}

.dropdown-item {
    font-weight: 500 !important;
}

.dropdownwidth {
    min-width: 7rem !important;
}

body {
    letter-spacing: 0.25px !important;
}

.m-t-7 {
    margin-top: 7px;
}
/* =========================
   Header layout split
   ========================= */
#header.header {
    display: flex;
    height: var(--header-h);
    padding: 0;
    overflow: visible; /* allow dropdown to show */
}

/* Left header (sidebar top area) */
#header .header-left {
    width: var(--sidebar-w);
    min-width: var(--sidebar-w);
    max-width: var(--sidebar-w);
    flex: 0 0 var(--sidebar-w);
    display: flex;
    align-items: center;
    background: #002c53;
    padding: 0 10px;
    overflow: hidden;
}

    /* Brand */
    #header .header-left .brand {
        display: flex;
        align-items: center;
        gap: 10px;
        text-decoration: none;
        color: #fff;
        width: 100%;
    }

    #header .header-left .brand-logo {
        height: 40px;
    }

    #header .header-left .brand-text {
        font-weight: 600;
        white-space: nowrap;
    }

/* Right header (topbar area) */
#header .header-right {
    width: calc(100% - var(--sidebar-w));
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    background: #fff;
    padding: 0 12px;
    overflow: visible; /* dropdown must not be clipped */
    position: relative; /* anchor dropdown */
    z-index: 1030;
}

/* =========================
   Topbar toggle (FontAwesome icons)
   ========================= */
#header .topbar-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    text-decoration: none;
    margin-right: 10px;
    cursor: pointer;
    position: relative;
    z-index: 2100;
}

    /* Icon visibility logic */
    #header .topbar-toggle .toggle-icon {
        font-size: 18px;
        color: #348fe2;
        display: none;
    }

/* Expanded sidebar => show hamburger */
.page-container:not(.page-sidebar-minified) #header .topbar-toggle .toggle-open {
    display: inline-block;
}

/* Minified sidebar => show double-right */
.page-sidebar-minified #header .topbar-toggle .toggle-close,
.sidebar-minified #header .topbar-toggle .toggle-close,
.page-sidebar-minify #header .topbar-toggle .toggle-close,
.sidebar-minify #header .topbar-toggle .toggle-close {
    display: inline-block;
}

/* Center fullscreen icon */
#header .fullscreen-btn {
    display: flex;
    align-items: center; /* vertical center */
    justify-content: center; /* horizontal center */
    width: 48px; /* ensure square hit area */
    height: 48px;
}

/* =========================
   Navbar right alignment
   ========================= */
#header .header-right .navbar-nav.navbar-right {
    margin-left: auto !important;
    margin-right: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center;
    float: none !important;
    position: relative !important;
}

/* =========================
   User dropdown layout
   ========================= */
#header .navbar-user > a.dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    max-width: 260px;
    overflow: hidden;
    white-space: nowrap;
    cursor: pointer;
}

#header .navbar-user img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
}

#header .user-profile-info {
    min-width: 0;
    overflow: hidden;
}

#header .user-name,
#header .user-role {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Dropdown must be above everything */
#header .dropdown-menu {
    z-index: 2000 !important;
}

/* Hide dropdown caret ONLY in header user profile */
#header .header-right .navbar-user > a.dropdown-toggle::after {
    display: none !important;
}

#header .header-right .navbar-user .caret {
    display: none !important;
}

/* =========================
   Logo swap (desktop default)
   ========================= */
#header .brand-logo-lg {
    display: block !important;
    height: 65px !important;
    padding-left: 20px;
    padding-top: 5px;
}

#header .brand-logo-sm {
    display: none !important;
}

/* =========================
   Minified state (desktop)
   ========================= */
.page-sidebar-minified #header .header-left,
.sidebar-minified #header .header-left,
.page-sidebar-minify #header .header-left,
.sidebar-minify #header .header-left {
    width: var(--sidebar-min-w) !important;
    min-width: var(--sidebar-min-w) !important;
    max-width: var(--sidebar-min-w) !important;
    flex: 0 0 var(--sidebar-min-w) !important;
}

.page-sidebar-minified #sidebar,
.sidebar-minified #sidebar,
.page-sidebar-minify #sidebar,
.sidebar-minify #sidebar {
    width: var(--sidebar-min-w) !important;
}

/* header-right width when minified */
.page-sidebar-minified #header .header-right,
.sidebar-minified #header .header-right,
.page-sidebar-minify #header .header-right,
.sidebar-minify #header .header-right {
    width: calc(100% - var(--sidebar-min-w)) !important;
}

/* Big logo hidden, small logo shown when minified */
.page-sidebar-minified #header .brand-logo-lg,
.sidebar-minified #header .brand-logo-lg,
.page-sidebar-minify #header .brand-logo-lg,
.sidebar-minify #header .brand-logo-lg {
    display: none !important;
}

.page-sidebar-minified #header .brand-logo-sm,
.sidebar-minified #header .brand-logo-sm,
.page-sidebar-minify #header .brand-logo-sm,
.sidebar-minify #header .brand-logo-sm {
    display: block !important;
}

/* Fix profile block height to exactly match header */
#header .navbar-user > a.dropdown-toggle {
    height: var(--header-h);
    display: flex;
    align-items: center;
    padding: 0 12px;
    box-sizing: border-box;
}

/* Normalize text line-height */
#header .user-name {
    line-height: 1.2;
}

#header .user-role {
    line-height: 1.2;
    font-size: 12px;
}

/* Let fullscreen sit between toggle and profile */
#header .header-actions {
    display: flex;
    align-items: center;
    margin-left: 12px; /* gap from bars */
    margin-right: 12px; /* gap from profile */
}

/* header-right already flex */
#header .header-right {
    display: flex;
    align-items: center;
    border-bottom: 1.5px solid #9c9b9e5c;
}

/* spacer takes equal space on both sides */
#header .header-spacer {
    flex: 1;
}

/* keep fullscreen icon compact */
#header .header-actions {
    display: flex;
    align-items: center;
}

/* optional polish */
#header .fullscreen-btn {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    /* Disable hover effect for fullscreen button */
    #header .fullscreen-btn:hover {
        background: transparent !important;
        box-shadow: none !important;
    }

    /* Remove underline / text decoration for fullscreen button */
    #header .fullscreen-btn,
    #header .fullscreen-btn:hover,
    #header .fullscreen-btn:focus {
        text-decoration: none !important;
    }

        #header .fullscreen-btn:focus {
            outline: none !important;
        }

.form-control-lg {
    padding: .5rem 1rem;
    font-size: 12px !important;
    line-height: 1.5 !important;
}

/* =========================
   MOBILE RULES
   ========================= */
@media (max-width: 991.98px) {
    /* Hide desktop minify toggle on mobile */
    #header .topbar-toggle {
        display: none !important;
    }
    /* Header-left should look collapsed (icon centered) */
    #header .header-left {
        width: var(--sidebar-min-w) !important;
        min-width: var(--sidebar-min-w) !important;
        max-width: var(--sidebar-min-w) !important;
        flex: 0 0 var(--sidebar-min-w) !important;
        padding: 0 !important;
        justify-content: center !important;
        align-items: center !important;
    }

        #header .header-left .brand {
            width: 100%;
            height: 100%;
            justify-content: center;
            align-items: center;
        }
    /* mobile: show only small logo */
    #header .brand-logo-lg {
        display: none !important;
    }

    #header .brand-logo-sm {
        display: block !important;
        height: 28px;
        margin: 0 !important;
    }
    /* header-right takes remaining width */
    #header .header-right {
        width: calc(100% - var(--sidebar-min-w)) !important;
    }
    /* Mobile sidebar = off-canvas overlay (full width sidebar-w) */
    #sidebar {
        width: var(--sidebar-w) !important;
        position: fixed;
        top: var(--header-h);
        left: 0;
        height: calc(100vh - var(--header-h));
        transform: translateX(-100%);
        transition: transform .25s ease;
        z-index: 2000;
    }
    /* Open state */
    .page-sidebar-toggled #sidebar,
    .sidebar-toggled #sidebar {
        transform: translateX(0);
    }
    /* Content should not reserve space */
    #content {
        margin-left: 0 !important;
    }
    /* Ignore desktop "minified width" for sidebar on mobile */
    .page-sidebar-minified #sidebar,
    .sidebar-minified #sidebar,
    .page-sidebar-minify #sidebar,
    .sidebar-minify #sidebar {
        width: var(--sidebar-w) !important;
    }
}

@media (max-width: 991.98px) {
    #header .fullscreen-btn {
        display: none !important;
    }
}

@media (max-width: 767.98px) {
    .row {
        margin-bottom: 20px !important;
    }
}

/* Desktop only */
@media (min-width: 992px) {
    #header .topbar-toggle {
        display: inline-flex !important;
    }
}


/* Login Page Start */
/* Tooltip */
.tooltip > .tooltip-inner {
    font-size: 9px;
    max-width: 100% !important;
}

/* ====== Split login layout (Velzon style) ====== */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: linear-gradient(90deg, #2aa6a0 0%, #4f79ff 100%);
  /*  background: url('/assets/images/auth-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;*/
}


.auth-card {
    width: 100%;
    max-width: 800px;
    min-height: 400px;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    box-shadow: 0 18px 45px rgba(0,0,0,0.20);
}

/* LEFT panel */
.auth-left {
    width: 50%;
    position: relative;
    background-image: url('../images/login-cover.jpg');
    background-size: cover;
    background-position: center;
}

.auth-left-overlay {
    position: absolute;
    inset: 0;
    background: rgba(64, 105, 255, 0.3); /* increased overlay */
}

.auth-left-content {
    position: relative;
    z-index: 2;
    height: 100%;
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #fff;
}

.auth-brand {
    display: flex;
    gap: 12px;
    align-items: center;
}

.auth-brand-logo {
    width: 50%;
    height: auto;
    object-fit: contain;
}

/* Quote / slider */
.auth-quote {
    margin-top: auto;
    /* padding-bottom: 18px;*/
    max-width: 90%;
    opacity: 0.95;
}

.auth-quote-mark {
    font-size: 52px;
    line-height: 1;
    font-weight: 800;
    opacity: 0.9;
    color: #64f6d8;
}

.auth-quote-text {
    font-size: 14px;
    line-height: 1.5;
    font-weight: 500;
}

.auth-quote .carousel-inner {
    min-height: 90px;
}

.auth-quote-indicators {
    position: static;
    margin: 14px 0 0 0;
    justify-content: center;
}

    .auth-quote-indicators li {
        width: 34px;
        height: 3px;
        border-radius: 3px;
        opacity: .35;
        background-color: #fff;
        border: 0;
    }

    .auth-quote-indicators .active {
        opacity: 1;
    }

/* RIGHT panel */
.auth-right {
    width: 55%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}

.auth-right-inner {
    width: 100%;
    max-width: 520px;
    padding: 40px 40px 10px 40px;
}

.auth-title {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 4px;
    color: rgb(102 145 233);
    letter-spacing: 0.5px;
}

.auth-subtitle {
    font-size: 12px;
    color: #7a8599;
    margin-bottom: 18px;
}

.auth-label {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #2b2f38;
}

.auth-link {
    font-size: 12px;
    text-decoration: none !important;
    color: #878a99;
}

/* Password eye icon */
.password-field {
    position: relative;
}

    .password-field .fa {
        position: absolute;
        top: 50%;
        right: 12px;
        transform: translateY(-50%);
    }

input[type=password], input[type=text] {
    padding-right: 20px;
}

/* ====== Responsive ====== */
@media (max-width: 991.98px) {
    .auth-card {
        flex-direction: column;
    }

    .auth-left {
        width: 100%;
        min-height: 180px;
    }

    .auth-right {
        width: 100%;
    }

    .auth-right-inner {
        padding: 28px 20px;
    }
}

.auth-brand-footer {
    margin-top: 50px;
    text-align: center;
}

    .auth-brand-footer .auth-brand-title {
        font-size: 12px;
        font-weight: 600;
        color: #2b2f38;
        letter-spacing: .3px;
    }

    .auth-brand-footer .auth-brand-sub {
        font-size: 12px;
        color: #7a8599;
    }

    .auth-brand-footer a {
        color: #4f79ff;
        text-decoration: none;
    }

        .auth-brand-footer a:hover {
            text-decoration: underline;
        }

.password-guidelines-panel {
    border-left: 1px solid #e6e9ef; /* separator */
    padding-left: 20px;
}

    .password-guidelines-panel .guidelines-box {
        background: #f8fafc; /* light panel */
        border: 1px solid #e6e9ef;
        border-radius: 8px;
        padding: 14px 16px;
    }

    .password-guidelines-panel b {
        font-size: 15px;
    }

    .password-guidelines-panel small {
        color: #6c757d;
    }

.profile {
    margin-bottom: 10px;
}

.profile-header {
    position: relative;
    overflow: hidden;
}

    .profile-header .profile-header-cover {
        background-color: #524c4c;
    }

    .profile-header .profile-header-content {
        color: #fff;
        padding: 1rem;
        position: relative;
        background: linear-gradient(90deg, #2aa6a0 0%, #4f79ff 100%);
    }


@media (max-width: 768px) {
    .profile-header .profile-header-content {
        /*padding: 0.5rem;*/
        display: flex;
        align-items: center;
    }
}

.profile-header .profile-header-img {
    border: 0.25rem solid #fff;
    padding: 0;
    margin: 0;
    float: left;
    width: 120px;
    height: 120px;
    overflow: hidden;
    position: relative;
    border-radius: 0.25rem;
}

@media (max-width: 768px) {
    .profile-header .profile-header-img {
        margin: 0;
        width: 80px;
        height: 80px;
    }
}


.profile-header .profile-header-img img {
    max-width: 100%;
}


.profile-header .profile-header-info {
    margin-left: 100px;
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .profile-header .profile-header-img + .profile-header-info {
        margin-left: 20px;
    }
}

.profile-header .profile-header-info h4 {
    font-weight: 600;
    color: #fff;
}

.profile-header .profile-header-tab {
    position: relative;
    list-style-type: none;
    margin: -10px 0 0;
    padding: 0 0 0 0;
    border-radius: 0;
}

@media (max-width: 768px) {
    .profile-header .profile-header-tab {
        padding: 0;
        margin: 0;
        overflow: scroll;
        display: flex;
        flex-wrap: nowrap;
    }
}


.profile-header .profile-header-tab .nav-item {
    display: inline-block;
    margin: 0;
}

    .profile-header .profile-header-tab .nav-item .nav-link {
        display: block;
        color: gray;
        line-height: 20px;
        padding: 10px 20px;
        text-decoration: none;
        font-weight: bold;
        font-size: 12px;
        border: none;
        border-radius: 0;
    }

        .profile-header .profile-header-tab .nav-item .nav-link:hover,
        .profile-header .profile-header-tab .nav-item .nav-link:focus {
            background: none;
            color: black;
        }

        .profile-header .profile-header-tab .nav-item .nav-link.active {
            color: black;
            background: none;
        }
