/* Shared design foundation for Udlejning_faelleshus */

:root {
    --bg: #F4F5F7;
    --panel: #FFFFFF;
    --text: #172B4D;
    --muted: #6B778C;
    --border: #DFE1E6;
    --blue-700: #0747A6;
    --blue-600: #0052CC;
    --blue-500: #2684FF;
    --blue-800: #05357F;
    --danger: #BF2600;
    --shadow: 0 10px 30px rgba(9, 30, 66, 0.12);
    --radius: 10px;
    --focus: 0 0 0 3px rgba(0, 82, 204, 0.25);
    --line: #DFE1E6;
    --soft: #F4F5F7;
    --shadow-lg: 0 10px 30px rgba(9, 30, 66, 0.12);
    --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial,
        "Apple Color Emoji", "Segoe UI Emoji";
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Notifications menu (identical to InviteFlow) */
.notification-menu { position: relative; }
.notification-menu summary { list-style: none; }
.notification-menu summary::-webkit-details-marker { display: none; }
.notification-pill {
    width: 34px; height: 34px; border-radius: 999px; display: inline-grid;
    place-items: center; position: relative; color: #fff;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.14);
    cursor: pointer; user-select: none;
}
.notification-pill:hover { background: rgba(255, 255, 255, 0.14); }
.notification-pill:focus { outline: none; box-shadow: var(--focus); }
.notification-badge {
    position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px;
    padding: 0 5px; border-radius: 999px; display: inline-flex;
    align-items: center; justify-content: center; background: #DE350B; color: #fff;
    border: 2px solid var(--blue-700); font-size: 10px; font-weight: 900; line-height: 1;
}
.notification-badge[hidden] { display: none; }
.notification-popover {
    position: absolute; top: calc(100% + 10px); right: 0;
    width: min(360px, calc(100vw - 24px)); background: #fff; color: var(--text);
    border: 2px solid rgba(23, 43, 77, 0.18); border-radius: 16px;
    box-shadow: var(--shadow-lg); overflow: hidden; z-index: 80;
}
.notification-head {
    padding: 14px 16px 12px; border-bottom: 1px solid var(--line);
    display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
}
.notification-title { font-size: 15px; font-weight: 900; color: var(--blue-700); }
.notification-count { font-size: 12px; font-weight: 800; color: var(--muted); white-space: nowrap; }
.notification-list { max-height: 320px; overflow-y: auto; }
.notification-item {
    display: block; padding: 13px 16px; text-decoration: none;
    color: var(--text); border-bottom: 1px solid var(--line);
}
.notification-item:hover { background: var(--soft); }
.notification-event {
    display: block; font-size: 13px; font-weight: 900;
    color: var(--blue-700); margin-bottom: 3px;
}
.notification-text { display: block; font-size: 13px; font-weight: 700; color: var(--text); line-height: 1.35; }
.notification-footer { padding: 11px 16px; background: var(--soft); text-align: center; }
.notification-see-all, .notification-mark-all {
    appearance: none; border: 0; background: transparent; padding: 0; margin: 0;
    font: inherit; font-size: 13px; font-weight: 900; color: var(--blue-700); cursor: pointer;
}
.notification-mark-all { margin: 4px 0 0; font-size: 12px; }
.notification-see-all:hover, .notification-mark-all:hover { text-decoration: underline; }
.notification-see-all:focus, .notification-mark-all:focus { outline: none; box-shadow: none; }
.notification-mark-all:disabled { cursor: default; opacity: 0.55; text-decoration: none; }
.notification-empty { padding: 18px 16px; font-size: 13px; font-weight: 700; color: var(--muted); text-align: center; }

@media (max-width: 640px) {
    .notification-popover {
        position: fixed; top: 62px; left: 12px; right: 12px; width: auto;
        max-height: calc(100vh - 86px); border-radius: 16px;
    }
    .notification-list { max-height: calc(100vh - 230px); }
    .notification-head { padding: 13px 14px 11px; }
    .notification-item { padding: 13px 14px; }
    .notification-footer { padding: 11px 14px; }
}

body {
    margin: 0;
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
}
