:root {
    --cat-primary: #0f766e;
    --cat-primary-dark: #0d5c56;
    --cat-primary-light: #ccfbf1;
    --cat-accent: #d97706;
    --cat-bg: #f4f7f9;
    --cat-sidebar-bg: #0f172a;
    --cat-sidebar-text: #cbd5e1;
    --cat-border: #e2e8f0;
}

body {
    font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--cat-bg);
    color: #1e293b;
    font-size: 0.9375rem;
}

/* Sidebar */
.cat-sidebar {
    width: 260px;
    min-height: 100vh;
    background: var(--cat-sidebar-bg);
    color: var(--cat-sidebar-text);
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 1030;
    display: flex;
    flex-direction: column;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease;
}

.cat-brand {
    padding: 1.25rem 1.25rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cat-nav {
    flex: 1;
    overflow-y: auto;
    padding: 0.75rem 0.85rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.cat-nav::-webkit-scrollbar {
    width: 0;
    height: 0;
    background: transparent;
}

.cat-nav-group-label {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #64748b;
    padding: 0.5rem 0.5rem 0.25rem;
}

.cat-nav .nav-link {
    color: #cbd5e1;
    border-radius: 11px;
    padding: 0.48rem 0.65rem;
    margin-bottom: 3px;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-weight: 500;
    font-size: 0.88rem;
    position: relative;
    transition: all 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.cat-nav-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    color: #94a3b8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.98rem;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.cat-nav .nav-link:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    transform: translateX(4px);
}

.cat-nav .nav-link:hover .cat-nav-icon {
    background: rgba(20, 184, 166, 0.22);
    color: #5eead4;
}

.cat-nav .nav-link.active {
    background: linear-gradient(90deg, rgba(20, 184, 166, 0.22) 0%, rgba(15, 118, 110, 0.12) 100%);
    color: #ffffff;
    font-weight: 600;
    box-shadow: inset 3px 0 0 #14b8a6;
}

.cat-nav .nav-link.active .cat-nav-icon {
    background: linear-gradient(135deg, #14b8a6, #0f766e);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(20, 184, 166, 0.4);
}

.cat-active-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #2dd4bf;
    box-shadow: 0 0 8px #2dd4bf;
}

.cat-user-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
}

.cat-online-dot {
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #22c55e;
    border: 2px solid var(--cat-sidebar-bg);
}

.cat-sidebar-footer {
    padding: 0.9rem 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(15, 23, 42, 0.95);
}

/* Main Content */
.cat-main {
    margin-left: 260px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: margin-left 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

#desktopSidebarToggle i {
    transition: transform 0.3s ease;
}

@media (min-width: 992px) {
    body.sidebar-collapsed .cat-sidebar {
        transform: translateX(-100%);
        opacity: 0;
        pointer-events: none;
    }
    body.sidebar-collapsed .cat-main {
        margin-left: 0;
    }
    body.sidebar-collapsed #desktopSidebarToggle i {
        transform: rotate(90deg);
    }
}

.cat-topbar {
    background: #ffffff;
    border-bottom: 1px solid var(--cat-border);
    padding: 0.75rem 1.5rem;
    position: sticky;
    top: 0;
    z-index: 1020;
}

.cat-content {
    padding: 1.5rem;
    flex: 1;
}

@media (max-width: 991.98px) {
    .cat-main {
        margin-left: 0;
    }
    .cat-content {
        padding: 1rem;
    }
    .cat-topbar {
        padding: 0.75rem 1rem;
    }
}

/* Cards & Stats */
.card {
    border: 1px solid var(--cat-border);
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.card-header {
    background-color: #ffffff;
    border-bottom: 1px solid var(--cat-border);
    padding: 1rem 1.25rem;
    font-weight: 600;
}

.stat-card {
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.stat-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
}

.btn-primary {
    background-color: var(--cat-primary);
    border-color: var(--cat-primary);
}

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--cat-primary-dark);
    border-color: var(--cat-primary-dark);
}

.btn-outline-primary {
    color: var(--cat-primary);
    border-color: var(--cat-primary);
}

.btn-outline-primary:hover {
    background-color: var(--cat-primary);
    border-color: var(--cat-primary);
}

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

/* Table */
.table > thead th {
    background-color: #f8fafc;
    color: #475569;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border-bottom: 1px solid var(--cat-border);
    white-space: nowrap;
}

.table td {
    vertical-align: middle;
}

/* Timeline */
.cat-timeline {
    position: relative;
    padding-left: 1.5rem;
    border-left: 2px solid #e2e8f0;
}

.cat-timeline-item {
    position: relative;
    padding-bottom: 1rem;
}

.cat-timeline-item::before {
    content: '';
    position: absolute;
    left: -1.875rem;
    top: 0.25rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--cat-primary);
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px var(--cat-primary-light);
}

/* Avatar */
.cat-avatar {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--cat-primary);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

/* Offcanvas dark & mobile sidebar animation */
.offcanvas-dark {
    background: var(--cat-sidebar-bg);
    color: var(--cat-sidebar-text);
    width: 270px !important;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.35s !important;
}

#mobileSidebar .nav-item {
    opacity: 0;
    transform: translateX(-16px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#mobileSidebar.show .nav-item {
    opacity: 1;
    transform: translateX(0);
}

#mobileSidebar.show .nav-item:nth-child(1) { transition-delay: 0.04s; }
#mobileSidebar.show .nav-item:nth-child(2) { transition-delay: 0.07s; }
#mobileSidebar.show .nav-item:nth-child(3) { transition-delay: 0.10s; }
#mobileSidebar.show .nav-item:nth-child(4) { transition-delay: 0.13s; }
#mobileSidebar.show .nav-item:nth-child(5) { transition-delay: 0.16s; }
#mobileSidebar.show .nav-item:nth-child(6) { transition-delay: 0.19s; }
#mobileSidebar.show .nav-item:nth-child(7) { transition-delay: 0.22s; }
#mobileSidebar.show .nav-item:nth-child(8) { transition-delay: 0.25s; }
#mobileSidebar.show .nav-item:nth-child(9) { transition-delay: 0.28s; }
#mobileSidebar.show .nav-item:nth-child(10) { transition-delay: 0.31s; }
#mobileSidebar.show .nav-item:nth-child(11) { transition-delay: 0.34s; }

