
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', 'Poppins', system-ui, -apple-system, sans-serif;
}

.sidebar {
    width: 260px;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    background: linear-gradient(180deg, var(--primary), var(--primary-dark));
    color: var(--text);
    z-index: 1050;
    display: flex;
    flex-direction: column;
    transition: transform .35s ease;
    overflow-y: auto;
}

.sidebar-logo {
    padding: 10px;
    margin-bottom: 10px;
}

/* Logo Card */
.logo-card {
    background: #ffffff;
    text-align: center;
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 1;
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.logo-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}


.sidebar-menu {
    flex: 1;
    /* takes remaining height */
    overflow-y: auto;
    /* allow bottom overflow */
    overflow-x: hidden;
    padding-bottom: 20px;
}

/* smooth scrollbar */
.sidebar-menu::-webkit-scrollbar {
    width: 6px;
}

.sidebar-menu::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, .3);
    border-radius: 6px;
}

.sidebar.closed {
    transform: translateX(-260px);
}


.sidebar h4 {
    padding: 18px 20px;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, .04);
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.sidebar a {
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--text);
    text-decoration: none;
    font-size: 15px;
    border-left: 3px solid transparent;
    transition: all .25s ease;
}


.sidebar a i {
    width: 22px;
    text-align: center;
    font-size: 16px;
}

/* Hover */
.sidebar a:hover {
    background: var(--hover);
    border-left: 3px solid #fff;
    padding-left: 24px;
}

.sidebar a.active {
    background: rgba(255, 255, 255, 0.15);
    border-left: 3px solid #fff;
    color: #fff;
    font-weight: 600;
}

.submenu {
    width: 100%;
}

.submenu-toggle {
    cursor: pointer;
}

.submenu-toggle .arrow {
    margin-left: auto;
    font-size: 12px;
    transition: transform .3s ease;
}

.submenu-items {
    max-height: 0;
    overflow: hidden;
    background: rgba(255, 255, 255, .05);
    transition: max-height .35s ease;
}

.submenu-items a {
    padding: 12px 20px 12px 54px;
    font-size: 14px;
}

.submenu.open .submenu-items {
    max-height: 500px;
}

.submenu.open .arrow {
    transform: rotate(90deg);
}

/* Scrollbar */
.sidebar::-webkit-scrollbar {
    width: 3px;
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 15px;
}

/* ===== Main ===== */
.main-content {
    margin-left: 260px;
    min-height: 100vh;

    transition:
        margin-left 0.35s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.25s ease;

    will-change: margin-left, transform;
}

/* Sidebar collapsed (desktop) */
.main-content.full {
    margin-left: 0;
}

/* Smooth animation effect while toggling */
.main-content.animating {
    opacity: 0.9;
    transform: translateX(12px) scale(0.99);
}

/* Mobile push effect */
.main-content.push {
    transform: translateX(260px);
}

/* Disabled tab style */
.disabled-tab {
    display: flex;
    align-items: center;
    gap: 10px;

    opacity: 0.7;
    cursor: not-allowed;
    position: relative;
}

/* Prevent click */
.disabled-tab {
    pointer-events: none;
}

/* Coming soon badge */
.badge-coming {
    margin-left: auto;

    font-size: 10px;
    padding: 4px 8px;
    border-radius: 999px;

    background: linear-gradient(135deg, #f59f0b, #f9163c);
    color: #fff;

    font-weight: 600;
    letter-spacing: 0.3px;

    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.3);
}

/* Optional subtle pulse animation */
.badge-coming {
    animation: pulseBadge 1.8s infinite;
}

@keyframes pulseBadge {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.85;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Full height layout */
.dashboard-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Content takes remaining space */
.dashboard-content {
    flex: 1;
}

/* Footer stays at bottom */
.dashboard-footer {
    font-size: 13px;
    color: #9ca3af;
    padding: 12px 0;

    border-top: 1px solid #e5e7eb;
    background: #fff;
}

/* ===== Topbar ===== */
.topbar {
    position: sticky;
    top: 0;
    z-index: 1040;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    padding: 4px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

/* ===== Modern Circular Hamburger ===== */
.hamburger-btn {
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffffff, #f1f5f9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    position: relative;
    transition: all 0.35s ease;
}

/* Hover (soft modern effect) */
.hamburger-btn:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px) scale(1.05);
}

/* Click press */
.hamburger-btn:active {
    transform: scale(0.92);
}

/* Lines */
.hamburger-btn span {
    width: 18px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transition: all 0.4s cubic-bezier(.77, 0, .18, 1);
}

/* ===== Animation: Hamburger → X ===== */
.hamburger-btn.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger-btn.active span:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.hamburger-btn.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ===== Glow when active ===== */
.hamburger-btn.active {
    background: var(--primary);

}

/* Lines turn white when active */
.hamburger-btn.active span {
    background: #fff;
}

/* ===== Subtle pulse animation ===== */
.hamburger-btn::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(10, 124, 124, 0.15);
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.4s ease;
}

.hamburger-btn:hover::after {
    opacity: 1;
    transform: scale(1.2);
}

/* ===== Right Side Icons ===== */
.topbar-right {
    display: flex;
    align-items: center;
    gap: 18px;
}

/* Icon Buttons */
.icon-btn {
    font-size: 20px;
    position: relative;
    cursor: pointer;
    color: #475569;
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    padding: 10px;
    border-radius: 10px;
    transition: all 0.25s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
}

