/* assets/css/style.css - CPMS System Next.js Match Styling */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Colors */
    --sidebar-bg: #0c1424;
    --sidebar-accent: #1e3a8a;
    --primary: #4f46e5;
    --primary-dark: #4338ca;
    --primary-light: #eef2ff;
    --blue: #2563eb;
    --blue-light: #eff6ff;
    --green: #16a34a;
    --green-light: #f0fdf4;
    --orange: #ea580c;
    --orange-light: #fff7ed;
    --yellow: #eab308;
    --yellow-light: #fefce8;
    --red: #dc2626;
    --red-light: #fef2f2;
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;

    /* Component Tokens */
    --bg-main: #f8fafc;
    --bg-card: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --border-color: #f1f5f9;
    --border-strong: #e2e8f0;

    /* Radii */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.04);
    --shadow-card: 0 1px 3px 0 rgba(0, 0, 0, 0.06), 0 1px 2px -1px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 10px 25px -5px rgba(15, 23, 42, 0.08);
    --shadow-modal: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

    /* Layout */
    --sidebar-width: 264px;
    --header-height: 64px;
}

/* Base Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-sans);
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    min-height: 100vh;
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

button, input, select, textarea {
    font-family: inherit;
}

/* App Container Layout */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.cpms-sidebar {
    width: var(--sidebar-width);
    background: var(--sidebar-bg);
    display: flex;
    flex-direction: column;
    height: 100vh;
    position: sticky;
    top: 0;
    flex-shrink: 0;
    z-index: 50;
    overflow: hidden;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.cpms-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 18px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
}

.cpms-logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--blue), var(--primary));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 18px;
    color: white;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.5);
    flex-shrink: 0;
}

.cpms-logo-text {
    font-size: 18px;
    font-weight: 900;
    color: #fff;
    letter-spacing: -0.5px;
    line-height: 1.1;
}

.cpms-logo-text span {
    font-weight: 700;
    color: rgba(255, 255, 255, 0.4);
    font-size: 9px;
    display: block;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-top: 2px;
}

.cpms-role-badge {
    margin: 14px 14px;
    padding: 10px 13px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

.cpms-role-label {
    font-size: 8.5px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.35);
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

.cpms-role-value {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 4px;
    font-size: 12px;
    font-weight: 800;
    color: #fff;
}

.cpms-role-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
    animation: pulse-dot 2s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes pulse-dot {
    0%, 100% { box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2); }
    50% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.1); }
}

.cpms-nav {
    flex: 1;
    overflow-y: auto;
    padding: 6px 10px 12px;
    scrollbar-width: none;
}

.cpms-nav::-webkit-scrollbar {
    display: none;
}

.cpms-nav-section {
    font-size: 8.5px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 12px 10px 4px;
    margin-top: 2px;
}

.cpms-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: var(--radius-md);
    color: rgba(255, 255, 255, 0.55);
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.15s ease;
    margin-bottom: 2px;
    min-height: 38px;
}

.cpms-nav-link i, .cpms-nav-link svg {
    font-size: 14px;
    width: 18px;
    text-align: center;
    opacity: 0.8;
}

.cpms-nav-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.95);
    transform: translateX(2px);
}

.cpms-nav-link.active {
    background: rgba(37, 99, 235, 0.22);
    color: #ffffff;
    font-weight: 700;
    border-left: 3px solid #3b82f6;
}

.cpms-nav-link .badge-count {
    margin-left: auto;
    padding: 2px 7px;
    font-size: 10px;
    background: #ef4444;
    color: #ffffff;
    border-radius: 99px;
    font-weight: 900;
}

.cpms-nav-footer {
    padding: 12px 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* Main Content Area */
.main-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* Header Bar */
.top-header {
    height: var(--header-height);
    background: #ffffff;
    border-bottom: 1px solid var(--slate-100);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    position: sticky;
    top: 0;
    z-index: 40;
}

.header-search {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--slate-50);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-md);
    padding: 7px 14px;
    width: 320px;
    transition: all 0.2s ease;
}

