:root {
    --app-sidebar-width: 260px;
    --app-bg: #f5f7fb;
    --app-border: #dbe3ef;
    --app-ink: #1f2937;
    --app-muted: #667085;
}

body {
    background: var(--app-bg);
    color: var(--app-ink);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.app-navbar {
    background: #ffffff;
    border-bottom: 1px solid var(--app-border);
    min-height: 64px;
    padding: 0.75rem 1rem;
    position: sticky;
    top: 0;
    z-index: 1030;
}

.navbar-brand {
    align-items: center;
    display: inline-flex;
    font-weight: 700;
    gap: 0.625rem;
}

.brand-mark {
    align-items: center;
    background: #14532d;
    border-radius: 8px;
    color: #ffffff;
    display: inline-flex;
    height: 34px;
    justify-content: center;
    width: 34px;
}

.btn-icon {
    align-items: center;
    border: 1px solid var(--app-border);
    border-radius: 8px;
    display: inline-flex;
    height: 38px;
    justify-content: center;
    width: 38px;
}

.app-shell {
    display: flex;
    min-height: calc(100vh - 64px);
}

.app-sidebar {
    background: #ffffff;
    border-right: 1px solid var(--app-border);
    flex: 0 0 var(--app-sidebar-width);
    padding: 1rem;
}

.sidebar-section {
    width: 100%;
}

.sidebar-label {
    color: var(--app-muted);
    font-size: 0.75rem;
    font-weight: 700;
    margin: 0 0 0.75rem;
    text-transform: uppercase;
}

.sidebar-link {
    align-items: center;
    border-radius: 8px;
    color: #344054;
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem;
    text-decoration: none;
}

.sidebar-link:hover,
.sidebar-link.active {
    background: #e8f5ee;
    color: #14532d;
}

.app-main {
    flex: 1;
    min-width: 0;
    padding: 1.25rem;
}

.app-breadcrumb {
    margin-bottom: 1rem;
}

.content-header {
    align-items: flex-start;
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.content-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.app-card {
    border: 1px solid var(--app-border);
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(16, 24, 40, 0.04);
}

.app-footer {
    align-items: center;
    border-top: 1px solid var(--app-border);
    color: var(--app-muted);
    display: flex;
    font-size: 0.875rem;
    gap: 1rem;
    justify-content: space-between;
    margin-top: 1.5rem;
    padding: 1rem 0 0;
}

.empty-state {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    justify-content: center;
    min-height: 55vh;
    text-align: center;
}

.empty-state i {
    color: #b42318;
    font-size: 3rem;
}

@media (max-width: 991.98px) {
    .app-main {
        padding: 1rem;
    }

    .content-header h1 {
        font-size: 1.5rem;
    }
}
