body{
    background: var(--bs-body-bg);
}

body.env-appended{
    padding-top: 53px;
}

body.env-appended .topbar{
    top: 53px;
}

body .env-info{
    background: indianred;
    color: whitesmoke;
    border: unset;
    border-radius: 0;
    margin-bottom: 0 !important;
    text-align: center;
    z-index: 9999999;
}

body.env-appended .env-info{
    position: fixed;
    top: 0;
    width: 100%;
}

body.env-appended .left-sidebar .scroll-sidebar{
    height: calc(100% - 228px);
}

.table-responsive{
    overflow-x: unset;
}

.show-sidebar .logo-img img{
    display: none;
}

.logo-img .smallLogo{
    display: none;
}

.show-sidebar .logo-img .smallLogo{
    display: block !important;
}

.table-responsive table tbody tr td b.title{
    display: none;
}

.password-status{
    color: red;
}

.password-status.valid{
    color: #00b729;
}

.password-container {
    position: relative;
}

.password-container .eye {
    position: absolute;
    right: 10px;
    top: 6px;
    cursor: pointer;
}

.password-container .eye .hide {
    display: none;
}

.password-container .eye svg {
    width: 30px;
}

/* Logout popup overlay styles */ 
.popup-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.popup-overlay.active {
    display: flex;
}

.popup-box {
    background: white;
    border-radius: 12px;
    padding: 30px;
    width: 320px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: up 0.2s ease;
}

@keyframes up {
    from { transform: scale(0.85); opacity: 0; }
    to   { transform: scale(1);    opacity: 1; }
}


.popup-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
}

