/* General styles */

:root {
    --primary-color: #1C146C;
    --primary-hover: #291f96;
    --accent-teal: #24d8ae;
    --accent-teal-hover: #36d4b0;
    --primary-light: rgba(22, 98, 239, 0.1);
    --sidebar-width: 250px;
    --collapsed-width: 80px;
}

/* Light theme variables */

[data-theme="light"] {
    --bg-body-color: #e4e5e7;
    --bg-color: white;
    --text-color: #333;
    --card-bg: rgba(245, 244, 244, 0.795);
    --border-color: #bbbebe;
    --pils-bg-color: #ebebeb;
    --sidebar-menu-item-color: #333;
    --sidebar-menu-hover: #1254D6;
    --thead-bg-color: #f8f9fa;
    --bg-model-color: #fff;
    --bs-input-bg: #f4f3f3;
    --menu-active-bg: #d4d4d4;
    --menu-active-color: #242323;
}

/* Dark theme variables */

[data-theme="dark"] {
    --bg-body-color: #191e22;
    --bg-color: #282f36;
    --text-color: #ffffff;
    --card-bg: #242a30;
    --border-color: #30373f;
    --pils-bg-color: #242a30;
    --sidebar-menu-item-color: #b9b9b9;
    --sidebar-menu-hover: #ffffff;
    --thead-bg-color: #212930;
    --bg-model-color: #242a30;
    --bs-input-bg: #293037;
    --menu-active-bg: #d4d4d4;
    --menu-active-color: #242323;
}

.colorThemeContainer .col-2 {
    display: flex;
    justify-content: center;
}

.colorTheme {
    width: 50px;
    height: 50px;
    background-color: #007bff;
    border-radius: 100%;
    cursor: pointer;
}

.colorTheme.active {
    border: 3px solid black;
}

/* Width of the scrollbar */

::-webkit-scrollbar {
    width: 4px;
    height: 0px;
}

/* Track (background) */

::-webkit-scrollbar-track {
    background: var(--border-color);
    border-radius: 10px;
}

/* Handle */

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

/* Handle on hover */

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.btn:disabled {
    background-color: var(--primary-color) !important;
}

body {
    background-color: var(--bg-body-color);
    color: var(--text-color);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    display: flex;
    transition: background-color 0.3s ease, color 0.3s ease;
    /* align-items: center; */
    /* justify-content: center; */
}

/* Logo styles */

.logo {
    /* width: 48px; */
    height: 48px;
    background-color: var(--primary-color);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
    position: relative;
}

/* New - Adding border and shadow effect for logo */

.logo::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 10px;
    border: 2px solid rgba(0, 0, 0, 1);
    box-shadow: 3px 3px 0 rgba(0, 0, 0, 1);
}

.logo span {
    color: white;
    font-size: 22px;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.face-scan-container {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto;
    border-radius: 50%;
    overflow: hidden;
}

.face-position-guide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px dashed rgba(255, 255, 255, 0.7);
    box-sizing: border-box;
    pointer-events: none;
}

.scan-line {
    position: absolute;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, rgba(0, 150, 255, 0), rgba(0, 150, 255, 0.8), rgba(0, 150, 255, 0));
    box-shadow: 0 0 8px rgba(0, 150, 255, 0.8);
    opacity: 0.8;
    top: -10%;
    left: 0;
    animation: scan 2s ease-in-out infinite;
}

.scanning-dots {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.dot {
    position: absolute;
    width: 4px;
    height: 4px;
    background-color: rgba(0, 200, 255, 0.8);
    border-radius: 50%;
    opacity: 0;
}

.face-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    box-shadow: inset 0 0 20px rgba(0, 150, 255, 0.3);
    pointer-events: none;
}

.scan-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(0, 150, 255, 0.15) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 150, 255, 0.15) 1px, transparent 1px);
    background-size: 10px 10px;
    opacity: 0.5;
    pointer-events: none;
}

.corner-bracket {
    position: absolute;
    width: 15px;
    height: 15px;
    border: 2px solid rgba(0, 200, 255, 0.8);
    border-radius: 1px;
    box-shadow: 0 0 5px rgba(0, 200, 255, 0.5);
}

.corner-top-left {
    top: 10px;
    left: 10px;
    border-right: none;
    border-bottom: none;
}

