:root {
    --sidebar-width: 260px;
    --topbar-height: 70px;
    --primary-color: #4e54c8;
    --sidebar-bg: #1e1e2d;
    --sidebar-hover: #2b2b40;
    --sidebar-color: #9899ac;
    --sidebar-active-color: #ffffff;
    --sidebar-active-bg: #4e54c8;
}

body {
    background-color: #f4f6f9;
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

body.auth-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
    padding: 1.5rem;
    background: radial-gradient(circle at 10% 15%, rgba(78, 84, 200, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 90% 85%, rgba(143, 148, 251, 0.1) 0%, transparent 40%),
        #f4f6fa;
    position: relative;
    overflow-x: hidden;
}

/* Ambient glow blobs behind the card */
.auth-body::before,
.auth-body::after {
    content: "";
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    pointer-events: none;
    opacity: 0.45;
}

.auth-body::before {
    width: 320px;
    height: 320px;
    top: -50px;
    left: -50px;
    background: linear-gradient(135deg, rgba(78, 84, 200, 0.25), rgba(143, 148, 251, 0.15));
}

.auth-body::after {
    width: 360px;
    height: 360px;
    bottom: -60px;
    right: -60px;
    background: linear-gradient(135deg, rgba(17, 153, 142, 0.15), rgba(78, 84, 200, 0.2));
}

.auth-container {
    width: 100%;
    max-width: 440px;
    position: relative;
    z-index: 1;
    animation: authFadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.auth-card {
    width: 100%;
    padding: 2.5rem 2.25rem;
    border-radius: 20px;
    box-shadow: 0 20px 45px -10px rgba(30, 30, 45, 0.1), 0 0 1px 1px rgba(0, 0, 0, 0.04);
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.auth-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #4e54c8, #8f94fb, #11998e);
}

.auth-brand-logo {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: linear-gradient(135deg, #4e54c8, #8f94fb);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.75rem;
    box-shadow: 0 8px 20px rgba(78, 84, 200, 0.3);
    margin-bottom: 1.25rem;
}

.auth-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1e1e2d;
    letter-spacing: -0.5px;
    margin-bottom: 0.35rem;
}

.auth-subtitle {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 1.75rem;
}

.auth-input-group {
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.auth-input-group .input-group-text {
    background-color: #f8fafc;
    border: 1px solid #dee2e6;
    border-right: none;
    color: #6c757d;
    padding-left: 1rem;
    padding-right: 0.75rem;
    font-size: 1.1rem;
    transition: all 0.2s ease;
}

.auth-input-group .form-control {
    border: 1px solid #dee2e6;
    border-left: none;
    padding: 0.75rem 1rem 0.75rem 0.25rem;
    font-size: 0.95rem;
    color: #2b2b40;
    transition: all 0.2s ease;
}

.auth-input-group .form-control:focus {
    border-color: #dee2e6;
    box-shadow: none;
}

.auth-input-group:focus-within {
    box-shadow: 0 0 0 3px rgba(78, 84, 200, 0.15);
}

.auth-input-group:focus-within .input-group-text,
.auth-input-group:focus-within .form-control,
.auth-input-group:focus-within .btn-toggle-pwd {
    border-color: #4e54c8;
}

.auth-input-group:focus-within .input-group-text {
    color: #4e54c8;
}

.auth-input-group .btn-toggle-pwd {
    background-color: #ffffff;
    border: 1px solid #dee2e6;
    border-left: none;
    color: #6c757d;
    padding-right: 1rem;
    transition: all 0.2s ease;
}

.auth-input-group .btn-toggle-pwd:hover {
    color: #1e1e2d;
    background-color: #f8fafc;
}

.btn-auth-primary {
    background: linear-gradient(135deg, #4e54c8 0%, #686de0 100%);
    border: none;
    color: #ffffff;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.8rem 1.5rem;
    border-radius: 10px;
    letter-spacing: 0.3px;
    box-shadow: 0 6px 18px rgba(78, 84, 200, 0.28);
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-auth-primary:hover {
    background: linear-gradient(135deg, #4349b8 0%, #5a5fcf 100%);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(78, 84, 200, 0.38);
}

.btn-auth-primary:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(78, 84, 200, 0.25);
}

.btn-auth-primary:disabled {
    opacity: 0.75;
    transform: none;
    cursor: not-allowed;
}

.auth-footer-badge {
    margin-top: 1.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid #f1f3f5;
    text-align: center;
    font-size: 0.8rem;
    color: #8c909a;
}

/* Logout Sequence Styles */
.logout-icon-wrapper {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(17, 153, 142, 0.12), rgba(56, 239, 125, 0.18));
    color: #11998e;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    margin-bottom: 1.25rem;
    position: relative;
    box-shadow: 0 8px 24px rgba(17, 153, 142, 0.2);
    animation: logoutPulse 2s infinite ease-in-out;
}

.logout-checklist {
    background: #f8fafc;
    border: 1px solid #edf2f7;
    border-radius: 12px;
    padding: 1rem 1.2rem;
    margin: 1.5rem 0 1.25rem;
    text-align: left;
}

.logout-check-item {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    color: #495057;
    margin-bottom: 0.5rem;
}

.logout-check-item:last-child {
    margin-bottom: 0;
}

.logout-check-item i {
    font-size: 1.05rem;
    margin-right: 0.65rem;
    color: #11998e;
}

.logout-progress-track {
    height: 6px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin: 1.25rem 0 0.5rem;
}

.logout-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4e54c8, #11998e);
    width: 100%;
    border-radius: 4px;
    transition: width 1s linear;
}

@keyframes authFadeIn {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes logoutPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(17, 153, 142, 0.35);
    }

    70% {
        box-shadow: 0 0 0 14px rgba(17, 153, 142, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(17, 153, 142, 0);
    }
}

.sidebar {
    width: var(--sidebar-width);
    min-height: 100vh;
    background: var(--sidebar-bg);
    color: var(--sidebar-color);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.sidebar-header {
    height: var(--topbar-height);
    display: flex;
    align-items: center;
    padding: 0 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-brand {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-brand:hover {
    color: #fff;
}

.sidebar-menu {
    padding: 20px 0;
    height: calc(100vh - var(--topbar-height));
    overflow-y: auto;
}

.sidebar-menu::-webkit-scrollbar {
    width: 5px;
}

.sidebar-menu::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
}

.menu-header {
    padding: 10px 25px;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 600;
    color: #6c7293;
    letter-spacing: 1px;
    margin-top: 10px;
}

.sidebar-link {
    color: var(--sidebar-color);
    text-decoration: none;
    padding: 12px 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s ease;
    font-weight: 500;
    font-size: 0.95rem;
}

.sidebar-link i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.sidebar-link:hover {
    color: var(--sidebar-active-color);
    background: var(--sidebar-hover);
}

.sidebar-link.active {
    color: var(--sidebar-active-color);
    background: var(--sidebar-active-bg);
    border-left: 4px solid #fff;
}

/* Collapsible Sidebar Styles */
.sidebar-collapse-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    color: var(--sidebar-color);
    text-decoration: none;
    padding: 11px 25px;
    font-weight: 500;
    font-size: 0.93rem;
    transition: all 0.2s ease;
    border: none;
    background: transparent;
    cursor: pointer;
}

.sidebar-collapse-toggle:hover {
    color: var(--sidebar-active-color);
    background: var(--sidebar-hover);
}

.sidebar-collapse-toggle.active-parent {
    color: #ffffff;
    font-weight: 600;
}

.sidebar-collapse-toggle .menu-icon {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
    margin-right: 12px;
}

.sidebar-collapse-toggle .collapse-arrow {
    font-size: 0.75rem;
    transition: transform 0.25s ease;
    color: #6c7293;
}

.sidebar-collapse-toggle:not(.collapsed) .collapse-arrow {
    transform: rotate(180deg);
    color: #fff;
}

.sidebar-submenu {
    list-style: none;
    padding: 4px 0 8px 0;
    margin: 0;
    background: rgba(0, 0, 0, 0.18);
}

.sidebar-submenu .sidebar-sublink {
    display: flex;
    align-items: center;
    padding: 8px 20px 8px 46px;
    color: #9293a8;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 400;
    transition: all 0.2s ease;
    position: relative;
}

.sidebar-submenu .sidebar-sublink::before {
    content: "";
    position: absolute;
    left: 32px;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #555874;
    transition: all 0.2s ease;
}

.sidebar-submenu .sidebar-sublink:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.04);
}

.sidebar-submenu .sidebar-sublink:hover::before {
    background: #4e54c8;
    box-shadow: 0 0 6px rgba(78, 84, 200, 0.8);
}

.sidebar-submenu .sidebar-sublink.active {
    color: #ffffff;
    font-weight: 600;
    background: rgba(78, 84, 200, 0.2);
}

.sidebar-submenu .sidebar-sublink.active::before {
    background: #ffffff;
    box-shadow: 0 0 6px #ffffff;
}

.main-wrapper {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.topbar {
    height: var(--topbar-height);
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 25px;
    z-index: 900;
}

.tenant-badge {
    background: rgba(78, 84, 200, 0.08);
    color: var(--primary-color);
    padding: 6px 14px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1.05rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(78, 84, 200, 0.12);
    max-width: 100%;
}

.tenant-name-text {
    max-width: 650px;
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 600;
}

@media (max-width: 1200px) {
    .tenant-name-text {
        max-width: 480px;
    }
}

@media (max-width: 991px) {
    .tenant-name-text {
        max-width: 320px;
    }
}

@media (max-width: 767px) {
    .tenant-name-text {
        max-width: 200px;
        font-size: 0.92rem;
    }
}

@media (max-width: 575px) {
    .tenant-name-text {
        max-width: 150px;
        font-size: 0.85rem;
    }
}

.tenant-logo-badge {
    max-height: 32px;
    max-width: 38px;
    object-fit: contain;
    border-radius: 6px;
    background: #fff;
    padding: 2px;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.topbar-action-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #64748b;
    font-size: 1rem;
    transition: all 0.2s ease;
    cursor: pointer;
}

.topbar-action-btn:hover {
    background: rgba(78, 84, 200, 0.1);
    color: var(--primary-color);
    border-color: rgba(78, 84, 200, 0.25);
}

.user-profile-btn {
    padding: 5px 12px 5px 6px;
    border-radius: 30px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
    cursor: pointer;
}

.user-profile-btn::after {
    display: none;
}

.user-profile-btn:hover {
    background: #edf2f7;
    border-color: #cbd5e1;
}

.user-avatar-badge {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4e54c8, #8f94fb);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(78, 84, 200, 0.25);
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.user-name-display {
    font-size: 0.9rem;
    line-height: 1.2;
    color: #1e1e2d;
    max-width: 150px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-role-display {
    font-size: 0.72rem;
    line-height: 1.2;
    letter-spacing: 0.3px;
    color: #64748b;
}

.user-dropdown-menu {
    min-width: 260px;
    max-width: calc(100vw - 24px);
    padding: 0;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12), 0 0 1px 1px rgba(0, 0, 0, 0.04);
    border: 1px solid #e9ecef;
    overflow: hidden;
}

.user-dropdown-header {
    padding: 16px;
    background: #f8fafc;
    border-bottom: 1px solid #edf2f7;
}

.sidebar-toggle-btn {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #495057;
    background: #f8fafc;
    border: 1px solid #e9ecef;
    transition: all 0.2s ease;
}

.sidebar-toggle-btn:hover {
    background: #e9ecef;
    color: #1e1e2d;
}

/* Mobile Topbar Responsiveness */
@media (max-width: 767.98px) {
    :root {
        --topbar-height: 60px;
    }

    .topbar {
        padding: 0 12px;
    }

    .sidebar-toggle-btn {
        width: 34px;
        height: 34px;
        border-radius: 6px;
    }

    .tenant-badge {
        padding: 4px 8px;
        font-size: 0.82rem;
        gap: 6px;
        border-radius: 8px;
    }

    .tenant-logo-badge {
        max-height: 24px;
        max-width: 28px;
        padding: 1px;
    }

    .tenant-name-text {
        max-width: 140px;
    }

    .topbar-action-btn {
        width: 34px;
        height: 34px;
        font-size: 0.9rem;
    }

    .user-profile-btn {
        padding: 0;
        background: transparent;
        border: none;
    }

    .user-avatar-badge {
        width: 34px;
        height: 34px;
        font-size: 0.8rem;
    }
}

@media (max-width: 420px) {
    .topbar {
        padding: 0 8px;
    }

    .tenant-name-text {
        max-width: 100px;
    }

    .tenant-badge {
        font-size: 0.78rem;
        padding: 3px 6px;
    }
}

@media (max-width: 991.98px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.show {
        transform: translateX(0);
    }

    .main-wrapper {
        margin-left: 0 !important;
    }

    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(15, 23, 42, 0.5);
        z-index: 999;
        display: none;
        backdrop-filter: blur(2px);
    }

    .sidebar-overlay.show {
        display: block;
    }
}

.content-area {
    padding: 30px;
    flex: 1;
}

.footer {
    background: #fff;
    padding: 20px 30px;
    border-top: 1px solid #e9ecef;
    color: #6c757d;
    font-size: 0.85rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dashboard-card {
    border: none;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow: hidden;
}

.dashboard-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.card-gradient-primary {
    background: linear-gradient(135deg, #4e54c8, #8f94fb);
    color: white;
}

.card-gradient-success {
    background: linear-gradient(135deg, #11998e, #38ef7d);
    color: white;
}

.card-gradient-info {
    background: linear-gradient(135deg, #2F80ED, #56CCF2);
    color: white;
}

.card-gradient-warning {
    background: linear-gradient(135deg, #FF8008, #FFC837);
    color: white;
}

.icon-wrapper {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    font-size: 1.5rem;
    backdrop-filter: blur(5px);
}

.stat-label {
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    opacity: 0.85;
}

.stat-value {
    font-weight: 700;
    letter-spacing: -0.5px;
}

.quick-link-btn {
    border-radius: 12px;
    padding: 14px 20px;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid #e9ecef;
    background: #fff;
    color: #495057;
    display: flex;
    align-items: center;
    text-decoration: none;
}

.quick-link-btn:hover {
    background: #f8f9fa;
    border-color: #dee2e6;
    transform: translateX(6px);
    color: #212529;
    text-decoration: none;
}

.quick-link-icon {
    font-size: 1.4rem;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
}

.chart-card {
    border-radius: 20px;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.chart-card .card-header {
    background: transparent;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-weight: 600;
    padding: 1.25rem 1.5rem;
    color: #495057;
}

.global-card {
    border: none;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow: hidden;
}

.global-card .card-header {
    background: transparent;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-weight: 600;
    padding: 1.25rem 1.5rem;
    color: #495057;
}

.modern-alert {
    border-radius: 16px;
    border: none;
    background: linear-gradient(135deg, rgba(47, 128, 237, 0.08), rgba(86, 204, 242, 0.08));
    border-left: 5px solid #2F80ED;
    padding: 1.5rem;
    color: #1a4f8e;
    box-shadow: 0 4px 15px rgba(47, 128, 237, 0.05);
}

.modern-alert .alert-heading {
    color: #0b3469;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.profile-header {
    background: linear-gradient(135deg, #4e54c8, #8f94fb);
    color: white;
    border-radius: 20px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(78, 84, 200, 0.15);
}

.profile-avatar {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.profile-card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    height: 100%;
}

.profile-card .card-header {
    background: transparent;
    border-bottom: 1px solid #f1f3f5;
    font-weight: 700;
    padding: 1.25rem 1.5rem;
    color: #495057;
    font-size: 1.05rem;
}

.info-group {
    margin-bottom: 1.2rem;
}

.info-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #868e96;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.info-value {
    font-size: 1rem;
    font-weight: 500;
    color: #343a40;
}

/* ==========================================
   STANDARD PROFESSIONAL COMPACT TABLES
   ========================================== */
.table {
    font-size: 0.84rem !important;
    color: #334155 !important;
    margin-bottom: 0 !important;
    vertical-align: middle !important;
    border-collapse: collapse !important;
    border-spacing: 0 !important;
    width: 100% !important;
}

.table thead th {
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    color: #64748b !important;
    background-color: #f8fafc !important;
    padding: 0.55rem 0.75rem !important;
    border-bottom: 1px solid #e2e8f0 !important;
    border-top: none !important;
    white-space: nowrap !important;
    vertical-align: middle !important;
}

.table tbody tr {
    transition: background-color 0.15s ease;
    border-bottom: 1px solid #f1f5f9;
}

.table tbody td {
    padding: 0.52rem 0.75rem !important;
    vertical-align: middle !important;
    font-size: 0.84rem !important;
    line-height: 1.4 !important;
    color: #334155;
    background-color: transparent;
}

.table-hover tbody tr:hover {
    background-color: #f8fafc !important;
}

.table-hover tbody tr:hover td {
    background-color: transparent !important;
}

/* Compact sm table */
.table-sm tbody td,
.table-sm thead th {
    padding: 0.38rem 0.6rem !important;
    font-size: 0.81rem !important;
}

/* Restrain floating/spaced table items */
.table .avatar-sm,
.table .rounded-circle {
    width: 28px !important;
    height: 28px !important;
    font-size: 0.75rem !important;
}

.table .badge {
    font-size: 0.72rem !important;
    font-weight: 500 !important;
    padding: 0.22rem 0.5rem !important;
    letter-spacing: 0.2px;
}

/* DataTables Styling */
table.dataTable.no-footer {
    border-bottom: 1px solid #e2e8f0 !important;
}

.dataTables_wrapper {
    font-size: 0.82rem !important;
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
    margin-bottom: 0.75rem !important;
    font-size: 0.82rem !important;
    color: #64748b !important;
}

.dataTables_wrapper .dataTables_length select,
.dataTables_wrapper .dataTables_filter input {
    font-size: 0.82rem !important;
    padding: 0.25rem 0.5rem !important;
    border-radius: 6px !important;
    border: 1px solid #cbd5e1 !important;
    color: #334155 !important;
}

.dataTables_wrapper .dataTables_length select:focus,
.dataTables_wrapper .dataTables_filter input:focus {
    border-color: #4e54c8 !important;
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(78, 84, 200, 0.15) !important;
}

.dataTables_wrapper .dataTables_info {
    font-size: 0.8rem !important;
    color: #64748b !important;
    padding-top: 0.75rem !important;
}

.dataTables_wrapper .dataTables_paginate {
    padding-top: 0.75rem !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    font-size: 0.78rem !important;
    padding: 0.22rem 0.55rem !important;
    border-radius: 6px !important;
    margin: 0 2px !important;
    border: 1px solid transparent !important;
    color: #475569 !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    background: #4e54c8 !important;
    color: #ffffff !important;
    border: 1px solid #4e54c8 !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: #f1f5f9 !important;
    color: #1e293b !important;
    border: 1px solid #cbd5e1 !important;
}

/* ==========================================
   STANDARD PROFESSIONAL BUTTONS
   ========================================== */
.btn {
    font-size: 0.84rem !important;
    font-weight: 500 !important;
    padding: 0.42rem 0.85rem !important;
    border-radius: 8px !important;
    line-height: 1.45 !important;
    letter-spacing: 0.15px;
    transition: all 0.15s ease-in-out;
}

.btn-sm {
    font-size: 0.76rem !important;
    padding: 0.22rem 0.55rem !important;
    border-radius: 6px !important;
    line-height: 1.35 !important;
}

.btn-lg {
    font-size: 0.9rem !important;
    padding: 0.5rem 1.05rem !important;
    border-radius: 8px !important;
}

/* Restrain oversized utility padding on buttons across pages */
.btn.px-4,
.btn.px-5 {
    padding-left: 0.95rem !important;
    padding-right: 0.95rem !important;
}

.btn.py-2,
.btn.py-3 {
    padding-top: 0.42rem !important;
    padding-bottom: 0.42rem !important;
}

/* Table action buttons */
.table .btn-group .btn,
.table .btn-sm {
    padding: 0.22rem 0.5rem !important;
    font-size: 0.76rem !important;
    border-radius: 5px !important;
}

.table .btn-group>.btn:not(:first-child) {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
}

.table .btn-group>.btn:not(:last-child) {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

.btn.rounded-pill {
    border-radius: 20px !important;
    padding-left: 0.95rem !important;
    padding-right: 0.95rem !important;
    font-size: 0.83rem !important;
}

/* Page titles & Table Card Containers */
h2,
.h2 {
    font-size: 1.45rem !important;
    letter-spacing: -0.3px;
}

.card>.card-header {
    padding: 0.85rem 1.25rem !important;
    font-size: 0.92rem;
}

.card>.card-body {
    padding: 1.15rem 1.25rem !important;
}

.card>.card-body .table-responsive {
    margin: 0 -0.25rem;
}

.form-section-title {
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #4e54c8;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-section-title::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e9ecef;
}

.custom-form-control {
    border-radius: 8px;
    border: 1px solid #dee2e6;
    padding: 0.5rem 0.8rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

/* Modern Soft & Lighter Placeholder Styling */
.form-control::placeholder,
.custom-form-control::placeholder,
input::placeholder,
textarea::placeholder,
select::placeholder {
    color: #94a3b8 !important; /* Soft Tailwind slate-400 */
    opacity: 0.65 !important;
    font-weight: 350 !important;
    letter-spacing: 0.15px;
}

.custom-form-control:focus {
    border-color: #4e54c8;
    box-shadow: 0 0 0 0.25rem rgba(78, 84, 200, 0.1);
}

label,
.form-label {
    font-weight: 700 !important;
    color: #495057;
    font-size: 0.9rem;
}

/* ==========================================
   STANDARD PROFESSIONAL COMPACT TOAST
   ========================================== */
body.swal2-toast-shown .swal2-container {
    padding: 12px !important;
}

body.swal2-toast-shown .swal2-container.swal2-top-end,
body.swal2-toast-shown .swal2-container.swal2-top-right {
    top: 15px !important;
    right: 15px !important;
}

.swal2-popup.swal2-toast {
    box-sizing: border-box !important;
    width: auto !important;
    max-width: 420px !important;
    min-width: 250px !important;
    padding: 0.42rem 1, 0rem !important;
    background: #ffffff !important;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.1), 0 1px 3px rgba(15, 23, 42, 0.05) !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.swal2-popup.swal2-toast .swal2-title {
    margin: 0 !important;
    color: #1e293b !important;
    font-size: 0.82rem !important;
    font-weight: 500 !important;
    line-height: 1.35 !important;
    text-align: left !important;
    padding: 0 !important;
}

.swal2-popup.swal2-toast .swal2-icon {
    margin: 0 !important;
    transform: scale(0.55) !important;
    transform-origin: center center !important;
    min-width: 26px !important;
    width: 26px !important;
    height: 26px !important;
    flex-shrink: 0 !important;
}

.swal2-popup.swal2-toast .swal2-timer-progress-bar {
    height: 2.5px !important;
    background: rgba(78, 84, 200, 0.45) !important;
}

@media print {

    .sidebar,
    .navbar,
    .btn {
        display: none !important;
    }

    .main-content {
        margin-left: 0 !important;
        width: 100% !important;
    }

    .card {
        border: none !important;
    }
}