.popup-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.btn-yes {
    padding: 9px 22px;
    background: #e74c3c;
    color: white !important;
    border: none;
    border-radius: 7px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s;
}
.btn-yes:hover { background: #c0392b; }

.btn-no {
    padding: 9px 22px;
    background: #f0f0f0;
    color: #333;
    border: none;
    border-radius: 7px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-no:hover { background: #ddd; }

/* Logout popup overlay styles end */ 




@media screen and (max-width: 767px) {
    .table-responsive table thead{
        display: none;
    }
    .table-responsive table tbody tr td{
        display: flex;
        justify-content: space-between;
        text-align: right;
    }
    .table-responsive table tbody tr td b.title{
        display: block;
        text-align: left;
    }
}

[data-bs-theme="dark"] {
    --bs-primary: #ED1F25;
    --bs-primary-rgb: 237, 31, 37;
    --bs-body-bg: #131920;
    --bs-body-bg-rgb: 19, 25, 32;
    --bs-body-color: #bfbfbf;
    --bs-body-color-rgb: 191, 191, 191;
    --bs-heading-color: #fafafa;
    --bs-border-color: #303f50;
    --bs-secondary-bg: #1b232d;
    --bs-tertiary-bg: #263240;
    --bs-secondary-color: #6f747f;
}

[data-bs-theme="dark"] h1,
[data-bs-theme="dark"] h2,
[data-bs-theme="dark"] h3,
[data-bs-theme="dark"] h4,
[data-bs-theme="dark"] h5,
[data-bs-theme="dark"] h6,
[data-bs-theme="dark"] .breadcrumb-item,
[data-bs-theme="dark"] .breadcrumb-item a {
    color: var(--bs-heading-color);
}

[data-bs-theme="dark"] .breadcrumb-item.active {
    color: var(--bs-secondary-color);
}

[data-bs-theme="dark"] .card {
    --bs-card-bg: #1b232d;
    --bs-card-border-color: #263240;
}

[data-bs-theme="dark"] .user-profile-card {
    background-color: #1b232d !important;
}

[data-bs-theme="dark"] .left-sidebar {
    background-color: #131920;
    border-right: 1px solid var(--bs-border-color);
}

[data-bs-theme="dark"] .sidebar-item .sidebar-link.active,
[data-bs-theme="dark"] .sidebar-item .sidebar-link:hover {
    background-color: #19212a;
    color: var(--bs-primary);
}

[data-bs-theme="dark"] .table {
    --bs-table-bg: transparent;
    --bs-table-color: var(--bs-body-color);
    --bs-table-border-color: var(--bs-border-color);
    --bs-table-striped-bg: rgba(255, 255, 255, .03);
    --bs-table-hover-bg: rgba(255, 255, 255, .05);
}

[data-bs-theme="dark"] .table thead th {
    background-color: #303f50;
    color: var(--bs-heading-color);
    border-color: #303f50;
}

[data-bs-theme="dark"] .form-control,
[data-bs-theme="dark"] .form-select {
    background-color: #263240;
    border-color: #303f50;
    color: var(--bs-body-color);
}

[data-bs-theme="dark"] .dropdown-menu {
    --bs-dropdown-bg: #263240;
    --bs-dropdown-link-color: var(--bs-body-color);
    --bs-dropdown-link-hover-bg: #19212a;
    --bs-dropdown-border-color: #303f50;
}

[data-bs-theme="dark"] .popup-box {
    background: #1b232d;
    color: var(--bs-body-color);
}

[data-bs-theme="dark"] .popup-title {
    color: var(--bs-heading-color);
}

[data-bs-theme="dark"] .btn-no {
    background: #263240;
    color: var(--bs-body-color);
    border: 1px solid #303f50;
}

[data-bs-theme="dark"] .btn-no:hover {
    background: #303f50;
}

/* navmenu color */
[data-bs-theme="dark"] .left-sidebar .sidebar-link.active,
[data-bs-theme="dark"] .left-sidebar .sidebar-item.active .sidebar-link,
[data-bs-theme="dark"] .left-sidebar .sidebar-link:hover {
    background-color: rgba(237, 31, 37, 0.14) !important;
    color: #ED1F25 !important;
}

[data-bs-theme="dark"] .left-sidebar .sidebar-link.active i,
[data-bs-theme="dark"] .left-sidebar .sidebar-item.active .sidebar-link i,
[data-bs-theme="dark"] .left-sidebar .sidebar-link:hover i {
    color: #ED1F25 !important;
}

[data-bs-theme="light"] .left-sidebar .sidebar-link.active,
[data-bs-theme="light"] .left-sidebar .sidebar-item.active .sidebar-link,
[data-bs-theme="light"] .left-sidebar .sidebar-link:hover {
    background-color: rgba(237, 31, 37, 0.14) !important;
    color: #ED1F25 !important;
}

[data-bs-theme="light"] .left-sidebar .sidebar-link.active i,
[data-bs-theme="light"] .left-sidebar .sidebar-item.active .sidebar-link i,
[data-bs-theme="light"] .left-sidebar .sidebar-link:hover i {
    color: #ED1F25 !important;
}

/* END */

body[data-sidebartype="mini-sidebar"] .left-sidebar {
    display: none !important;
}

body[data-sidebartype="mini-sidebar"] .page-wrapper {
    margin-left: 0 !important;
}


.topbar {
    position: fixed !important;
    top: 0;
    left: 270px;
    right: 0;
    width: auto !important;
    z-index: 1029;
    transition: left .2s ease-in-out;
    background-color: rgba(var(--bs-body-bg-rgb), 0.72) !important;
    backdrop-filter: blur(14px) saturate(180%);
    -webkit-backdrop-filter: blur(14px) saturate(180%);
}

body[data-sidebartype="mini-sidebar"] .topbar {
    left: 0 !important;
}

body.env-appended .topbar {
    top: 53px;
}

.page-wrapper .body-wrapper {
    padding-top: 70px;
}

body.env-appended .page-wrapper .body-wrapper {
    padding-top: calc(70px + 53px);
}

/* breadcrumb */
[data-bs-theme="light"] .breadcrumb-item + .breadcrumb-item::before,
[data-bs-theme="dark"] .breadcrumb-item + .breadcrumb-item::before {
    content: ">";
    color: var(--bs-secondary-color);
}
/* END */


@media (max-width: 1300px) {
    .left-sidebar {
        position: fixed !important;
        top: 0;
        left: 0;
        height: 100vh;
        z-index: 1050;
        transform: translateX(-100%);
        transition: transform .25s ease-in-out;
    }

    #main-wrapper.sidebar-mobile-open .left-sidebar {
        transform: translateX(0);
    }

    .page-wrapper {
        margin-left: 0 !important;
    }

    .topbar {
        left: 0 !important;
    }

    .sidebar-mobile-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, .5);
        z-index: 1040;
    }

    #main-wrapper.sidebar-mobile-open .sidebar-mobile-overlay {
        display: block;
    }
}


#notif-badge {
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .65rem !important;
    font-weight: 700;
    line-height: 1;
    border: 2px solid var(--bs-body-bg);
    box-sizing: content-box;
}


.btn .loading {
    display: inline-block;
    width: 1em;
    height: 1em;
    border: .15em solid rgba(255, 255, 255, .5);
    border-top-color: #fff;
    border-radius: 50%;
    animation: otra-btn-spin .6s linear infinite;
    vertical-align: -0.15em;
}

@keyframes otra-btn-spin {
    to { transform: rotate(360deg); }
}