.corner-top-right {
    top: 10px;
    right: 10px;
    border-left: none;
    border-bottom: none;
}

.corner-bottom-left {
    bottom: 10px;
    left: 10px;
    border-right: none;
    border-top: none;
}

.corner-bottom-right {
    bottom: 10px;
    right: 10px;
    border-left: none;
    border-top: none;
}

.pulse-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid rgba(0, 200, 255, 0.5);
    box-sizing: border-box;
    animation: pulse 2s infinite;
}

@keyframes scan {
    0% {
        top: -10%;
        opacity: 0;
    }

    20% {
        opacity: 0.8;
    }

    80% {
        opacity: 0.8;
    }

    100% {
        top: 110%;
        opacity: 0;
    }
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        opacity: 0.7;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.3;
    }

    100% {
        transform: scale(0.95);
        opacity: 0.7;
    }
}

.status-text {
    font-size: 14px;
    color: #0096ff;
    text-align: center;
    margin-top: 10px;
    font-weight: bold;
}

#faceVideo,
#regFaceVideo {
    border-radius: 100%;
    background-color: #000;
}

#regFaceVideo,
#faceVideo {
    transform: scaleX(-1);
}

#challengeContainer {
    display: none;
    background: rgba(255, 255, 255, 0.9);
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    font-weight: bold;
    font-size: 16px;
    color: #333;
    border-left: 5px solid #007bff;
}

.login-options {
    padding-top: 10px;
    border-top: 1px solid #dee2e6;
}

/* Tab container styles */

.tab-container {
    margin-bottom: 14px;
}

.nav-pills {
    background-color: var(--pils-bg-color);
    border-radius: 8px;
    padding: 3px;
    gap: 4px;
}

.nav-pills .nav-link {
    font-size: 0.8em;
    border-radius: 6px;
    color: #666;
    padding: 6px 10px;
    font-weight: 700;
    border: none;
    transition: all 0.2s ease;
}

.nav-pills .nav-link.active {
    background-color: white;
    color: #000;
    /* box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08); */
}

/* Form container styles */

.form-container {
    display: none;
    max-width: 100%;
}

.form-container.active {
    display: block;
}

/* Card styles */

.card {
    background-color: var(--card-bg);
    border: solid 1px var(--border-color);
    /* border-radius: 16px; */
}

.card-body {
    padding: 22px;
    background-color: var(--card-bg);
    color: var(--text-color);
}

/* Form styles */

.form-title {
    font-size: 24px;
    font-weight: 700;
    /* margin-bottom: 8px; */
    color: var(--text-color);
}

.form-subtitle {
    color: #666;
    margin-bottom: 24px;
    font-size: 15px;
}

.form-label {
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-color);
}

.form-control {
    /* padding: 12px 16px !important; */
    border: 1px solid var(--border-color) !important;
    background-color: var(--bs-input-bg) !important;
    color: var(--text-color) !important;
    font-size: 15px !important;
    height: auto !important;
}

.form-control:focus {
    /* padding: 12px 16px; */
    border: 1px solid var(--border-color);
    background-color: var(--bs-input-bg);
    color: var(--text-color);
    border-radius: 8px;
    font-size: 15px;
    height: auto;
}

[data-theme="dark"] {
    .form-control {
        color-scheme: dark;
    }
}

.form-select {
    background-color: var(--bs-input-bg) !important;
    color: var(--text-color) !important;
    border: 1px solid var(--border-color) !important;
}