.icon-btn:hover {
    color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

/* Notification Badge */
.notify-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    padding: 3px 6px;
    border-radius: 50%;
    border: 2px solid #fff;
}

/* Profile Section */
.profile-box {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 10px;
    border-radius: 12px;
    transition: all 0.25s ease;
    cursor: pointer;
}

.profile-box:hover {
    background: rgba(0, 0, 0, 0.05);
}

/* Avatar */
.avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid transparent;
    background: linear-gradient(#fff, #fff) padding-box,
        linear-gradient(135deg, var(--primary), #0ea5a4) border-box;
}

/* Username */
.username {
    font-weight: 600;
    color: #334155;
    font-size: 14px;
}

/* Dropdown Menu */
.dropdown-menu {
    min-width: 220px;
    border-radius: 5px;
    overflow: hidden;
    padding: 4px;
    border: none;
    margin-top: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

/* Dropdown Items */
.dropdown-item {
    padding: 10px 15px;
    font-size: 14px;
    border-radius: 5px;
    color: #334155;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: var(--primary);
    color: #fff;
}

.dropdown-item.text-danger:hover {
    background: #ef4444;
    color: #fff;
}

@media(max-width:768px) {
    .sidebar {
        transform: translateX(-260px);
    }

    .sidebar.show {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
    }

    .main-content.push {
        transform: translateX(240px);
    }

    .topbar .form-label {
        display: none;
    }
}


/* ===== Menu Hover Animation ===== */
.sidebar a {
    position: relative;
    overflow: hidden;
}

.sidebar a::before {
    content: "";
    position: absolute;
    left: -100%;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transition: all 0.5s ease;
}

.sidebar a:hover::before {
    left: 100%;
}

/* ===== Icon Hover Animation ===== */
.icon-btn {
    transition: all 0.3s ease;
}

.icon-btn:hover {
    transform: translateY(-4px) scale(1.08);
}

/* ===== Notification Badge Pulse ===== */
.notify-badge {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }

    70% {
        box-shadow: 0 0 0 8px rgba(239, 68, 68, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

.stream-box{
    height:400px;
    overflow-y:auto;
    padding:8px;
    border:2px solid #dee2e6;
    border-radius:5px;
    background:#f8f9fa;
}

.stream-item{
    cursor:grab;
    margin-bottom:8px;
    border-radius:10px!important;
    transition:.2s;
}

.stream-item:hover{
    background:#eef5ff;
}

.stream-item.active{
    background:var(--primary);
    color:#fff;
}

.stream-item i{
    cursor:grab;
}

.sortable-ghost{
    opacity:.5;
    background:var(--bg-body);
}

.input-group-text{
    border-right:0;
}

.input-group .form-control{
    border-left:0;
}

.dropdown-menu {
    animation: dropdownAnim 0.25s ease;
}

@keyframes dropdownAnim {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ===== Profile Hover Animation ===== */
.profile-box:hover .avatar {
    transform: rotate(5deg) scale(1.08);
}

/* ===== Toggle Button Click Animation ===== */
#toggleBtn:active {
    transform: scale(0.92);
}

/* ===== Submenu Animation ===== */
.submenu-items a {
    opacity: 0;
    transform: translateX(-10px);
    animation: submenuItem 0.3s forwards;
}

.submenu.open .submenu-items a:nth-child(1) {
    animation-delay: 0.05s;
}

.submenu.open .submenu-items a:nth-child(2) {
    animation-delay: 0.1s;
}

.submenu.open .submenu-items a:nth-child(3) {
    animation-delay: 0.15s;
}

.submenu.open .submenu-items a:nth-child(4) {
    animation-delay: 0.2s;
}

@keyframes submenuItem {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}


/* ===== Form Inputs ===== */
.form-control {
    border-radius: 5px;
    border: 1px solid var(--border-color);
    padding: 12px 14px;
    font-size: 14px;
    background: #fff;
    transition: all 0.25s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

/* Hover */
.form-control:hover {
    border-color: var(--primary) !important;
}

/* Focus Style */
.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0px rgba(25, 167, 206, 0.15);
    outline: none;
    transform: translateY(-1px);
}

/* Placeholder */
.form-control::placeholder {
    color: #94a3b8;
    transition: all 0.2s ease;
}

/* ===== Select ===== */
.form-select {
    border-radius: 5px;
    border: 1px solid var(--border-color);
    padding: 12px 14px;
    transition: all 0.25s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.form-select:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 0px rgba(25, 167, 206, 0.15);
    transform: translateY(-1px);
}

/* ===== Buttons ===== */
.btn {
    border-radius: 10px;
    padding: 10px 15px;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

/* Gradient Primary Button */
.btn-primary {
    background: var(--primary);
    border: none;
    color: #fff;
}

/* Hover Effect */
.btn-primary:hover {

    background: var(--primary);
    transform: translateY(-2px);
}


/* Click Effect */
.btn-primary:active {
    background: var(--primary);
    transform: scale(0.96);
}

/* Dark Button */
.btn-dark {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    border: none;
    color: #fff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.btn-dark:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

/* Button Shine Animation */
.btn::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: 0.5s;
}

.btn:hover::after {
    left: 100%;
}

/* ===== Form Label Animation ===== */
.form-group {
    position: relative;
    margin-bottom: 18px;
}

.form-group label {
    position: absolute;
    top: -8px;
    left: 12px;
    background: #fff;
    padding: 0 6px;
    font-size: 12px;
    color: var(--secondary);
    font-weight: 600;
}

/* ===== Form Card ===== */
.form-card {
    background: #fff;
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    animation: formFade 0.5s ease;
}

@keyframes formFade {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Input Icon ===== */
.input-group {
    position: relative;
}

.input-group i {
    position: absolute;
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
    color: #94a3b8;
}

.input-group .form-control {
    padding-left: 38px;
}

/* ===== Card ===== */
.card {
    border: none;
    border-radius: 5px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
}

/* ===== Labels ===== */
.form-label {
    font-weight: 500;
    color: var(--text-dark);
}

/* ===== Input Group ===== */
.input-group-text {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
}

/* ===== Validation ===== */
.is-invalid {
    border-color: var(--danger);
}

.is-valid {
    border-color: var(--success);
}

/* ===== Smooth Hover ===== */
.form-control:hover {
    border-color: var(--secondary);
}


.table {
    color: var(--text-dark) !important;
    border-color: var(--border-color) !important;
    background-color: var(--bg-card) !important;
}

.table th {
    font-weight: 600 !important;
    font-size: 0.85rem !important;
    text-transform: uppercase !important;
    letter-spacing: .04em !important;
    color: var(--text-muted) !important;
    background-color: #f1f5f9 !important;
    border-bottom: 1px solid var(--border-color) !important;
}

.table td {
    vertical-align: middle !important;
    border-color: var(--border-color) !important;
}


.table-striped>tbody>tr:nth-of-type(odd) {
    background-color: #f8fafc !important;
}

.table-striped>tbody>tr:nth-of-type(even) {
    background-color: #ffffff !important;
}

.table-hover>tbody>tr:hover {
    background-color: rgba(79, 70, 229, .06) !important;
}

.table-bordered {
    border: 1px solid var(--border-color) !important;
}

.table-bordered th,
.table-bordered td {
    border: 1px solid var(--border-color) !important;
}


.table-sm th,
.table-sm td {
    padding: .45rem .6rem !important;
    font-size: .875rem !important;
}

.table-success {
    background-color: rgba(34, 197, 94, .08) !important;
}

.table-danger {
    background-color: rgba(239, 68, 68, .08) !important;
}

.table-warning {
    background-color: rgba(245, 158, 11, .12) !important;
}

.table-info {
    background-color: rgba(14, 165, 233, .10) !important;
}


.tr-success {
    border-left: 4px solid var(--success) !important;
}

.tr-danger {
    border-left: 4px solid var(--danger) !important;
}

.tr-warning {
    border-left: 4px solid var(--warning) !important;
}

.tr-info {
    border-left: 4px solid var(--info) !important;
}


.table-head-primary thead th {
    background-color: rgba(79, 70, 229, .1) !important;
    color: var(--primary) !important;
}

.table-head-dark thead th {
    background-color: var(--text-dark) !important;
    color: #fff !important;
}

/* ================================
   Round Icon Button
================================ */
.btn-round {
    width: 34px !important;
    height: 34px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.btn-round i {
    font-size: 14px !important;
    line-height: 1 !important;
}

/* Small Size Fix */
.btn-sm.btn-round {
    width: 30px !important;
    height: 30px !important;
    font-size: 13px !important;
}

/* Hover Elevation */
.btn-round:hover {
    transform: translateY(-1px) !important;
}

.pagination {
    gap: .4rem !important;
}


.page-item .page-link {
    border-radius: var(--radius-sm) !important;
    border: 1px solid var(--border-color) !important;
    background-color: #ffffff !important;
    color: var(--text-dark) !important;
    padding: .45rem .75rem !important;
    font-weight: 500 !important;
    transition: all .15s ease !important;
}


.page-item .page-link:hover {
    background-color: rgba(79, 70, 229, .08) !important;
    color: var(--primary) !important;
    border-color: var(--primary) !important;
}


.page-item.active .page-link {
    background-color: rgba(79, 70, 229, .15) !important;
    color: var(--primary) !important;
    border-color: var(--primary) !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 10px rgba(79, 70, 229, .25) !important;
}

.page-item.disabled .page-link {
    background-color: #f1f5f9 !important;
    color: var(--text-muted) !important;
    border-color: var(--border-color) !important;
    cursor: not-allowed !important;
}


.page-item:first-child .page-link,
.page-item:last-child .page-link {
    font-weight: 600 !important;
}


.pagination-rounded .page-link {
    border-radius: 999px !important;
}

.pagination-sm .page-link {
    padding: .3rem .55rem !important;
    font-size: .85rem !important;
}

.pagination-shadow {
    padding: .5rem !important;
    border-radius: var(--radius-md) !important;
    box-shadow: var(--shadow-soft) !important;
    background-color: var(--bg-card) !important;
}

.icon-box {
    width: 55px;
    height: 55px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.bg-primary {
    background: var(--primary) !important;
}

.bg-success {
    background: var(--success) !important;
}

.bg-warning {
    background: var(--warning) !important;
}

.page-loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    display: none;
}

.spinner {
    width: 45px;
    height: 45px;
    border: 5px solid #e5e5e5;
    border-top: 5px solid var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}


.dropzone {
    border: 2px dashed var(--border-color);
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 8px;
    /* slightly smaller padding */
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease;
    font-size: 13px;
    /* smaller text */
    max-width: 300px;
    /* optional: limit dropzone width */
}

/* Hover */
.dropzone:hover {
    border-color: var(--secondary);
    background: #f0fbff;
}

/* Drag Active */
.dropzone.dz-drag-hover {
    border-color: var(--secondary);
    background: rgba(25, 167, 206, 0.08);
}

/* Message */
.dropzone .dz-message {
    font-size: 13px;
    /* smaller font */
    color: var(--text-muted);
}

/* Preview Card */
.dropzone .dz-preview {
    display: inline-block;
    margin: 6px;
    /* smaller margin */
    width: 100%;
    /* width auto */
    /* small fixed height for preview card */
}

/* Image Preview */
.dropzone .dz-image {
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.dropzone .dz-image img {
    width: auto;
    /* auto width */
    height: 50px;
    /* small height */
    object-fit: cover;
    /* maintain aspect ratio */
}

/* Remove Button */
.dropzone .dz-remove {
    display: inline-block;
    margin-top: 4px;
    font-size: 12px;
    color: var(--danger);
    text-decoration: none;
    cursor: pointer;
}

/* Progress Bar */
.dropzone .dz-progress {
    height: 4px;
    /* smaller progress bar */
    background: var(--border-color);
    border-radius: 50px;
    margin-top: 4px;
}

.dropzone .dz-upload {
    background: var(--secondary);
}

/* Success */
.dropzone .dz-success-mark svg {
    fill: var(--success);
}

/* Error */
.dropzone .dz-error-mark svg {
    fill: var(--danger);
}

#settingsTab {
    border-bottom: none;
    gap: 10px;
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 6px;
    position: relative;
}

#settingsTab::-webkit-scrollbar {
    height: 5px;
}

#settingsTab::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 10px;
}

.tab-slider {
    position: absolute;
    height: 40px;
    background: var(--primary);
    border-radius: 5px;
    font-weight: 200;
    transition: all 0.35s ease;
    z-index: 0;
}

#settingsTab .nav-link {
    border: none;
    background: transparent;
    color: #475569;
    padding: 10px 20px;
    border-radius: 12px;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    white-space: nowrap;
}

#settingsTab .nav-link:hover {
    color: var(--primary);
    transform: translateY(-2px);
}

#settingsTab .nav-link.active {
    color: #fff;
}

#settingsTab .nav-link.active-anim {
    animation: tabPop 0.35s ease;
}

@keyframes tabPop {
    0% {
        transform: scale(0.9);
        opacity: 0.6;
    }

    50% {
        transform: scale(1.05);
        opacity: 1;
    }

    100% {
        transform: scale(1);
    }
}

.tab-content {
    background: #ffffff;
    padding: 28px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    animation: tabFade 0.35s ease;
    margin-top: 10px;
}

@keyframes tabFade {
    from {
        opacity: 0;
        transform: translateY(15px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.tab-content {
    position: relative;
    background: #ffffff;
    padding: 28px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

/* Hide all tab panes by default */
.tab-pane {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
    transition: all 0.4s ease;
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
}

/* Active tab pane */
.tab-pane.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    position: relative;
    z-index: 2;
}

/* Slide animation */
.tab-pane.slide-left {
    transform: translateX(40px);
    opacity: 0;
}

.tab-pane.slide-right {
    transform: translateX(-40px);
    opacity: 0;
}

/* Fade animation */
.tab-pane.fade-in {
    animation: fadeIn 0.4s ease;
}

.tab-pane.active {
    animation: tabSmooth 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes tabSmooth {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.96);
    }

    50% {
        opacity: 0.5;
        transform: translateY(8px) scale(0.98);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.tab-pane.active {
    animation: tabSmooth 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes tabSmooth {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.96);
    }

    50% {
        opacity: 0.5;
        transform: translateY(8px) scale(0.98);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes tabFade {
    from {
        opacity: 0;
        transform: translateY(15px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}


/* Accordion Card */
.accordion-item {
    border: none;
    border-radius: 5px;
    margin-bottom: 15px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    background: #ffffff;
}

/* Hover Effect */
.accordion-item:hover {
    transform: translateY(-3px);

}

/* Accordion Header */
.accordion-button {
    font-weight: 600;
    font-size: 15px;
    padding: 18px;
    background: #ffffff;
    color: var(--primary);
    border: none;
    box-shadow: none;
    transition: all 0.3s ease;
}

/* Active Header */
.accordion-button:not(.collapsed) {
    background: var(--primary);
    color: #fff;
}

/* Arrow Animation */
.accordion-button::after {
    transition: transform 0.3s ease;
}

.accordion-button:not(.collapsed)::after {
    transform: rotate(180deg);
}

/* Accordion Body Animation */
.accordion-collapse {
    transition: all 0.35s ease;
}

.accordion-body {
    padding: 20px;
    animation: fadeIn 0.4s ease;
}

/* Fade Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Editor Box */
#welcome_editor,
#blog_editor,
#admin_register_editor,
#reset_editor,
#donation_success_editor,
#admin_donation_editor,
#kyc_approved_editor,
#kyc_reject_editor {
    border-radius: 5px;
    margin-top: 10px;
    border: 1px solid #d0d5dd;
    background: #fff;
    padding: 10px;
}

.payment-box {
    display: none;
}

.payment-card {
    cursor: pointer;
    display: block;
}

.payment-card input {
    display: none;
}

.card-content {
    border: 2px solid #eee;
    border-radius: 5px;
    padding: 18px;
    position: relative;
    transition: all 0.3s ease;
    background: #fff;
}

.payment-card:hover .card-content {
    border-color: var(--primary);
    transform: translateY(-3px);
}

.payment-card input:checked+.card-content {
    border-color: var(--primary);
    background: #f4f8ff;
}

.icon {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.check-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    color: var(--primary);
    font-size: 18px;
    display: none;
}

.payment-card input:checked+.card-content .check-icon {
    display: block;
}

#donationChart,
#paymentChart {
    height: 300px !important;
}


.sidebar-version {
    margin-top: auto;
    padding: 14px;
    text-align: center;
}

.sidebar-version small {
    background: rgba(255, 255, 255, 0.08);
    padding: 6px 12px;
    border-radius: 30px;
    color: #bbb;
    font-size: 11px;
    display: inline-block;
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: #fff;
    border-bottom: 1px solid #eee;
    border-radius: 16px 16px 0 0;
}

.chat-info {
    min-width: 0;
}

.chat-header h5 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    line-height: 1.2;
}

.chat-header small {
    display: block;
    margin-top: 4px;
    color: #6b7280;
    font-size: 13px;
    line-height: 1.4;
}

.status-badge {
    flex-shrink: 0;
    background: #22c55e;
    color: #fff;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.status-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
}

@media (max-width:576px) {
    .chat-header {
        padding: 14px;
        flex-direction: column;
        align-items: flex-start;
    }

    .chat-header h5 {
        font-size: 16px;
    }

    .chat-header small {
        font-size: 12px;
    }

    .status-badge {
        padding: 7px 14px;
        font-size: 12px;
    }
}

.conversation-list {
    height: 75vh;
    overflow-y: auto;
    padding: 12px;
}

.conversation-link {
    text-decoration: none;
    display: block;
}

.conversation-item {
    background: #fff;
    border: 1px solid #edf0f5;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 12px;
    transition: all .3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .04);
}

.conversation-item:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
}

.conversation-link.active .conversation-item {
    background: linear-gradient(135deg, #f5f9ff, #eef4ff);
    border-color: var(--primary);
}

.conversation-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.avatarmsg {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    flex-shrink: 0;
}

.user-text {
    min-width: 0;
}

.user-text h6 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-text span {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #6b7280;
}

.status-badge {
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.status-badge.online {
    background: #dcfce7;
    color: #16a34a;
}

.status-badge.closed {
    background: #f3f4f6;
    color: #6b7280;
}

.empty-chat {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #6b7280;
    padding: 40px 20px;
}

.conversation-list::-webkit-scrollbar {
    width: 6px;
}

.conversation-list::-webkit-scrollbar-thumb {
    background: #d6d6d6;
    border-radius: 20px;
}

@media(max-width:768px) {

    .conversation-list {
        height: auto;
        max-height: 70vh;
        padding: 10px;
    }

    .conversation-item {
        padding: 14px;
        border-radius: 18px;
    }

    .avatar {
        width: 46px;
        height: 46px;
        font-size: 16px;
    }

    .user-text h6 {
        font-size: 14px;
    }

    .user-text span {
        font-size: 11px;
    }

    .status-badge {
        padding: 6px 12px;
        font-size: 11px;
    }

}

.chat-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
    background: #fff;
    border-bottom: 1px solid #edf0f5;
    border-radius: 20px 20px 0 0;
    flex-wrap: wrap;
}

.chat-user {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.user-details {
    min-width: 0;
}

.user-details h5 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-details span {
    display: block;
    margin-top: 4px;
    color: #6b7280;
    font-size: 13px;
}

.chat-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.assign-btn,
.close-btn {
    border: none;
    padding: 11px 18px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 600;
    transition: .3s ease;
    cursor: pointer;
    white-space: nowrap;
}

.assign-btn {
    background: #ecfdf3;
    color: #16a34a;
}

.assign-btn:hover {
    background: #16a34a;
    color: #fff;
}

.close-btn {
    background: #fef2f2;
    color: #dc2626;
}

.close-btn:hover {
    background: #dc2626;
    color: #fff;
}

@media(max-width:768px) {

    .chat-topbar {
        padding: 16px;
        align-items: flex-start;
    }

    .chat-user {
        width: 100%;
    }


    .user-details h5 {
        font-size: 16px;
    }

    .user-details span {
        font-size: 12px;
    }

    .chat-actions {
        width: 100%;
    }

    .assign-btn,
    .close-btn {
        flex: 1;
        justify-content: center;
        text-align: center;
        padding: 10px 14px;
        font-size: 13px;
    }

}

.chat-messages {
    height: 65vh;
    overflow-y: auto;
    padding: 22px;
    background: #f5f7fb;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.message-row {
    display: flex;
    align-items: flex-end;
    gap: 10px;
}

.admin-row {
    justify-content: flex-end;
}

.visitor-row {
    justify-content: flex-start;
}

.message-avatar {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: #e5e7eb;
    color: #111827;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
}

.admin-avatar {
    background: var(--primary);
    color: #fff;
}

.chat-bubble {
    max-width: 75%;
    padding: 16px 18px;
    border-radius: 22px;
    position: relative;
    word-break: break-word;
    box-shadow: 0 6px 25px rgba(0, 0, 0, .05);
}

.admin-bubble {
    background: var(--primary);
    color: #fff;
    border-bottom-right-radius: 8px;
}

.visitor-bubble {
    background: #fff;
    color: #111827;
    border-bottom-left-radius: 8px;
    border: 1px solid #edf0f5;
}

.message-user {
    font-size: 12px;
    font-weight: 700;
    opacity: .8;
    margin-bottom: 8px;
    letter-spacing: .3px;
    text-transform: uppercase;
}

.message-text {
    font-size: 14px;
    line-height: 1.7;
}

.attachment-wrap {
    margin-top: 14px;
}

.attachment-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 14px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    background: rgba(255, 255, 255, .15);
    color: inherit;
    border: 1px solid rgba(255, 255, 255, .15);
    transition: .3s ease;
}

.visitor-bubble .attachment-btn {
    background: #f3f4f6;
    color: #111827;
    border-color: #e5e7eb;
}

.attachment-btn:hover {
    transform: translateY(-1px);
}

.message-time {
    margin-top: 10px;
    font-size: 11px;
    opacity: .7;
    text-align: right;
}

.empty-messages {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    font-size: 15px;
}

.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 20px;
}

@media(max-width:768px) {

    .chat-messages {
        height: 60vh;
        padding: 14px;
        gap: 14px;
    }

    .chat-bubble {
        max-width: 90%;
        padding: 14px;
        border-radius: 18px;
    }

    .message-avatar {
        width: 36px;
        height: 36px;
        border-radius: 12px;
        font-size: 12px;
    }

    .message-text {
        font-size: 13px;
    }

    .attachment-btn {
        width: 100%;
        justify-content: center;
        font-size: 12px;
    }

}

.chat-footer {
    padding: 18px;
    background: #fff;
    border-top: 1px solid #edf0f5;
    border-radius: 0 0 10px 10px;
}

.chat-form {
    width: 100%;
}

.chat-input-area {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 14px;
    transition: .3s ease;
}

.chat-input-area:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(13, 110, 253, .08);
}

.chat-input-area textarea {
    width: 100%;
    border: none;
    outline: none;
    resize: none;
    background: transparent;
    min-height: 60px;
    max-height: 140px;
    font-size: 14px;
    line-height: 1.6;
    color: #111827;
}

.chat-input-area textarea::placeholder {
    color: #9ca3af;
}

.chat-actions {
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.file-upload {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 10px;
    background: #eef2ff;
    color: var(--primary-dark);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: .3s ease;
}

.file-upload:hover {
    background: #dbe4ff;
}

.file-upload input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.send-btn {
    border: none;
    background: var(--primary);
    color: #fff;
    padding: 12px 24px;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: .3s ease;
    min-width: 120px;
}

.send-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(13, 110, 253, .25);
}

@media(max-width:768px) {

    .chat-footer {
        padding: 14px;
    }

    .chat-input-area {
        padding: 12px;
        border-radius: 20px;
    }

    .chat-input-area textarea {
        font-size: 13px;
        min-height: 54px;
    }

    .chat-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .file-upload,
    .send-btn {
        width: 100%;
        justify-content: center;
    }

}

.empty-state {
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.empty-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 24px;
    text-align: center;
    max-width: 380px;
    width: 100%;
    animation: fadeIn .4s ease-in-out;
}

.empty-card h4 {
    font-size: 20px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 8px;
}

.empty-card p {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.6;
}

.empty-line {
    padding: 16px;
    border: 1px solid #eef2f7;
    margin: 0 auto 10px;
    border-radius: 10px;
}

.empty-card small {
    color: #9ca3af;
    font-size: 12px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media(max-width:768px) {

    .empty-card {
        padding: 30px 20px;
        border-radius: 18px;
    }

    .empty-icon {
        width: 90px;
        height: 90px;
    }

    .empty-icon img {
        width: 60px;
    }

    .empty-card h4 {
        font-size: 18px;
    }

}

.update-loader {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.loader-box {
    background: #fff;
    padding: 35px;
    border-radius: 16px;
    text-align: center;
    width: 320px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.3s ease;
}

.loader-box h4 {
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 22px;
    font-weight: 700;
}

.loader-box p {
    color: #666;
    font-size: 14px;
    margin: 0;
}

.spinner {
    width: 65px;
    height: 65px;
    border: 5px solid #e5e5e5;
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: auto;
}

.d-none {
    display: none !important;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.setup-container {
    display: flex;
    height: 100vh;
    justify-content: center;
    align-items: center;
    background: url('/assets/img/setup.jpg') no-repeat center center;
    background-size: cover;
    position: relative;
}

.setup-container::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    /* dark overlay for readability */
}

.setup-form {
    position: relative;
    z-index: 1;
    max-width: 400px;
    width: 100%;
    background: #ffffff;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}



@media (max-width: 768px) {
    .setup-container {
        background-position: top;
    }

    .setup-form {
        margin: 20px;
    }
}

.setup-container-install {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: url('/assets/img/setup.jpg') no-repeat center center;
    background-size: cover;
    position: relative;
    padding: 20px;
}

.setup-container-install::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
}

.setup-form-install {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 720px;
    background: #fff;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

.setup-title {
    text-align: center;
    margin-bottom: 35px;
    font-weight: 700;
}

.bs-stepper-header {
    margin-bottom: 35px;
    overflow-x: auto;
    overflow-y: hidden;
    flex-wrap: nowrap !important;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 10px;
    scroll-behavior: smooth;
}

.bs-stepper-header::-webkit-scrollbar {
    display: none;
}

.step {
    flex: 0 0 auto;
    transition: 0.3s ease;
}

.step-trigger {
    padding: 6px 12px;
    border-radius: 12px;
    color: var(--primary);
    transition: all 0.3s ease;
    white-space: nowrap;
    min-width: 140px;
    position: relative;
    overflow: hidden;
}

.step-trigger::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(13, 110, 253, 0.08);
    opacity: 0;
    transition: 0.3s ease;
}

.step-trigger:hover::before {
    opacity: 1;
}

.step-trigger:hover {
    transform: translateY(-2px);
}

.bs-stepper-circle {
    background: var(--primary);
    color: #fff;
    transition: all 0.3s ease;
}

.active .bs-stepper-circle {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(13, 110, 253, 0.35);
}

.active .step-trigger {
    background: rgba(13, 110, 253, 0.08);
}

.step-title {
    font-weight: 600;
}

.btn-group-custom {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 25px;
}

.bs-stepper-content .content {
    animation: slideFade 0.4s ease;
}

@keyframes slideFade {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (max-width: 768px) {

    .setup-form-install {
        padding: 20px;
        border-radius: 10px;
        min-height: 100vh;
    }

    .bs-stepper-header {
        justify-content: flex-start !important;
        gap: 10px;
        padding-left: 5px;
    }

    .step-trigger {
        min-width: 120px;
        padding: 10px 14px;
    }

    .btn-group-custom {
        flex-direction: column;
    }

    .btn-group-custom .btn {
        width: 100%;
    }
}

.requirement-card {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 5px;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: 0.3s ease;
    position: relative;
    overflow: hidden;
}

.requirement-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #198754;
}

.requirement-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.requirement-card h6 {
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    color: #212529;
}

.requirement-card span {
    font-size: 13px;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 5px;
    background: #d1f7df;
    color: #198754;
}

.requirement-card.success {
    border-color: #d1f7df;
}

.requirement-card.error {
    border-color: #ffd6d6;
}

.requirement-card.error::before {
    background: #dc3545;
}

.requirement-card.error span {
    background: #ffe5e5;
    color: #dc3545;
}

.auth-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: url('assets/img/setup.jpg') no-repeat center center;
    background-size: cover;
    position: relative;
    padding: 20px;
}

.auth-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.auth-card {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.auth-title {
    font-size: 28px;
    font-weight: 700;
    color: #111827;
    text-align: center;
    margin-bottom: 8px;
}

.auth-subtitle {
    font-size: 14px;
    color: #6b7280;
    text-align: center;
    margin-bottom: 30px;
}

.auth-label {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #374151;
}

.auth-input {
    height: 52px;
    border-radius: 12px;
    border: 1px solid #d1d5db;
    padding: 0 15px;
    font-size: 15px;
    width: 100%;
    outline: none;
    transition: 0.3s;
}

.auth-input:focus {
    border-color: #16a34a;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.15);
}

.auth-group {
    margin-bottom: 20px;
}

.auth-button {
    width: 100%;
    height: 54px;
    border: none;
    border-radius: 14px;
    background: #16a34a;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    transition: 0.3s;
}

.auth-button:hover {
    background: #15803d;
}

.auth-footer {
    text-align: center;
    margin-top: 18px;
}

.auth-footer a {
    text-decoration: none;
    color: #16a34a;
    font-weight: 600;
}

@media (max-width: 576px) {
    .auth-card {
        padding: 30px 22px;
    }
}

.action-dropdown{
    display:inline-block;
}

.action-toggle{
    width:36px;
    height:36px;
    display:flex;
    align-items:center;
    justify-content:center;
    border:none;
    outline:none;
    background:transparent;
    border-radius:8px;
    cursor:pointer;
    transition:.2s;
}

.action-toggle i{
    font-size:18px;
    color:#6b7280;
    pointer-events:none;
}

.action-toggle:hover{
    background:#f3f4f6;
}

.action-menu{
    position:absolute;
    min-width:180px;
    background:#fff;
    border:1px solid #e5e7eb;
    border-radius:10px;
    box-shadow:0 10px 30px rgba(0,0,0,.12);
    overflow:hidden;
    display:none;
    z-index:999999;
}

.action-menu.show{
    display:block;
}

.action-item{
    width:100%;
    display:flex;
    align-items:center;
    gap:10px;
    padding:11px 14px;
    border:none;
    background:transparent;
    color:#374151;
    text-decoration:none;
    text-align:left;
    font-size:14px;
    cursor:pointer;
    transition:.2s;
}

.action-item:hover{
    background:#f3f4f6;
}

.action-item i{
    width:18px;
    text-align:center;
    font-size:15px;
}

.action-item.text-primary{
    color:#2563eb;
}

.action-item.text-success{
    color:#16a34a;
}

.action-item.text-warning{
    color:#d97706;
}

.action-item.text-danger{
    color:#dc2626;
}

.theme-color-picker{
    width:100%;
    height:50px;
    padding:4px;
    border:1px solid var(--border-color);
    border-radius:10px;
    cursor:pointer;
    background:#fff;
    transition:.25s;
}

.theme-color-picker:hover{
    border-color:var(--primary);
    box-shadow:0 0 0 3px rgba(10,124,124,.15);
}

.theme-color-picker::-webkit-color-swatch-wrapper{
    padding:0;
}

.theme-color-picker::-webkit-color-swatch{
    border:none;
    border-radius:8px;
}

.theme-color-picker::-moz-color-swatch{
    border:none;
    border-radius:8px;
}
table.dataTable.dtr-inline.collapsed > tbody > tr > td.dtr-control,
table.dataTable.dtr-inline.collapsed > tbody > tr > th.dtr-control{
    position:relative;
    padding-left:42px !important;
}

table.dataTable.dtr-inline.collapsed > tbody > tr > td.dtr-control::before,
table.dataTable.dtr-inline.collapsed > tbody > tr > th.dtr-control::before{
    display:none !important;
    content:none !important;
}

table.dataTable.dtr-inline.collapsed > tbody > tr > td.dtr-control::after,
table.dataTable.dtr-inline.collapsed > tbody > tr > th.dtr-control::after{
    content:"+";
    position:absolute;
    left:12px;
    top:50%;
    transform:translateY(-50%);
    width:20px;
    height:20px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:50%;
    background:var(--primary);
    color:#fff;
    font-size:16px;
    font-weight:700;
    font-family:Arial,sans-serif;
    line-height:20px;
    box-sizing:border-box;
}

table.dataTable.dtr-inline.collapsed > tbody > tr.dtr-expanded > td.dtr-control::after,
table.dataTable.dtr-inline.collapsed > tbody > tr.dtr-expanded > th.dtr-control::after{
    content:"-";
    background:#dc3545;
    color:#fff;
}

.dt-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.dt-buttons .dt-button {
    background: var(--primary) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 8px 16px !important;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all .25s ease;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
    text-decoration: none !important;
}

.dt-buttons .dt-button:hover {
    transform: translateY(-2px);
    color: #fff !important;
}

.dt-buttons .dt-button:focus,
.dt-buttons .dt-button:active {
    outline: none !important;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25) !important;
}

/* Copy */
.dt-button.buttons-copy {
    background: #6c757d !important;
}

.dt-button.buttons-copy:hover {
    background: #5c636a !important;
}

/* CSV */
.dt-button.buttons-csv {
    background: #0dcaf0 !important;
}

.dt-button.buttons-csv:hover {
    background: #31d2f2 !important;
}

/* Excel */
.dt-button.buttons-excel {
    background: #198754 !important;
}

.dt-button.buttons-excel:hover {
    background: #157347 !important;
}

/* PDF */
.dt-button.buttons-pdf {
    background: #dc3545 !important;
}

.dt-button.buttons-pdf:hover {
    background: #bb2d3b !important;
}

/* Print */
.dt-button.buttons-print {
    background: #fd7e14 !important;
}

.dt-button.buttons-print:hover {
    background: #e96b02 !important;
}

/* Column Visibility */
.dt-button.buttons-colvis {
    background: #6f42c1 !important;
}

.dt-button.buttons-colvis:hover {
    background: #5b35a5 !important;
}

/* Page Length */
.dt-button.buttons-page-length {
    background: #20c997 !important;
}

.dt-button.buttons-page-length:hover {
    background: #1aa179 !important;
}

/* Collection (dropdown buttons) */
.dt-button.buttons-collection {
    background: #495057 !important;
}

.dt-button.buttons-collection:hover {
    background: #343a40 !important;
}

/* Icons */
.dt-buttons .dt-button i {
    font-size: 15px;
}

/* Disabled */
.dt-buttons .dt-button.disabled,
.dt-buttons .dt-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    box-shadow: none;
}

.dt-select-all,
.dt-row-select {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #d0d5dd;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    position: relative;
    transition: all .25s ease;
    vertical-align: middle;
    box-shadow: 0 2px 6px rgba(0,0,0,.05);
}

.dt-select-all:hover,
.dt-row-select:hover {
    border-color: var(--primary);
    transform: scale(1.08);
    box-shadow: 0 6px 18px rgba(13,110,253,.18);
}

.dt-select-all:checked,
.dt-row-select:checked {
    background: var(--primary);
    border-color: var(--primary);
    animation: checkboxPop .25s ease;
}

.dt-select-all::after,
.dt-row-select::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 1px;
    width: 5px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) scale(0);
    opacity: 0;
    transition: all .2s ease;
}

