:root {
    --bs-primary: #0061f2;
    --bs-secondary: #6900c7;
    --bs-success: #00ac69;
    --bs-info: #00cfd5;
    --bs-warning: #f4a100;
    --bs-danger: #e81500;
    --bs-light: #f2f6fc;
    --bs-dark: #1e2329;
    --bs-body-bg: #f2f6fc;
    --bs-body-color: #69707a;
    --font-sans-serif: "Metropolis", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
    background-color: var(--bs-body-bg);
    color: var(--bs-body-color);
    font-family: var(--font-sans-serif);
}

/* Card Styles */
.card {
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(33, 40, 50, 0.15);
}

.card-header {
    background-color: #fff;
    border-bottom: 1px solid rgba(33, 40, 50, 0.03);
    font-weight: 500;
    padding: 1rem 1.35rem;
}

/* Sidebar */
.sidenav {
    display: flex;
    flex-direction: column;
    height: 100vh;
    flex-basis: 240px;
    flex-shrink: 0;
    transition: transform 0.15s ease-in-out;
    z-index: 1045;
    background-color: #212832;
    color: rgba(255, 255, 255, 0.6);
}

.sidenav .nav-link {
    color: rgba(255, 255, 255, 0.6);
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
}

.sidenav .nav-link:hover {
    color: #fff;
}

.sidenav .nav-link.active {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.1); /* Transparent white highlight */
    border-left: 3px solid var(--bs-primary);
}

.sidenav .nav-link .nav-link-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    font-size: 1rem;
    margin-right: 0.5rem;
    color: rgba(255, 255, 255, 0.25);
}

.sidenav .nav-link.active .nav-link-icon {
    color: var(--bs-primary);
}

.sidenav-footer {
    padding: 0.75rem;
    background-color: rgba(33, 40, 50, 0.05); /* Slightly darker part of sidebar */
    margin-top: auto;
}

/* Navbar */
.topnav {
    background-color: #fff;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(33, 40, 50, 0.15);
    z-index: 1040;
    height: 58px;
    padding-left: 1rem;
    padding-right: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.content-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 100vh;
    background-color: var(--bs-body-bg);
}

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

/* Auth Pages */
.bg-auth-primary {
    background-color: var(--bs-primary);
    background-image: linear-gradient(135deg, var(--bs-primary) 0%, var(--bs-secondary) 100%);
}

.auth-card {
    border: none;
    box-shadow: 0 15px 35px rgba(50, 50, 93, 0.1), 0 5px 15px rgba(0, 0, 0, 0.07);
}

/* Utilities */
.small-header {
    text-transform: uppercase;
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    color: #b7b9cc;
    margin-bottom: 0.5rem;
}

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

/* Table */
.table thead th {
    border-top: none;
    border-bottom: 2px solid #e3e6ec;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    color: #69707a;
}