.input-group-text {
    background-color: var(--bs-input-bg);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.auth-err {
    min-height: 30px;
    margin-top: 5px;
}

.form-control::placeholder {
    color: #999;
}

/* Button styles - Updated hover and active states */

.btn-submit {
    background-color: var(--primary-color);
    padding: 8px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 15px;
    position: relative;
    border: 2px solid rgba(0, 0, 0, 1);
    box-shadow: 3px 3px 0 rgba(0, 0, 0, 1);
    color: white !important;
    /* Force white text color */
    transition: background-color 0.2s ease;
    z-index: 1;
    outline: none;
}

/* Shadow effect for button */

.btn-submit::after {
    content: '';
    position: absolute;
    top: 1px;
    left: 1px;
    right: -2px;
    bottom: -2px;
    border-radius: 8px;
    z-index: -1;
}

.btn-submit:hover {
    background-color: var(--primary-hover) !important;
    color: white !important;
}

.btn-submit:active {
    background-color: var(--primary-color) !important;
    color: white !important;
}

.btn-submit:focus {
    background-color: var(--primary-color) !important;
    color: white !important;
    box-shadow: none;
}

.btn-white {
    background-color: white;
    border: 1px solid #e0e0e0;
    padding: 6px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.btn-white:hover {
    background-color: var(--pils-bg-color);
}

/* OTP input styles - Updated for responsiveness */

.otp-container {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
}

.otp-input {
    width: 100%;
    max-width: 48px;
    height: 48px;
    text-align: center;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 500;
    padding: 12px 0px !important;
    -moz-appearance: textfield;
}

/* Remove spinner buttons for number inputs */

.otp-input::-webkit-outer-spin-button,
.otp-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Media queries for different screen sizes */

@media (max-width: 480px) {
    .otp-container {
        gap: 6px;
        max-width: 300px;
    }

    .otp-input {
        max-width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .separator {
        padding: 0 8px !important;
    }
}

@media (max-width: 360px) {
    .otp-container {
        gap: 4px;
        max-width: 260px;
    }

    .otp-input {
        max-width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .separator {
        padding: 0 4px !important;
    }
}

.separator {
    color: #999;
    margin-bottom: 8px;
    font-size: 20px;
}

/* Resend link styles */

#resendLoginOtp,
#resendSignupOtp {
    color: var(--text-color);
    cursor: pointer;
    display: inline-block;
    margin-bottom: 10px;
    font-size: 14px;
}

/* Form message styles */

.form-container p {
    color: #999 !important;
    font-size: 14px;
    font-weight: 600;
    /* margin: 16px 0; */
}

/* Ensure proper max-width for the form column */

/* .col-md-5 {
    max-width: 440px;
} */

.wrapper {
    /* margin-bottom: 80px; */
    /* display: flex; */
    min-height: 100%;
    min-width: 100%;
}

.sidebar {
    width: var(--sidebar-width);
    color: var(--sidebar-menu-item-color);
    background: var(--bg-color);
    box-shadow: rgba(0, 0, 0, 0.1) 0px 0.5rem 1rem;
    height: 100%;
    position: fixed;
    transition: width 0.3s ease;
    display: flex;
    flex-direction: column;
    z-index: 100;
}

.sidebar.collapsed {
    width: var(--collapsed-width);
    place-items: center;
}

.sidebar.collapsed .menu-title {
    display: none;
}

.sidebar.collapsed .nav-item i {
    margin-right: 0px;
}

.sidebar .app-logo-con {
    margin-right: auto;
}

.sidebar.collapsed .app-logo-con {
    margin-right: 0px;
    margin-top: 10px;
    margin-bottom: 10px;
    background-color: var(--primary-color);
}

.sidebar.collapsed .app-logo {
    margin: 5px 5px;
    margin-bottom: 6px !important;
    width: 35px !important;
    height: auto !important;
}

.sidebar.collapsed .user-details,
.sidebar.collapsed .user-dropdown {
    display: none;
}

.sidebar.collapsed .top-section {
    display: contents;
}

.menu-title {
    padding: 12px 10px !important;
    margin-bottom: 10px;
    pointer-events: none;
    cursor: default;
    font-size: 12px;
    color: var(--sidebar-menu-item-color);
    font-weight: 500;
}

.top-section {
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--primary-color);

}

i.fas.fa-bars {
    color: white;
}

.sidebar.collapsed .fa-bars {
    color: black;
}

.collapse-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    color: black;
}

.sidebar .menu-items {
    padding: 6px;
    flex-grow: 1;
    overflow: auto;
    /* Firefox */
}

.sidebar .menu-items::-webkit-scrollbar {
    display: block;
    /* Chrome, Safari */
}

.sidebar.collapsed .menu-items {
    overflow: visible;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 10px;
    text-decoration: none;
    color: var(--sidebar-menu-item-color);
    border-radius: 6px;
    font-size: 14px;
}

.nav-item i {
    /* width: 20px; */
    margin-right: 12px;
    font-size: 13px;
}

.submenu-item i {
    margin-right: 12px;
    font-size: 13px;
}

.nav-text {
    white-space: nowrap;
}

.sub-text {
    white-space: nowrap;
}

.sidebar.collapsed .nav-text {
    display: none;
}

.sidebar.collapsed .bottom-section {
    border: 0px;
}

.dropdown-menu,
.dropdown-item {
    background-color: var(--bg-color);
    color: var(--text-color);
}

.bottom-section {
    border-top: 1px solid var(--border-color);
    padding: 6px;
}

.user-info {
    display: flex;
    align-items: center;
    min-height: 45px;
    max-height: 45px;
    padding: 0px 10px;
}

.user-avatar {
    width: 32px;
    height: 32px;
    background: #f0f0f0;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* margin-right: 12px; */
    font-size: 14px;
    color: #666;
}

.user-details {
    margin-left: 12px;
    flex: 1;
    min-width: 0;
}

.user-details-drop {
    margin-left: 12px;
    flex: 1;
    min-width: 0;
}

.user-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color);
}

