:root {
    --brand: #2563eb;
    --brand-hover: #1d4ed8;
    --brand-light: #eff6ff;
    --brand-soft: #dbeafe;
    --brand-mid: #bfdbfe;
    --bg-body: #f8fafc;
    --bg-card: #ffffff;
    --bg-muted: #f1f5f9;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --border: #e2e8f0;
    --success: #16a34a;
    --success-bg: #dcfce7;
    --success-text: #15803d;
    --warning: #ca8a04;
    --warning-bg: #fef9c3;
    --warning-text: #b45309;
    --danger: #dc2626;
    --danger-bg: #fef2f2;
    --danger-text: #991b1b;
    --info: #2563eb;
    --info-bg: #eff6ff;
    --sidebar-width: 220px;
    --sidebar-bg: #ffffff;
    --sb-border: #e2e8f0;
    --radius-xs: 6px;
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, .05);
    --shadow-md: 0 4px 10px rgba(15, 23, 42, .08);
    --shadow-lg: 0 10px 25px rgba(15, 23, 42, .12);
    --transition: all .2s ease;
}

/* BASE */
body {
    background: var(--bg-body);
    font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: var(--text-primary);
    font-size: 13px;
    /* Base font size set to normal */
}

/* ============================================
   LAYOUT — KEY FIX
============================================ */
.layout-wrapper {
    display: flex;
    min-height: 100vh;
}

.sidebar-desktop {
    width: var(--sidebar-width);
    min-height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 200;
    display: flex;
    flex-direction: column;
}

.main-area {
    margin-left: var(--sidebar-width);
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

.main-content {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    background: var(--bg-body);
}

.page-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.page-box.table-page {
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

/* ============================================
   TABLE SECTION
============================================ */
#tableSection {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

#formSection {
    animation: fadeIn .2s ease;
}

.custom-table-scroll {
    flex: 1;
    min-height: 0;
    overflow: auto;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.custom-table-scroll::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.custom-table-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.custom-table-scroll::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 20px;
}

.custom-table-scroll::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ============================================
   SIDEBAR
============================================ */
.sidebar {
    width: var(--sidebar-width);
    background: var(--sidebar-bg);
    border-right: 1px solid var(--border);
}

.sidebar-header {
    height: 55px;
    border-bottom: 1px solid var(--border);
    padding: 0 6px;
    display: flex;
    align-items: center;
}

.logo-img {
    width: 36px;
    height: 36px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.logo-text {
    font-size: 15px;
    /* .text-heading / .text-large */
    font-weight: 700;
    color: var(--text-primary);
}

.nav-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 2px 10px;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 13px;
    /* .text-normal */
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
}

.nav-item:hover {
    background: var(--brand-light);
    color: var(--brand);
}

.nav-item.active {
    color: var(--brand);
    font-weight: 600;
}

.nav-item.active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 15%;
    bottom: 15%;
    width: 3px;
    border-radius: 20px;
    background: var(--brand);
}

.nav-icon {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 13px;
    /* .text-normal */
    flex-shrink: 0;
    transition: var(--transition);
}

.nav-item:hover .nav-icon,
.nav-item.active .nav-icon {
    background: rgba(37, 99, 235, 0.08);
    color: var(--brand);
}

.nav-divider {
    height: 1px;
    background: var(--border);
    margin: 5px 4px;
}

.nav-section-label {
    font-size: 10px;
    /* .text-small */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    padding: 4px 12px 6px;
    margin: 0;
}

.sidebar-footer {
    border-top: 1px solid var(--sb-border);
    background: var(--bg-muted);
    padding: 8px 16px;
    margin-top: auto;
}

.admin-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--brand-light);
    border: 1px solid var(--brand-mid);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.admin-name {
    font-size: 13px;
    /* .text-normal */
    font-weight: 700;
    color: var(--text-primary);
    display: block;
}

.admin-role {
    font-size: 13px;
    /* .text-normal */
    color: var(--text-muted);
    display: block;
}

.logout-btn {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.logout-btn:hover {
    background: var(--danger-bg);
    color: var(--danger-text);
}

/* ============================================
   TOP HEADER
============================================ */
.top-header {
    height: 55px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
    z-index: 100;
    padding: 0 24px;
    display: flex;
    align-items: center;
}

.page-title {
    font-size: 15px;
    /* .text-heading */
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.header-icon-btn {
    width: 42px;
    height: 42px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 15px;
    /* .text-large */
    position: relative;
    transition: var(--transition);
}

.header-icon-btn:hover {
    background: var(--bg-muted);
}

.notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 18px;
    height: 18px;
    background: var(--danger);
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    /* .text-small */
    font-weight: 700;
    border: 2px solid var(--bg-card);
}

/* ============================================
   CARDS & STATS
============================================ */
.dashboard-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 30px;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
    box-shadow: var(--shadow-sm);
}

