:root {
    --brand-primary: #111111;
    --brand-secondary: #f4f4f4;
    --app-border: #e5e5e5;
    --app-sidebar-width: 240px;
}

body {
    background: #ffffff;
    color: #1a1a1a;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* --- App shell (sidebar + topbar), jf. _mockups/ --- */

.app-shell {
    display: flex;
    min-height: 100vh;
}

.app-sidebar {
    width: var(--app-sidebar-width);
    flex-shrink: 0;
    border-right: 1px solid var(--app-border);
    padding: 24px 16px;
}

.app-sidebar-brand {
    margin-bottom: 24px;
}

.app-sidebar-logo {
    max-height: 32px;
}

.app-sidebar-wordmark {
    font-weight: 600;
    font-size: 1.1rem;
}

.app-sidebar-section-label {
    margin-top: 24px;
    padding: 0 12px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #8a8a8a;
}

.app-sidebar-nav {
    display: flex;
    flex-direction: column;
}

.app-nav-link {
    display: block;
    padding: 8px 12px;
    border-radius: 6px;
    color: #1a1a1a;
    text-decoration: none;
    font-size: 0.9rem;
}

.app-nav-link:hover {
    background: var(--brand-secondary);
}

.app-nav-link.active {
    background: var(--brand-secondary);
    font-weight: 600;
}

.app-nav-link.disabled {
    color: #b5b5b5;
    cursor: default;
}

.app-main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.app-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 32px;
    border-bottom: 1px solid var(--app-border);
}

.app-breadcrumb {
    font-size: 0.85rem;
    color: #6a6a6a;
}

.app-breadcrumb a {
    color: #6a6a6a;
    text-decoration: none;
}

.app-breadcrumb-sep {
    margin: 0 6px;
}

.app-topbar-actions {
    display: flex;
    gap: 8px;
}

.app-topbar-dropdown {
    color: #1a1a1a;
    text-decoration: none;
}

.app-content {
    padding: 32px;
}

.app-page-title {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.app-section-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.app-narrow-form {
    max-width: 360px;
}

.app-summary-card {
    display: block;
    border: 1px solid var(--app-border);
    border-radius: 8px;
    padding: 20px;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.app-summary-card:hover {
    background: var(--brand-secondary);
}

.app-summary-card-title {
    font-weight: 600;
    margin-bottom: 8px;
}

.app-summary-card-stat {
    font-size: 0.9rem;
    color: #6a6a6a;
}

.app-empty-state {
    border: 1px solid var(--app-border);
    border-radius: 8px;
    padding: 32px;
}

.app-table {
    border-top: 1px solid var(--app-border);
}

.app-table th {
    font-weight: 600;
    font-size: 0.8rem;
    color: #6a6a6a;
    border-bottom: 1px solid var(--app-border);
}

.app-table td,
.app-table th {
    padding: 12px 8px;
    vertical-align: middle;
}

.app-table tbody tr {
    border-bottom: 1px solid var(--app-border);
}

.app-btn-primary {
    background: var(--brand-primary);
    color: #ffffff;
    border-radius: 999px;
    padding: 10px 24px;
    font-weight: 600;
    border: none;
}

.app-btn-primary:hover {
    background: #1a1a1a;
    color: #ffffff;
}

.app-btn-secondary {
    background: #ffffff;
    color: #1a1a1a;
    border: 1px solid var(--app-border);
    border-radius: 999px;
    padding: 10px 24px;
    font-weight: 600;
}

.app-btn-secondary:hover {
    background: var(--brand-secondary);
    color: #1a1a1a;
}

.app-module-row {
    padding: 10px 0;
    border-bottom: 1px solid var(--app-border);
}

.app-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 24px;
}

/* --- Marketing / roddomæne --- */

.marketing-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.marketing-hero {
    max-width: 560px;
    text-align: center;
    padding: 32px;
}

.marketing-wordmark {
    display: block;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.85rem;
    color: #6a6a6a;
    margin-bottom: 16px;
}

.marketing-headline {
    font-size: 2.25rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.marketing-lead {
    color: #4a4a4a;
    margin-bottom: 32px;
}

/* --- Login / glemt adgangskode / nulstil adgangskode --- */

.auth-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: #fafafa;
}

/* Tydeligt visuelt skel mellem admin.ac og kunde-flader, jf. Morten - vises øverst på
   superadmin-siderne (login, glemt/nulstil adgangskode, hele shell'et). */
.admin-bar {
    width: 100%;
    background: #c0392b;
    color: #ffffff;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 6px 12px;
}

.auth-card {
    width: 100%;
    max-width: 360px;
    border: 1px solid var(--app-border);
    border-radius: 8px;
    padding: 32px;
    background: #ffffff;
}

.auth-card-brand {
    text-align: center;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.75rem;
    color: #6a6a6a;
    margin-bottom: 16px;
}

.auth-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
}

.auth-form .form-label {
    font-size: 0.85rem;
    color: #4a4a4a;
}

.auth-error {
    background: #fdeeee;
    color: #a12622;
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 0.85rem;
    margin-bottom: 16px;
}

.auth-card-footer {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 0;
    font-size: 0.85rem;
}
