:root {
    --sidebar-bg: #1c2b36;
    --sidebar-hover: #263844;
    --sidebar-active: #2c3e50;
    --sidebar-text: #b4c1c9;
    --sidebar-text-active: #ffffff;
    --content-bg: #f9fafb;
    --header-bg: #ffffff;
    --primary-blue: #007bff;
    --primary-hover: #0069d9;
    --border-color: #e5e7eb;
}

body {
    background-color: var(--content-bg);
    color: #334155;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Sidebar Styles */
.sidebar {
    background-color: var(--sidebar-bg);
    width: 260px;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    color: var(--sidebar-text);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }
    .sidebar.open {
        transform: translateX(0);
    }
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-nav {
    flex-grow: 1;
    padding: 1rem 0;
}

.nav-item {
    display: flex;
    items-center: center;
    padding: 0.75rem 1.5rem;
    color: var(--sidebar-text);
    transition: all 0.2s;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
}

.nav-item:hover {
    background-color: var(--sidebar-hover);
    color: var(--sidebar-text-active);
}

.nav-item.active {
    background-color: var(--sidebar-active);
    color: var(--sidebar-text-active);
    border-left: 4px solid var(--primary-blue);
}

.nav-item svg {
    margin-right: 12px;
    width: 18px;
    height: 18px;
}

.sidebar-footer {
    padding: 1rem;
    font-size: 0.75rem;
    color: #4b5563;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Header Styles */
.main-content {
    margin-left: 260px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: margin-left 0.3s ease;
}

@media (max-width: 768px) {
    .main-content {
        margin-left: 0;
    }
}

.top-header {
    height: 64px;
    background-color: var(--header-bg);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    position: sticky;
    top: 0;
    z-index: 900;
}

/* Card & Table Styles */
.content-wrapper {
    padding: 2rem;
    flex-grow: 1;
}

.page-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.5rem;
}

.breadcrumb {
    font-size: 0.75rem;
    color: #6b7280;
    margin-bottom: 1.5rem;
}

.card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.card-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-title {
    font-weight: 600;
    color: #374151;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    background-color: #f9fafb;
    padding: 0.75rem 1.5rem;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 600;
    color: #4b5563;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    border-bottom: 1px solid var(--border-color);
}

td {
    padding: 1rem 1.5rem;
    font-size: 0.875rem;
    color: #374151;
    border-bottom: 1px solid var(--border-color);
}

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

tr:hover td {
    background-color: #fcfcfc;
}

/* Buttons */
.btn {
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background-color: var(--primary-blue);
    color: white;
    border: 1px solid var(--primary-blue);
}

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

.btn-outline {
    background-color: white;
    color: #374151;
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    background-color: #f3f4f6;
}

.btn-danger {
    background-color: #ef4444;
    color: white;
    border: 1px solid #ef4444;
}

.btn-danger:hover {
    background-color: #dc2626;
}

/* Badges */
.badge {
    padding: 0.25rem 0.625rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-success {
    background-color: #ecfdf5;
    color: #059669;
}

.badge-info {
    background-color: #eff6ff;
    color: #2563eb;
}

/* Utilities */
.text-muted { color: #6b7280; }