.dashboard-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.dashboard-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
}

.card-blue::before {
    background: linear-gradient(90deg, #2563eb, #60a5fa);
}

.card-green::before {
    background: linear-gradient(90deg, #10b981, #34d399);
}

.card-amber::before {
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.card-red::before {
    background: linear-gradient(90deg, #ef4444, #f87171);
}

.card-purple::before {
    background: linear-gradient(90deg, #7c3aed, #a78bfa);
}

.dashboard-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.dashboard-label {
    font-size: 10px;
    /* .text-small */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .7px;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.dashboard-value {
    font-size: 15px;
    /* .text-heading */
    font-weight: 800;
    line-height: 1.1;
    color: var(--text-primary);
}

.dashboard-icon {
    font-size: 15px;
    /* .text-large */
    opacity: .25;
}

.card-icon {
    width: 58px;
    height: 58px;
    border-radius: var(--radius-md);
    background: var(--brand-light);
    color: var(--brand);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    /* .text-large */
    flex-shrink: 0;
}

.card-stat {
    font-size: 15px;
    /* .text-heading */
    font-weight: 700;
    line-height: 1;
    color: var(--text-primary);
}

.card-label {
    font-size: 13px;
    /* .text-normal */
    color: var(--text-muted);
    margin-top: 4px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: var(--transition);
    margin-bottom: 5px;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.stat-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    /* .text-large */
    flex-shrink: 0;
}

.ic-blue {
    background: #eff6ff;
    color: #2563eb;
}

.ic-green {
    background: #ecfdf5;
    color: #10b981;
}

.ic-amber {
    background: #fffbeb;
    color: #f59e0b;
}

.ic-red {
    background: #fef2f2;
    color: #ef4444;
}

.ic-purple {
    background: #f5f3ff;
    color: #7c3aed;
}

.stat-lbl {
    font-size: 10px;
    /* .text-small */
    text-transform: uppercase;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.stat-val {
    font-size: 15px;
    /* .text-heading */
    font-weight: 800;
    line-height: 1;
    color: var(--text-primary);
}

/* ============================================
   TYPOGRAPHY HELPERS
============================================ */
.text-heading {
    font-size: 15px;
    font-weight: 800;
    color: var(--text-primary);
}

.text-large {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
}

.text-normal {
    font-size: 13px;
    font-weight: 400;
    color: var(--text-secondary);
}

.text-small {
    font-size: 10px;
    font-weight: 400;
    color: var(--text-muted);
}

@media (min-width: 1200px) {
    .col-xl-5col {
        flex: 0 0 20%;
        max-width: 20%;
    }
}

/* ============================================
   PILLS
============================================ */
.stat-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    border: 1px solid;
    font-size: 10px;
    /* .text-small */
    font-weight: 600;
}

.stat-pill i {
    font-size: 10px;
    /* .text-small */
}

.stat-pill.blue {
    background: #eff6ff;
    color: #1d4ed8;
    border-color: #bfdbfe;
}

.stat-pill.green {
    background: #ecfdf5;
    color: #065f46;
    border-color: #a7f3d0;
}

.stat-pill.amber {
    background: #fffbeb;
    color: #92400e;
    border-color: #fde68a;
}

.stat-pill.slate {
    background: #f8fafc;
    color: #475569;
    border-color: #e2e8f0;
}

.stat-pill.dark {
    background: #0f172a;
    color: #f8fafc;
    border-color: #1e293b;
}

.stat-pill.purple {
    background: #f5f3ff;
    color: #5b21b6;
    border-color: #ddd6fe;
}

.stat-pill.red {
    background: #fef2f2;
    color: #991b1b;
    border-color: #fecaca;
}

/* ============================================
   DATA TABLE
============================================ */
.data-table {
    border-collapse: collapse;
    min-width: 900px;
    width: 100%;
    background: var(--bg-card);
    table-layout: fixed;
}

.data-table thead tr {
    background: var(--bg-muted);
}

.data-table thead th {
    position: sticky;
    top: 0;
    z-index: 5;
    background: var(--bg-muted);
    font-size: 10px;
    /* .text-small */
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    padding: 11px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
    cursor: pointer;
    user-select: none;
    transition: var(--transition);
}

.data-table thead th:hover {
    color: var(--text-primary);
}

.data-table tbody tr {
    border-bottom: 1px solid #f3f4f6;
    transition: background 0.1s;
}

.data-table tbody tr:last-child {
    border-bottom: none;
}

.data-table tbody tr:hover {
    background: var(--bg-muted);
}

.data-table tbody td {
    padding: 9px 12px;
    font-size: 13px;
    /* .text-normal */
    color: var(--text-primary);
    vertical-align: middle;
}

.data-table td,
.data-table th {
    white-space: nowrap;
    vertical-align: middle;
}

/* TABLE CELLS */
.cell-id {
    font-size: 13px;
    /* .text-normal */
    color: var(--text-muted);
    font-family: "SF Mono", "Fira Code", monospace;
}

.cell-name {
    font-weight: 500;
}

.cell-muted {
    color: var(--text-secondary);
}

/* ============================================
   STATUS BADGE
============================================ */
.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    /* .text-small */
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    min-width: 72px;
}

.status-badge.active {
    background: var(--success-bg);
    color: var(--success-text);
}

.status-badge.inactive {
    background: var(--danger-bg);
    color: var(--danger-text);
}

.status-badge.pending {
    background: var(--warning-bg);
    color: var(--warning-text);
}

/* ============================================
   ACTION BUTTONS
============================================ */
.action-buttons {
    display: flex;
    gap: 6px;
}

.action-btn {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    cursor: pointer;
    font-size: 13px;
    /* .text-normal */
}

.edit-btn {
    color: var(--brand);
}

.edit-btn:hover {
    background: var(--brand-light);
    border-color: var(--brand-mid);
}

.delete-btn {
    color: var(--danger);
}

.delete-btn:hover {
    background: var(--danger-bg);
    border-color: #fecaca;
}

.view-btn {
    color: #7c3aed;
}

.view-btn:hover {
    background: #f5f3ff;
    border-color: #ddd6fe;
}

/* ============================================
   TABLE TOOLBAR
============================================ */
.table-toolbar {
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
    flex-shrink: 0;
}

.search-wrapper {
    position: relative;
    flex: 1;
    max-width: 260px;
}

.search-wrapper i {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 13px;
    /* .text-normal */
    color: var(--text-muted);
    pointer-events: none;
}

.search-wrapper input {
    width: 100%;
    padding: 7px 10px 7px 32px;
    font-size: 13px;
    /* .text-normal */
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-card);
    color: var(--text-primary);
    outline: none;
    transition: var(--transition);
}

.search-wrapper input:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.show-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    /* .text-normal */
    color: var(--text-secondary);
}

.show-wrapper select {
    font-size: 13px;
    /* .text-normal */
    padding: 5px 8px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-card);
    color: var(--text-primary);
    outline: none;
    cursor: pointer;
}

/* ============================================
   TABLE FOOTER
============================================ */
.table-footer {
    padding: 11px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--border);
    background: var(--bg-muted);
    flex-wrap: wrap;
    gap: 10px;
    flex-shrink: 0;
}

.footer-info {
    font-size: 10px;
    /* .text-small */
    color: var(--text-muted);
}

.toolbar-icon-btn {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.empty-row td {
    text-align: center;
    padding: 2.5rem;
    font-size: 13px;
    /* .text-normal */
    color: var(--text-muted);
}

/* ============================================
   CUSTOM BUTTONS
============================================ */
.btn-teal {
    background-color: #14b8a6;
    color: #fff;
    border: none;
}

.btn-teal:hover {
    background-color: #0f766e;
    color: #fff;
}

.btn-indigo {
    background-color: #6366f1;
    color: #fff;
    border: none;
}

.btn-indigo:hover {
    background-color: #4f46e5;
    color: #fff;
}

.bulk-action-btn {
    height: 40px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--bg-muted);
    color: var(--text-secondary);
    font-size: 13px;
    /* .text-normal */
    font-weight: 500;
    text-align: left;
    padding: 0 10px;
    transition: var(--transition);
}

.bulk-action-btn:disabled {
    opacity: 0.6;
    background: var(--bg-muted);
    color: var(--text-muted);
    cursor: not-allowed;
}

.bulk-action-btn:not(:disabled) {
    background: var(--bg-card);
    color: var(--text-primary);
}

.bulk-action-btn::after {
    float: right;
    margin-top: 12px;
}

/* ============================================
   FORM INPUTS
============================================ */
.custom-input {
    height: 44px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    box-shadow: none !important;
    transition: var(--transition);
}

.custom-input:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1) !important;
}

