:root {
    --sidebar-width: 180px;
    --sidebar-collapsed-width: 80px;
    --primary-color: #6366f1;
    --primary-hover: #4f46e5;
    --sidebar-bg: #ffffff;
    --sidebar-dark-bg: #1e293b;
    --content-bg: #f9fafb;
    --card-bg: #ffffff;
    --text-color: #1f2937;
    --text-muted: #6b7280;
}

[data-bs-theme="dark"] {
    --sidebar-bg: #1e293b;
    --content-bg: #0f172a;
    --card-bg: #1e293b;
    --text-color: #f8fafc;
    --text-muted: #94a3b8;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--content-bg);
    color: var(--text-color);
    overflow-x: hidden;
}

/* Sidebar styling */
.sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    background-color: var(--sidebar-bg);
    transition: all 0.3s ease;
    position: fixed;
    z-index: 1000;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border-right: 1px solid rgba(0, 0, 0, 0.05);
}

[data-bs-theme="dark"] .sidebar {
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-collapsed {
    width: var(--sidebar-collapsed-width);
}

.sidebar-collapsed .nav-link span,
.sidebar-collapsed .sidebar-brand p,
.sidebar-collapsed .sidebar-footer span {
    display: none;
}

.sidebar-collapsed .nav-link {
    justify-content: center;
    /* padding: 0.5rem 0; */
}

.sidebar-collapsed .nav-link i {
    margin-right: 0;
    font-size: 1.25rem;
}

.sidebar .nav-link {
    color: var(--text-color);
    border-radius: 8px;
    margin-bottom: 4px;
    /* padding: 0.5rem 1rem; */
    /* font-weight: 500; */
    transition: all 0.2s;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.sidebar .nav-link i {
    /* margin-right: 12px; */
    /* width: 24px; */
    text-align: center;
    font-size: 1.1rem;
}

.sidebar .nav-link:hover {
    background-color: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
}

.sidebar .nav-link.active {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 6px -1px rgba(99, 102, 241, 0.3), 0 2px 4px -1px rgba(99, 102, 241, 0.2);
}

.sidebar-brand {
    padding: 1rem;
    font-weight: 700;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    color: var(--primary-color);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

[data-bs-theme="dark"] .sidebar-brand {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-brand i {
    font-size: 1.5rem;
}

.sidebar-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    /* padding: 1rem; */
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

[data-bs-theme="dark"] .sidebar-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Content area */
.content {
    /* padding: 5px; */
    /* min-height: 100vh; */
    transition: all 0.3s ease;
}

.sidebar-expanded~.content {
    margin-left: var(--sidebar-width);
}

.sidebar-collapsed~.content {
    margin-left: var(--sidebar-collapsed-width);
}

/* Navbar */
.navbar {
    background-color: var(--card-bg);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    /* padding: 0.5rem; */
}

.navbar .navbar-brand {
    font-weight: 600;
    color: var(--primary-color);
}

.navbar .nav-link {
    color: var(--text-color);
    /* font-weight: 500; */
}

/* Cards */
.card {
    border: none;
    /* border-radius: 12px; */
    background-color: var(--card-bg);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.card-title {
    /* font-weight: 600; */
    color: var(--text-color);
}

.card-text {
    color: var(--text-muted);
}

/* Buttons */
.btn-toggle-sidebar {
    border: none;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
    border-radius: 8px;
    /* padding: 0.5rem; */
    transition: all 0.2s;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-toggle-sidebar:hover {
    background: rgba(99, 102, 241, 0.2);
}

.btn-toggle-sidebar i {
    font-size: 1.25rem;
}

/* Mobile styles */
@media (max-width: 992px) {
    .sidebar {
        left: calc(-1 * var(--sidebar-width));
    }

    .sidebar.show {
        left: 0;
    }

    .sidebar-collapsed {
        left: calc(-1 * var(--sidebar-collapsed-width));
    }

    .sidebar-collapsed.show {
        left: 0;
    }

    .sidebar-expanded~.content,
    .sidebar-collapsed~.content {
        margin-left: 0;
    }

    .sidebar-backdrop {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 999;
        display: none;
    }
}

/* Utility classes */
.text-muted {
    color: var(--text-muted) !important;
}

.badge-primary {
    background-color: var(--primary-color);
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    font-size: 0.6rem;
    padding: 0.25rem 0.4rem;
}