.header-search:focus-within {
    border-color: var(--primary);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.header-search i {
    color: var(--slate-400);
    font-size: 13px;
}

.header-search input {
    border: none;
    background: transparent;
    outline: none;
    font-size: 13px;
    width: 100%;
    color: var(--slate-800);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.live-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: var(--slate-50);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-md);
    font-size: 10.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--slate-800);
}

.live-badge .pulse-green {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
    animation: pulse-dot 2s infinite;
}

.header-icon-btn {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-md);
    border: 1px solid var(--slate-200);
    background: #ffffff;
    color: var(--slate-600);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    transition: all 0.15s ease;
}

.header-icon-btn:hover {
    background: var(--slate-50);
    color: var(--primary);
    border-color: var(--slate-300);
}

.header-icon-btn .btn-dot {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 7px;
    height: 7px;
    background: #ef4444;
    border-radius: 50%;
    border: 2px solid #ffffff;
}

.user-profile-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 10px 4px 4px;
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-full);
    background: #ffffff;
    cursor: pointer;
    transition: all 0.15s ease;
}

.user-profile-pill:hover {
    border-color: var(--slate-300);
    background: var(--slate-50);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--blue));
    color: #ffffff;
    font-weight: 800;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-info-text {
    text-align: left;
    line-height: 1.2;
}

.user-info-text .name {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--slate-900);
}

.user-info-text .role {
    font-size: 10px;
    font-weight: 600;
    color: var(--slate-400);
}

/* Page Content Padding */
.page-content {
    flex: 1;
    padding: 28px;
}

/* Page Header Title Section */
.page-header-title {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 24px;
    gap: 16px;
}

.page-header-title h1 {
    font-size: 24px;
    font-weight: 900;
    color: var(--slate-900);
    letter-spacing: -0.5px;
}

.page-header-title p {
    font-size: 13px;
    color: var(--slate-500);
    font-weight: 500;
    margin-top: 2px;
}

/* Card System */
.cpms-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--slate-200);
    padding: 20px 24px;
    box-shadow: var(--shadow-card);
    transition: all 0.2s ease;
}

.cpms-card:hover {
    box-shadow: var(--shadow-hover);
}

.cpms-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--slate-100);
}

.cpms-card-title {
    font-size: 15px;
    font-weight: 800;
    color: var(--slate-900);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Grid Layout Utilities */
.grid-1 { display: grid; grid-template-columns: 1fr; gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-6 { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }

@media (max-width: 1200px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-6 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .grid-4, .grid-3, .grid-2, .grid-6 { grid-template-columns: 1fr; }
    .top-header { padding: 0 16px; }
    .page-content { padding: 16px; }
    .cpms-sidebar { display: none; }
    .cpms-sidebar.open { display: flex; position: fixed; z-index: 100; }
}

/* Stat Cards */
.stat-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--slate-200);
    padding: 18px 20px;
    box-shadow: var(--shadow-card);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    border-color: var(--slate-300);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.stat-icon.orange { background: var(--orange-light); color: var(--orange); }
.stat-icon.yellow { background: var(--yellow-light); color: var(--yellow); }
.stat-icon.green { background: var(--green-light); color: var(--green); }
.stat-icon.slate { background: var(--slate-100); color: var(--slate-600); }
.stat-icon.indigo { background: var(--primary-light); color: var(--primary); }
.stat-icon.blue { background: var(--blue-light); color: var(--blue); }
.stat-icon.red { background: var(--red-light); color: var(--red); }

.stat-info {
    flex: 1;
}

.stat-label {
    font-size: 11px;
    font-weight: 800;
    color: var(--slate-400);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.stat-value {
    font-size: 22px;
    font-weight: 900;
    color: var(--slate-900);
    letter-spacing: -0.5px;
    margin-top: 2px;
}

.stat-sub {
    font-size: 11px;
    font-weight: 600;
    color: var(--slate-500);
    margin-top: 2px;
}

/* Badge Component */
.cpms-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cpms-badge-green { background: var(--green-light); color: var(--green); border: 1px solid rgba(22, 163, 74, 0.2); }
.cpms-badge-orange { background: var(--orange-light); color: var(--orange); border: 1px solid rgba(234, 88, 12, 0.2); }
.cpms-badge-yellow { background: var(--yellow-light); color: #d97706; border: 1px solid rgba(234, 179, 8, 0.2); }
.cpms-badge-blue { background: var(--blue-light); color: var(--blue); border: 1px solid rgba(37, 99, 235, 0.2); }
.cpms-badge-indigo { background: var(--primary-light); color: var(--primary); border: 1px solid rgba(79, 70, 229, 0.2); }
.cpms-badge-red { background: var(--red-light); color: var(--red); border: 1px solid rgba(220, 38, 38, 0.2); }
.cpms-badge-slate { background: var(--slate-100); color: var(--slate-600); border: 1px solid var(--slate-200); }

/* Tables */
.cpms-table-container {
    width: 100%;
    overflow-x: auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--slate-200);
    background: #ffffff;
}

.cpms-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.cpms-table th {
    background: var(--slate-50);
    padding: 12px 18px;
    font-size: 10.5px;
    font-weight: 800;
    color: var(--slate-500);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border-bottom: 1px solid var(--slate-200);
}

.cpms-table td {
    padding: 14px 18px;
    font-size: 13px;
    color: var(--slate-800);
    border-bottom: 1px solid var(--slate-100);
    font-weight: 500;
}

.cpms-table tr:last-child td {
    border-bottom: none;
}

.cpms-table tr:hover td {
    background: var(--slate-50);
}

/* Progress Bar */
.progress-bar-bg {
    width: 100%;
    height: 7px;
    background: var(--slate-100);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--blue), var(--primary));
    border-radius: var(--radius-full);
    transition: width 0.3s ease;
}