.form-label {
    margin-bottom: 8px;
    font-size: 13px;
    /* .text-normal */
    color: var(--text-secondary);
    font-weight: 500;
}

/* ============================================
   TOAST
============================================ */
.toast {
    min-width: 320px;
    border-radius: var(--radius-md);
    overflow: hidden;
    backdrop-filter: blur(10px);
    animation: slideIn 0.3s ease;
    box-shadow: var(--shadow-lg);
}

.toast-body {
    font-size: 15px;
    /* .text-large */
    font-weight: 500;
    padding: 14px 18px;
}

#toastIcon {
    font-size: 15px;
    /* .text-large */
}

/* ============================================
   LOADERS
============================================ */
.global-loader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dot-loader {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 40px 0;
}

.dot-loader span {
    width: 10px;
    height: 10px;
    background: var(--brand);
    border-radius: 50%;
    animation: bounce 0.6s infinite alternate;
}

.dot-loader span:nth-child(2) {
    animation-delay: 0.2s;
}

.dot-loader span:nth-child(3) {
    animation-delay: 0.4s;
}

.loader-3d {
    width: 90px;
    height: 90px;
    position: relative;
    transform-style: preserve-3d;
    animation: rotate3d 2s infinite linear;
}

.loader-3d span {
    position: absolute;
    inset: 0;
    border-radius: var(--radius-md);
    border: 4px solid var(--brand);
    box-shadow: 0 0 15px rgba(37, 99, 235, 0.5), inset 0 0 15px rgba(37, 99, 235, 0.3);
}

