:root {
    --app-surface: #ffffff;
    --app-canvas: #f4f6f9;
    --app-accent: #2563eb;
}

[data-bs-theme="dark"] {
    --app-surface: #1b1f27;
    --app-canvas: #12151b;
    --app-accent: #60a5fa;
}

body {
    background-color: var(--app-canvas);
    min-height: 100vh;
}

.app-nav {
    backdrop-filter: saturate(180%) blur(6px);
}

.app-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.9rem;
    height: 1.9rem;
    border-radius: 0.6rem;
    background: var(--app-accent);
    color: #fff;
    font-size: 0.95rem;
}

.app-card {
    background: var(--app-surface);
    border: 1px solid var(--bs-border-color);
    border-radius: 0.9rem;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 4px 16px rgba(16, 24, 40, 0.04);
}

.app-card-header {
    padding: 1.1rem 1.35rem;
    border-bottom: 1px solid var(--bs-border-color);
}

.app-card-body {
    padding: 1.35rem;
}

.app-title {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0;
}

.app-subtitle {
    font-size: 0.875rem;
    color: var(--bs-secondary-color);
    margin: 0.15rem 0 0;
}

.app-login {
    max-width: 25rem;
    margin: 0 auto;
    padding-top: 8vh;
}

.table > :not(caption) > * > * {
    padding: 0.85rem 0.75rem;
}

.table thead th {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--bs-secondary-color);
    border-bottom-width: 1px;
}

.app-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 50%;
    background: var(--bs-secondary-bg);
    color: var(--bs-secondary-color);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.app-empty {
    padding: 2.5rem 1rem;
    text-align: center;
    color: var(--bs-secondary-color);
}

.app-empty i {
    font-size: 2rem;
    opacity: 0.35;
    display: block;
    margin-bottom: 0.5rem;
}

.navbar-brand {
    padding-top: 0;
    padding-bottom: 0;
}

.app-logo {
    height: 2.5rem;
    width: auto;
}

.app-logo-login {
    height: 4.5rem;
    width: auto;
}

[data-theme="dark"] .app-logo,
[data-theme="dark"] .app-logo-login {
    filter: brightness(1.6);
}
.app-action-panel {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1030;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.625rem;
    padding: 0.75rem 1rem;
    background: var(--bs-body-bg);
    border-top: 1px solid var(--bs-border-color);
    box-shadow: 0 -0.5rem 1.5rem rgba(16, 24, 40, 0.08);
}

.app-action-panel form {
    margin: 0;
}

.app-action-panel .btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

main:has(.app-action-panel) {
    padding-bottom: 7rem !important;
}
.app-toasts {
    position: fixed;
    top: 4.5rem;
    right: 1rem;
    z-index: 1080;
    width: min(480px, calc(100vw - 2rem));
}

.app-toasts .alert {
    box-shadow: 0 0.5rem 1.5rem rgba(16, 24, 40, 0.18);
}