/* Buttons */
.cpms-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: all 0.15s ease;
    text-decoration: none;
}

.cpms-btn-primary {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.cpms-btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.4);
}

.cpms-btn-secondary {
    background: #ffffff;
    color: var(--slate-700);
    border: 1px solid var(--slate-200);
}

.cpms-btn-secondary:hover {
    background: var(--slate-50);
    border-color: var(--slate-300);
    color: var(--slate-900);
}

.cpms-btn-danger {
    background: var(--red);
    color: #ffffff;
}

.cpms-btn-danger:hover {
    background: #b91c1c;
}

.cpms-btn-sm {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: var(--radius-sm);
}

/* Inputs & Form Controls */
.cpms-input, .cpms-select {
    width: 100%;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    border: 1px solid var(--slate-200);
    background: #ffffff;
    font-size: 13px;
    color: var(--slate-800);
    outline: none;
    transition: all 0.15s ease;
}

.cpms-input:focus, .cpms-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.form-group label {
    font-size: 11px;
    font-weight: 800;
    color: var(--slate-600);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

/* Modals */
.cpms-modal-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 100;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.cpms-modal-backdrop.open {
    display: flex;
}

.cpms-modal {
    background: #ffffff;
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 540px;
    box-shadow: var(--shadow-modal);
    border: 1px solid var(--slate-200);
    overflow: hidden;
    animation: modal-pop 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modal-pop {
    0% { transform: scale(0.95); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.cpms-modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--slate-100);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cpms-modal-title {
    font-size: 17px;
    font-weight: 900;
    color: var(--slate-900);
}

.cpms-modal-body {
    padding: 24px;
    max-height: 70vh;
    overflow-y: auto;
}

.cpms-modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--slate-100);
    background: var(--slate-50);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

/* Tabs */
.cpms-tabs {
    display: flex;
    gap: 4px;
    background: var(--slate-100);
    padding: 4px;
    border-radius: var(--radius-md);
    width: fit-content;
}

.cpms-tab {
    padding: 7px 16px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 700;
    color: var(--slate-600);
    cursor: pointer;
    border: none;
    background: transparent;
    transition: all 0.15s ease;
}

.cpms-tab.active {
    background: #ffffff;
    color: var(--slate-900);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* Settings Layout */
.settings-container {
    display: flex;
    background: #ffffff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--slate-200);
    min-height: 600px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.settings-sidebar {
    width: 240px;
    background: #fcfcfd;
    border-right: 1px solid var(--slate-200);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.settings-cat-title {
    font-size: 10px;
    font-weight: 800;
    color: var(--slate-400);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 14px 18px 4px;
}

.settings-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--slate-700);
    cursor: pointer;
    text-decoration: none;
    border-right: 3px solid transparent;
    transition: all 0.15s ease;
    background: transparent;
    border-top: none; border-left: none; border-bottom: none;
    width: 100%;
    text-align: left;
}

.settings-nav-item i {
    width: 16px;
    text-align: center;
    color: var(--slate-400);
}

.settings-nav-item:hover {
    background: var(--slate-50);
    color: var(--slate-900);
}

.settings-nav-item.active {
    background: #eeeffe;
    color: #6366f1;
    font-weight: 700;
    border-right-color: #6366f1;
}

.settings-nav-item.active i {
    color: #6366f1;
}

.settings-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.settings-content-header {
    padding: 20px 28px;
    border-bottom: 1px solid var(--slate-100);
}

.settings-content-header h2 {
    font-size: 18px;
    font-weight: 800;
    color: var(--slate-900);
}

.settings-content-header p {
    font-size: 12px;
    color: var(--slate-500);
    margin-top: 2px;
}

.settings-content-body {
    padding: 28px;
    flex: 1;
    overflow-y: auto;
}

/* Library Top Navigation Bar */
.library-nav-bar {
    display: flex;
    gap: 6px;
    border-bottom: 1px solid var(--slate-200);
    margin-bottom: 24px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 2px;
}

.library-nav-bar::-webkit-scrollbar { display: none; }

.library-nav-item {
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 700;
    color: var(--slate-500);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    transition: all 0.15s ease;
    background: transparent;
    border-top: none; border-left: none; border-right: none;
}

.library-nav-item:hover {
    color: var(--slate-900);
}

.library-nav-item.active {
    color: #6366f1;
    border-bottom-color: #6366f1;
}

/* Master Sub-Sidebar Layout (Used in both Settings & Library) */
.sub-sidebar-container {
    display: flex;
    background: #ffffff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--slate-200);
    min-height: 620px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.sub-sidebar {
    width: 240px;
    background: #fcfcfd;
    border-right: 1px solid var(--slate-200);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.sub-sidebar-header {
    padding: 18px 18px 10px;
    border-bottom: 1px solid var(--slate-100);
}

.sub-sidebar-header h3 {
    font-size: 11px;
    font-weight: 800;
    color: var(--slate-400);
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

.sub-sidebar-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 18px;
    font-size: 13px;
    font-weight: 500;
    color: var(--slate-700);
    cursor: pointer;
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: all 0.15s ease;
    background: transparent;
    border-top: none; border-right: none; border-bottom: none;
    width: 100%;
    text-align: left;
}

.sub-sidebar-nav-item i {
    width: 16px;
    text-align: center;
    color: var(--slate-400);
}

.sub-sidebar-nav-item:hover {
    background: var(--slate-50);
    color: var(--slate-900);
}

.sub-sidebar-nav-item.active {
    background: #eeeffe;
    color: #6366f1;
    font-weight: 700;
    border-left-color: #6366f1;
}

.sub-sidebar-nav-item.active i {
    color: #6366f1;
}

.sub-sidebar-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.sub-sidebar-content-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--slate-100);
    background: #ffffff;
}

.sub-sidebar-controls-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 14px;
}

.sub-sidebar-search {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--slate-50);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-md);
    padding: 8px 14px;
    flex: 1;
    max-width: 420px;
}

.sub-sidebar-search input {
    border: none;
    background: transparent;
    outline: none;
    font-size: 13px;
    width: 100%;
    color: var(--slate-800);
}

.sub-sidebar-content-body {
    padding: 24px;
    flex: 1;
    overflow-y: auto;
}