.loader-3d span:nth-child(1) {
    transform: rotateY(0deg);
}

.loader-3d span:nth-child(2) {
    transform: rotateY(60deg);
}

.loader-3d span:nth-child(3) {
    transform: rotateY(120deg);
}

/* ============================================
   OFFCANVAS
============================================ */
.offcanvas.offcanvas-start {
    width: 270px;
    border-right: 1px solid var(--sb-border);
}

.offcanvas-header {
    border-bottom: 1px solid var(--sb-border);
    height: 55px;
    padding: 0 18px;
}


.profile-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    /* .text-normal */
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-muted);
    border: 1px solid var(--border);
    padding: 6px 16px;
    border-radius: 40px;
    /* margin-left: 420px; */
}

/* ===== INFO CARDS ===== */
.info-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px 18px;
    box-shadow: var(--shadow-sm);
    height: 100%;
}

.info-card .label {
    font-size: 10px;
    /* .text-small */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.info-card .value {
    font-size: 15px;
    /* .text-heading */
    font-weight: 700;
    color: var(--text-primary);
}

/* ===== CARD BOX ===== */
.card-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    height: 100%;
}

/* ===== TAB PANEL WRAP ===== */
.tab-panel-wrap {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    padding: 24px;
}

/* ===== CUSTOM TABS ===== */
.nav-tabs {
    border-bottom: 2px solid var(--border);
}

.nav-tabs .nav-link {
    font-weight: 600;
    font-size: 13px;
    /* .text-normal */
    color: var(--text-muted);
    border: none;
    border-bottom: 2px solid transparent;
    padding: 10px 18px;
    margin-bottom: -2px;
    transition: var(--transition);
}

.nav-tabs .nav-link:hover {
    color: var(--text-primary);
}

.nav-tabs .nav-link.active {
    color: var(--brand);
    border-bottom-color: var(--brand);
    background: transparent;
}

/* ===== ROLE CARDS ===== */
.role-modern-card {
    background: var(--bg-muted);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    transition: var(--transition);
}

.role-modern-card:hover {
    border-color: var(--brand-mid);
}

.role-icon-box {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    /* .text-large */
    flex-shrink: 0;
}

.role-icon-box.student {
    background: #eff6ff;
    color: #2563eb;
}

.role-icon-box.trainer {
    background: #f5f3ff;
    color: #7c3aed;
}

.role-icon-box.assessor {
    background: #fffbeb;
    color: #d97706;
}

.role-icon-box.admin {
    background: #fef2f2;
    color: #dc2626;
}

/* ============================================
   ANIMATIONS
============================================ */
@keyframes rotate3d {
    0% {
        transform: rotateX(0deg) rotateY(0deg);
    }

    100% {
        transform: rotateX(360deg) rotateY(360deg);
    }
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    from {
        transform: translateY(0);
        opacity: 0.5;
    }

    to {
        transform: translateY(-10px);
        opacity: 1;
    }
}

/* ============================================
   MOBILE RESPONSIVE
============================================ */
@media (max-width: 767.98px) {
    .sidebar-desktop {
        display: none !important;
    }

    .main-area {
        margin-left: 0 !important;
        width: 100%;
    }

    .main-content {
        padding: 3px;
    }

    .offcanvas.offcanvas-start {
        width: 260px;
    }

    body {
        overflow-x: hidden;
    }

    .table-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .search-wrapper {
        max-width: 100%;
        width: 100%;
    }

    .search-box-mobile {
        position: absolute;
        top: 40px;
        left: 19px;
        right: 12px;
        z-index: 20;
        border-radius: 12px;
        box-shadow: var(--shadow-lg);
    }

    .search-box-mobile.show {
        display: flex !important;
    }
}