.dt-select-all:checked::after,
.dt-row-select:checked::after {
    opacity: 1;
    transform: rotate(45deg) scale(1);
}

.dt-select-all:focus,
.dt-row-select:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(13,110,253,.2);
}

.dt-select-all:indeterminate {
    background: var(--primary);
    border-color: var(--primary);
}

.dt-select-all:indeterminate::after {
    content: "";
    width: 10px;
    height: 2px;
    border: 0;
    background: #fff;
    border-radius: 3px;
    top: 7px;
    left: 3px;
    transform: none;
    opacity: 1;
}

@keyframes checkboxPop {
    0% {
        transform: scale(.7);
    }
    60% {
        transform: scale(1.15);
    }
    100% {
        transform: scale(1);
    }
}

.table-loading td{
    padding:60px 20px !important;
    background:#fff;
    border:none !important;
    text-align:center;
    vertical-align:middle;
}

.table-loader{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:8px;
    margin-bottom:15px;
}

.table-loader span{
    width:14px;
    height:14px;
    border-radius:50%;
    background:#0d6efd;
    animation:tableBounce .8s infinite ease-in-out both;
}

.table-loader span:nth-child(2){
    animation-delay:.15s;
}

.table-loader span:nth-child(3){
    animation-delay:.3s;
}

.table-loading .text-muted{
    font-size:15px;
    font-weight:500;
    color:#6c757d !important;
    letter-spacing:.3px;
}

@keyframes tableBounce{

    0%,80%,100%{
        transform:scale(.4);
        opacity:.35;
    }

    40%{
        transform:scale(1);
        opacity:1;
    }

}

.choices-locked .choices__inner {
    background-color: #f8f9fa;
}

.choices-locked .choices__list--single {
    cursor: not-allowed;
}

.choices-locked::after {
    cursor: not-allowed;
}