/* width list */
.w-250px{
    width: 250px;
}


/* border list */
.br-10px{
    border-radius: 10px;
}
.border-none{
    border: none;
}
.table-dark th {
    background: #6d68cb;
    color: white;
    font-weight: 600;
    padding: .7rem 1rem;
    border: none !important;
}

.badge-sm {
    font-size: 0.6rem !important;
    padding: 2px 7px !important;
}
/* btn list */
.btn-primary-grad{
    background: var(--primary-gradient) !important;
}
.btn-secondary-grad{
    background: var(--secondary-gradient);
}
.bg-gray-500{
    --bs-bg-opacity: 1;
    background-color: rgb(218 233 249) !important;
}
/* font */
.fs-1{
    font-size: 1rem !important;
}

/* other */
.inp-secure{
    -webkit-text-security: disc;
}
.float-right{
    float: right !important;
}

/* Custom Scrollbar */
/* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) */
/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 6px !important;
    height: 6px !important;
}

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

::-webkit-scrollbar-thumb {
    -webkit-border-radius: 0px;
    border-radius: 0px;
    background: linear-gradient(35deg, #764ba2 0%, #667eea 100%) !important;
}


/* Scrollbar Styling end*/


/* Top Menu Bar */
.top-menu-bar {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: var(--menu-shadow);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    transition: all 0.3s ease;
}

.top-menu-bar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

.menu-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
    max-width: 100%;
}

