:root {
    --sidebar-width: 240px;
    --sidebar-bg: #1e293b;
    --sidebar-hover: #334155;
    --sidebar-active: #0d6efd;
    --header-height: 56px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f1f5f9;
    overflow-x: hidden;
}

.wrapper {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: var(--sidebar-width);
    background: var(--sidebar-bg);
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 1040;
    overflow-y: auto;
    transition: transform 0.3s ease;
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-nav { padding: 8px 0; }
.sidebar-nav .nav-link {
    color: rgba(255,255,255,0.7);
    padding: 10px 16px;
    font-size: 14px;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}
.sidebar-nav .nav-link:hover {
    color: #fff;
    background: var(--sidebar-hover);
}
.sidebar-nav .nav-link.active {
    color: #fff;
    background: var(--sidebar-hover);
    border-left-color: var(--sidebar-active);
}

.main-content {
    margin-left: var(--sidebar-width);
    width: calc(100% - var(--sidebar-width));
    min-height: 100vh;
}

.top-header {
    position: sticky;
    top: 0;
    z-index: 1030;
}

.card {
    border: none;
    border-radius: 8px;
}

.card-header {
    border-radius: 8px 8px 0 0 !important;
    font-weight: 600;
}

.border-purple { border-color: #6f42c1 !important; }
.border-orange { border-color: #fd7e14 !important; }
.text-purple { color: #6f42c1 !important; }
.text-orange { color: #fd7e14 !important; }
.bg-purple { background-color: #6f42c1 !important; }

.w-35 { width: 35%; }
.w-40 { width: 40%; }

.table th {
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: #64748b;
    background: #f8fafc;
}

.table td {
    vertical-align: middle;
}

.badge {
    font-weight: 500;
    padding: 4px 10px;
}

.pagination { margin: 0; }

.btn-sm { font-size: 13px; }

@media (max-width: 767px) {
    .sidebar {
        transform: translateX(-100%);
    }
    .sidebar.show {
        transform: translateX(0);
    }
    .main-content {
        margin-left: 0;
        width: 100%;
    }
}

@media (min-width: 768px) {
    .sidebar {
        transform: translateX(0) !important;
    }
}

.alert { border-radius: 8px; }
.form-label { font-weight: 500; font-size: 14px; }
.form-control:focus, .form-select:focus {
    box-shadow: 0 0 0 2px rgba(13,110,253,0.2);
    border-color: #86b7fe;
}