.user-email {
    font-size: 12px;
    color: #888 !important;
}

.user-dropdown {
    color: #666;
    padding: 4px;
    cursor: pointer;
}

.main-content>:not(.footer) {
    padding: 0px 15px;
}

.main-content {
    margin-left: var(--sidebar-width);
    transition: margin-left 0.3s ease;
    flex: 1;
}

.main-content.shifted {
    margin-left: var(--collapsed-width);
}

.close-sidebar {
    display: none;
    font-size: 22px;
}

/* Initially hide the mobile toggle on desktop */

.mobile-toggle {
    display: none;
}

@media (max-width: 768px) {
    .mobile-toggle {
        width: 32px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: none;
        border: none;
        cursor: pointer;
        color: var(--text-color);
    }

    #closeSidebar {
        margin-top: 15px;
        color: white;
    }

    /* Sidebar styling for mobile */
    .sidebar {
        width: 100%;
        /* max-width: 320px; */
        position: fixed;
        left: -100%;
        box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
        transition: left 0.3s ease;
    }

    .sidebar.active {
        left: 0;
        z-index: 9999 !important;
    }

    .collapse-icon {
        display: none !important;
    }

    /* Adjust main content for mobile */
    .main-content,
    .main-content.shifted {
        padding: 0px;
        margin-left: 0;
    }

    .close-sidebar {
        display: flex;
    }
}

/* Desktop styling remains the same */

@media (min-width: 769px) {
    .collapse-icon {
        display: flex;
    }
}

/* Updated styles for smoother animations and better spacing */

.nav-item-group {
    position: relative;
    margin-bottom: 8px !important;
}

.sidebar.collapsed .nav-item-group {
    margin: 4px;
}

.submenu-arrow {
    transition: transform 0.3s ease;
    font-size: 12px;
    margin-left: 8px;
}

.submenu-arrow.rotated {
    transform: rotate(180deg);
}

.submenu {
    display: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
    padding-left: 28px;
    /* Align with parent icon */
    background: var(--bg-color);
}

.submenu.active {
    max-height: 1000px;
    /* Adjust based on content */
}

.submenu-item {
    transition: color 0.3s ease-in-out;
    padding: 8px 10px;
    margin: 2px 0;
    font-size: 14px;
    opacity: 0.9;
}

.submenu-item:hover {
    opacity: 1;
    color: var(--sidebar-menu-hover);
}

.profile-nav {
    opacity: 1;
    cursor: pointer;
}

.profile-nav:hover {
    background-color: var(--bg-body-color) !important;
    transition: background 0.3s ease;
}

.profile-nav a {
    color: var(--text-color) !important;
    text-decoration: none;
}

/* Collapsed sidebar specific styles */
.sidebar.collapsed .top-section .collapse-icon {
    background: #dfdfdf2f !important;
}