/* Right Section Container */
.right-section {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* Brand Section */
.brand-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.brand-logo:hover {
    transform: translateY(-1px);
}

.brand-icon {
    width: 42px;
    height: 42px;
    background: var(--primary-gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    transition: all 0.3s ease;
}

.brand-logo:hover .brand-icon {
    transform: rotate(5deg) scale(1.05);
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-primary);
    line-height: 1;
    margin: 0;
}

.brand-subtitle {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1;
    margin: 0;
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.5rem;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 10px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.nav-link:hover::before {
    left: 100%;
}

.nav-link:hover,
.nav-link.active {
    background: var(--primary-gradient);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.nav-link i {
    font-size: 1rem;
}

/* Dropdown Menu */
.dropdown-menu {
    border: none;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.95);
    padding: 0.5rem;
    margin-top: 0.5rem;
    min-width: 200px;
}

.dropdown-item {
    border-radius: 10px;
    padding: 0.75rem 1rem;
    margin-bottom: 0.25rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
}

.dropdown-item:hover {
    background: rgba(102, 126, 234, 0.1);
    transform: translateX(5px);
    color: var(--text-primary);
}

.dropdown-item i {
    width: 20px;
    text-align: center;
    color: var(--text-secondary);
}

/* User Section */
.user-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.notification-btn {
    position: relative;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.notification-btn:hover {
    background: var(--primary-gradient);
    color: white;
    transform: scale(1.05);
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 18px;
    height: 18px;
    background: var(--secondary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: white;
    font-weight: 600;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.user-avatar {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    position: relative;
}

.user-avatar:hover {
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.5);
}

/* .user-avatar::after {
    content: '';
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    background: #10b981;
    border: 2px solid white;
    border-radius: 50%;
} */

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Menu */
.mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transform: translateY(-20px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.mobile-nav-menu {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    gap: 0.5rem;
}

.mobile-nav-link {
    padding: 1rem;
    border-radius: 12px;
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    background: var(--primary-gradient);
    color: white;
    transform: translateX(5px);
}

/* timeline */
.timeline {
    list-style: none;
    padding: 0;
    position: relative;
}
.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #dee2e6;
    left: 15px;
    margin-left: -1px;
}
.timeline li {
    margin-bottom: 20px;
    position: relative;
    padding-left: 40px;
}
.timeline li::before {
    content: '';
    position: absolute;
    left: 7px;
    background: var(--primary-gradient, #0d6efd);
    border-radius: 50%;
    height: 15px;
    width: 15px;
    top: 4px;
}
.timeline .time {
    font-size: 0.85rem;
    color: #6c757d;
    display: block;
}

/* nice scroll for content */
.nice-scroll {

    overflow-y: auto;
    padding-right: 6px;
}

.nice-scroll::-webkit-scrollbar {
    width: 6px;
}

.nice-scroll::-webkit-scrollbar-track {
    background: #fff;   /* rail color */
    border-radius: 10px;
}

.nice-scroll::-webkit-scrollbar-thumb {
    background: transparent;
    border-radius: 10px;
}

.nice-scroll:hover::-webkit-scrollbar-thumb {
    background: linear-gradient(35deg, #764ba2 0%, #667eea 100%) !important;
}

.nice-scroll:hover::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(35deg, #764ba2 0%, #667eea 100%) !important;
}

/* Hide top and bottom scrollbar arrows */
.nice-scroll::-webkit-scrollbar-button {
    display: none;
width: 0;
height: 0;
}


/* Search Bar */
.search-container {
    position: relative;
    margin-right: 1rem;
}

.search-input {
    width: 250px;
    padding: 0.5rem 1rem 0.5rem 2.5rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    background: white;
    width: 300px;
}

.search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 1rem;
}

/* List View */
.users-list {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.user-list-item {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.user-list-item:hover {
    background: rgba(102, 126, 234, 0.05);
}

.user-list-item:last-child {
    border-bottom: none;
}

.list-avatar {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    margin-right: 1rem;
}

.list-info {
    flex: 1;
    min-width: 0;
}

.list-name {
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.list-role {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

.list-details {
    display: flex;
    gap: 2rem;
    align-items: center;
    flex-wrap: wrap;
}

.list-detail {
    text-align: center;
    min-width: 80px;
}

.list-detail-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.list-detail-value {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}

/* Users Grid */
.users-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.user-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.user-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.user-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.user-avatar-large {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    position: relative;
}

/* .user-avatar-large::after {
    content: '';
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid white;
} */

.user-avatar-large.online::after {
    background: #10b981;
}

.user-avatar-large.offline::after {
    background: #ef4444;
}

.user-avatar-large.away::after {
    background: #f59e0b;
}

.user-info h5 {
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.25rem 0;
}

.user-role {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

.user-details {
    margin-bottom: 1rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.detail-label {
    color: var(--text-secondary);
    font-weight: 500;
}

.detail-value {
    color: var(--text-primary);
    font-weight: 600;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-active {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

.status-inactive {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

.status-pending {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
}
.status-info {
    background: rgba(13, 110, 253, 0.1); /* light info background */
    color: #0d6efd; /* info text color */
}

.user-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.action-btn {
    width: 35px;
    height: 35px;
    border: none;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.action-btn.edit {
    background: rgba(59, 130, 246, 0.1);
    color: #2563eb;
}

.action-btn.edit:hover {
    background: #2563eb;
    color: white;
    transform: scale(1.1);
}

.action-btn.delete {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

.action-btn.delete:hover {
    background: #dc2626;
    color: white;
    transform: scale(1.1);
}

.action-btn.view {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

.action-btn.view:hover {
    background: #059669;
    color: white;
    transform: scale(1.1);
}

/* Pagination */
.pagination-container {
    display: flex;
    justify-content: between;
    align-items: center;
    margin-top: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.pagination-info {
    color: var(--text-secondary);
}

.pagination {
    margin: 0;
}

.page-link {
    border: none;
    padding: 0.5rem 0.75rem;
    margin: 0 0.25rem;
    border-radius: 8px;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.page-link:hover {
    background: var(--primary-gradient);
    color: white;
}

.page-item.active .page-link {
    background: var(--primary-gradient);
    color: white;
}
.error {
    color: red;
    font-size: 0.875rem;
}
/* Responsive Design */
@media (max-width: 1199.98px) {
    .search-input {
        width: 200px;
    }
    
    .search-input:focus {
        width: 250px;
    }
}

@media (max-width: 991.98px) {
    .nav-menu {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .search-container {
        margin-right: 0.5rem;
    }
    
    .search-input {
        width: 150px;
    }
    
    .search-input:focus {
        width: 200px;
    }
}

@media (max-width: 767.98px) {
    .brand-text {
        display: none;
    }
    
    .search-container {
        display: none;
    }
    
    .user-section {
        gap: 0.5rem;
    }
    .m-mb-4 {
        margin-bottom: 2rem !important;
    }
    .m-w-100{
        width: 100% !important;
    }
}

@media (max-width: 575.98px) {
    .menu-container {
        padding: 0.5rem 0;
    }
    
    .brand-icon {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }
    
    .user-avatar {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
    
    .notification-btn {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
}

/* QR Code Select */
.qr-code-card:hover {
    box-shadow: 0 4px 20px rgba(4, 18, 65, 0.15);
    transform: translateY(-2px);
}

.qr-code-card.selected {
    box-shadow: 0 4px 20px rgba(13, 110, 253, 0.3);
    background-clip: padding-box;
    position: relative;
}
.qr-code-card.selected::before {
    content: "";
    position: absolute;
    inset: 0px;
    padding: 3px;
    /* border thickness */
    border-radius: inherit;
    background: var(--primary-gradient);
    /* gradient colors */
    -webkit-mask:
        linear-gradient(#0010a3 0 0) content-box,
        linear-gradient(#0010a3 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* Selection Overlay Styles */
.selection-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(13, 110, 253, 0.15);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10;
    backdrop-filter: blur(1px);
}

.qr-code-card.selected .selection-overlay {
    display: flex;
}

.check-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    box-shadow: 0 4px 12px rgba(202, 221, 250, 0.4);
    animation: checkPulse 0.3s ease-in-out;
}

@keyframes checkPulse {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Prevent button clicks when overlay is active */
.qr-code-card.selected .qr-actions button,
.qr-code-card.selected .user-actions button {
    pointer-events: none;
}

.user-card .dropdown-menu{
    min-width: 125px !important;
    border-radius: 10px !important
}
.user-card .dropdown-item{
    padding: 0.3rem 1rem !important;
}

.qr-code-card .dropdown-menu{
    min-width: 125px !important;
    border-radius: 10px !important;
}
.qr-code-card .dropdown-item{
    padding: 0.3rem 1rem !important;
}
.status-badge {
    cursor: pointer;
    padding: 4px 10px;
    font-weight: 600;
}
.status-active {
    background-color: #d1e7dd;
    color: #0f5132;
}
.status-inactive {
    background-color: #f8d7da;
    color: #842029;
}
.dropdown-item:hover {
    width: 92% !important;
}
.radius-10{
    border-radius: 10px !important;
}
.cursor-pointer {
    cursor: pointer;
}


/* Custom pagination styles */
.cp-pagination-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2rem 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.cp-pagination-container {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
}

.cp-pagination-btn {
    min-width: 40px;
    height: 40px;
    border: none;
    border-radius: 8px;
    background: #f8f9fa;
    color: #495057;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    user-select: none;
}

.cp-pagination-btn:hover:not(.cp-pagination-disabled):not(.cp-pagination-active) {
    background: #e9ecef;
    color: #212529;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.cp-pagination-btn.cp-pagination-active {
    background: var(--primary-gradient);
    color: white;
    font-weight: 600;
    box-shadow: 0 3px 12px rgba(0, 123, 255, 0.3);
}

.cp-pagination-btn.cp-pagination-disabled {
    background: #f8f9fa;
    color: #adb5bd;
    cursor: not-allowed;
    opacity: 0.6;
}

.cp-pagination-nav-btn {
    padding: 0 16px;
    font-weight: 600;
    gap: 6px;
}

.cp-pagination-nav-btn i {
    font-size: 12px;
}

.cp-pagination-ellipsis {
    color: #6c757d;
    font-weight: 500;
    padding: 0 8px;
    user-select: none;
}

.cp-pagination-info {
    margin: 0 16px;
    color: #6c757d;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
}
@media (max-width: 768px) {
    .cp-pagination-container {
        gap: 4px;
        padding: 8px 12px;
    }

    .cp-pagination-btn {
        min-width: 36px;
        height: 36px;
        font-size: 13px;
    }

    .cp-pagination-nav-btn {
        padding: 0 12px;
    }

    .cp-pagination-info {
        margin: 0 8px;
        font-size: 12px;
    }
}

.demo-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.demo-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.demo-controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.demo-control-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.demo-control-group label {
    font-weight: 600;
    color: #495057;
    font-size: 14px;
}

.demo-control-group input {
    padding: 8px 12px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    width: 120px;
}

.demo-btn {
    padding: 8px 16px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    align-self: flex-end;
}

.demo-btn:hover {
    background: #218838;
}

.current-page-info {
    text-align: center;
    margin: 1rem 0;
    padding: 1rem;
    background: #e3f2fd;
    border-radius: 8px;
    font-weight: 500;
}
/* End Custom pagination styles */