.sidebar.collapsed .submenu {
    display: block;
    position: absolute;
    left: 100%;
    top: 0;
    width: 200px;
    max-height: 250px;
    overflow: scroll;
    padding: 0px;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.hover-top {
    display: none;
}

.sidebar.collapsed .hover-top {
    display: block;
}

.sidebar.collapsed .nav-item-group:hover .submenu {
    opacity: 1;
    color: var(--text-color);
    visibility: visible;
}

.sidebar.collapsed .submenu-arrow {
    display: none;
}

/* Ensure icons are properly aligned */

.nav-item i:not(.submenu-arrow) {
    width: 15px;
    text-align: center;
    margin-right: 12px;
}

/* Improve active state styling */

.nav-item.active,
.submenu-item.active {
    background: var(--menu-active-bg);
    color: var(--menu-active-color);
    font-weight: 500;
}

.nav-item,
.submenu-item {
    transition: color 0.3s ease-in-out;
}

.nav-item:hover:not(.active),
.submenu-item:hover:not(.active) {
    color: var(--sidebar-menu-hover);
}

.sidebar.collapsed .nav-item-group:hover .hover-top {
    color: var(--sidebar-menu-hover)
}

.totaluser-stats-card {
    color: white;
    transition: transform 0.3s ease;
    border: none;
    border-radius: 10px;
    overflow: hidden;
    height: 100%;
}

.activeuser-stats-card {
    color: white;
    transition: transform 0.3s ease;
    border: none;
    border-radius: 10px;
    overflow: hidden;
    height: 100%;
}

.admineuser-stats-card {
    color: white;
    transition: transform 0.3s ease;
    border: none;
    border-radius: 10px;
    overflow: hidden;
    height: 100%;
}

.totaluser-stats-card:hover,
.activeuser-stats-card:hover,
.admineuser-stats-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

.totaluser-stats-card .card-body,
.activeuser-stats-card .card-body,
.admineuser-stats-card .card-body {
    position: relative;
    z-index: 1;
    padding: 1.5rem;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.section-title {
    color: var(--text-color);
    margin-top: 0.75rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
    letter-spacing: -0.5px;
}

label {
    color: var(--text-color);
}

/* .dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
    margin-bottom: 1rem;
} */

.dataTables_wrapper {
    overflow: hidden;
}

.row.dt-row {
    overflow: auto;
}

.dataTables_filter {
    width: 100%;
    /* margin-top: 1rem; */
}

.dataTables_filter input {
    width: 100%;
    padding: 0.375rem 0.75rem;
    border-radius: 0.25rem;
    border: 1px solid #dee2e6;
    background-color: #fff;
}

.table-hover tbody tr:hover {
    background-color: #f8f9fa;
}

tbody td {
    background-color: var(--bg-color) !important;
    color: var(--text-color) !important;
}

thead tr th {
    background-color: var(--thead-bg-color) !important;
    color: var(--text-color) !important;
}

.status-badge {
    padding: 0.35em 0.65em;
    font-size: 0.75em;
    border-radius: 20px;
    white-space: nowrap;
}

.badge-active {
    background: #e8f5e9;
    color: #2e7d32;
}

.badge-pending {
    background: #fff3e0;
    color: #ef6c00;
}

.action-buttons .btn {
    padding: 0.375rem 0.75rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

/* Responsive adjustments */

@media (max-width: 768px) {
    .section-header {
        flex-direction: column;
        align-items: flex-start !important;
    }

    .dataTables_length,
    .dataTables_filter {
        text-align: left !important;
        width: 100%;
    }

    .avatar {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }

    .action-buttons {
        display: flex;
        gap: 0.5rem;
        margin-top: 0.5rem;
    }

    .stats-card {
        margin-bottom: 1rem;
    }
}

/* DataTables custom styling */

.dataTables_wrapper .row {
    margin: 0;
    align-items: center;
}

.dataTables_wrapper .dataTables_paginate .paginate-button {
    padding: 0.5rem 0.75rem;
    margin: 0 0.25rem;
}

.dt-buttons {
    margin-bottom: 1rem;
}

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

/* Enhanced table responsiveness */

@media screen and (max-width: 767px) {

    div.dataTables_wrapper div.dataTables_length,
    div.dataTables_wrapper div.dataTables_filter,
    div.dataTables_wrapper div.dataTables_info,
    div.dataTables_wrapper div.dataTables_paginate {
        text-align: left !important;
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .table-responsive {
        border: 0;
    }

    .dataTables_wrapper .dataTables_filter input {
        margin-left: 0 !important;
    }
}

.modal-content {
    background-color: var(--bg-model-color);
}

.btn-close {
    background: none;
    width: 1rem;
    height: 1rem;
    line-height: 1rem !important;
}

.btn-close::before {
    content: '✕';
    /* Or use a custom SVG */
    font-size: 1.25rem;
    color: var(--text-color) !important;
}

.modal-header,
.modal-footer {
    border-color: var(--border-color);
}

tbody,
td,
tfoot,
th,
thead,
tr {
    border-color: var(--border-color);
}

.input-group-text i {
    color: var(--sidebar-menu-item-color);
}

h3 {
    color: var(--sidebar-menu-item-color);
}

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

@media (max-width: 991.98px) {
    .footer {
        left: 0;
    }
}

.footer {
    z-index: 3;
    width: 100%;
    position: fixed;
    bottom: 0;
    padding: 0px 10px;
    color: #6c757d;
    background-color: var(--bg-color);
    border-top: 1px solid var(--border-color);
    font-size: 14px;
    text-align: start;
    display: flex;
    align-items: center;
    height: 58px;
}

@media (max-width: 768px) {
    .card-body {
        padding: 20px;
    }

    .fab-btn {
        position: fixed;
        bottom: 20px;
        right: 20px;
        z-index: 1000;
        border-radius: 50%;
        width: 46px;
        height: 46px;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    }

    .fab-btn .fab-text {
        display: none;
        /* Hide text on mobile */
    }
}

.btn-white:hover {
    color: var(--text-color);
}

.card-header {
    border-color: var(--border-color);
    background-color: var(--bg-model-color);
}

.event-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 8px;
    overflow: hidden;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.event-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.event-card .card-title {
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.event-card .card-body {
    padding: 1.25rem 1.25rem 0.5rem;
}

.event-card .card-footer {
    padding: 0.5rem 1rem 1rem;
}

.event-card .btn-link {
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 0.25rem;
    transition: background-color 0.2s ease;
}

.event-card .btn-link:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

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

.color-picker-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.color-circle {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 2px solid #ccc;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.color-circle input {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.color-hex {
    font-size: 14px;
    font-weight: bold;
    width: 70px;
    text-align: center;
    background: transparent;
    border: none;
}

.header-con {
    height: 71px
}

.title-con {
    border-bottom: 1px solid rgb(165, 164, 164);
}


/* .dataTables_paginate,
.dataTables_info {
    display: none;
} */

.pb-8 {
    padding-bottom: 70px !important;
}

.page-header {
    background-color: var(--primary-hover);
}

table {
    font-size: 0.9rem;
}

#dataTable th {
    white-space: nowrap;
}

div.dataTables_wrapper div.dataTables_info {
    padding-top: 0 !important;
}

#dataTable th:last-child,
#dataTable td:last-child {
    white-space: nowrap;
}

a {
    text-decoration: none !important;
}

/* table horizontal bar */
.table-wrapper {
    width: 100%;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-hover) var(--border-color);
}

.tbl-con {
    padding: 0px 12px;
}

.table-wrapper::-webkit-scrollbar {
    height: 5px;
}

.table-wrapper::-webkit-scrollbar-thumb {
    background-color: var(--primary-hover);
    border-radius: 5px;
}

.table-wrapper::-webkit-scrollbar-track {
    background-color: var(--border-color);
}

#dataTable {
    width: 100%;
    min-width: 600px;
    /* or whatever minimum width you need */
}

.tbl-nav {
    margin-top: 10px;
}

/* --- tabs sec ---- */
.tabs-sec {
    background-color: var(--bg-model-color);
}

p.small.text-muted {
    color: var(--text-color) !important;
}

.pagination a.page-link {
    background-color: var(--bg-color);
}

li.page-item.disabled span.page-link {
    background-color: var(--border-color) !important;
    color: var(--text-color) !important;
}

/* .table-responsive.profile-table {
    max-height: 250px !important;
    margin-bottom: 20px;
}

.table thead th {
    position: sticky;
    top: 0;
    background: #f8f9fa;
    z-index: 2;
} */

/* password toggle start */
.password-section {
    position: relative;
    display: inline-block;
    width: 100%;
}

.password-section .fa-eye {
    position: absolute;
    top: 76%;
    right: 22px;
    /* Adjust this value to control the icon's position */
    transform: translateY(-50%);
    cursor: pointer;
}

.password-section .fa-eye-slash {
    position: absolute;
    top: 76%;
    right: 22px;
    /* Adjust this value to control the icon's position */
    transform: translateY(-50%);
    cursor: pointer;
}

/* password toggle end */
/* Fullscreen transparent loading overlay */
.swal2-container {
    z-index: 99999999999999 !important;
}

#global-loading {
    display: none;
    position: fixed;
    z-index: 9999999999999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(2px);
    justify-content: center;
    align-items: center;
}

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

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

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