/* AbbitSmart Booking – Design System */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* AbbitSmart Finclix-tema farver */
  --primary: #144443;
  --primary-hover: #0b3130;
  --primary-light: #e8f0ef;
  --accent: #c8f169;
  --accent-dark: #133b3a;
  --accent-light: #f4fae8;
  --teal: #039397;
  --bg: #f8f5f0;
  --surface: #FFFFFF;
  --text: #0b3130;
  --text-muted: #646464;
  --text-light: #819291;
  --border: #e8e4de;
  --border-light: #f0ece6;
  --error: #C53030;
  --warning: #D4A017;
  --success: #144443;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow: 0 1px 3px rgba(0,0,0,.04), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,.08);
  --font: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }

/* Header */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border-light);
  padding: 1rem 0;
}
.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.logo { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--text); }
.logo-icon {
  width: 40px; height: 40px; background: var(--primary); color: #fff;
  border-radius: var(--radius); display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.1rem;
}
.logo-text { font-weight: 600; font-size: 1.1rem; }
.logo-sub { font-size: .75rem; color: var(--text-muted); display: block; }

.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border-light);
  padding: 2rem 0;
  text-align: center;
  font-size: .875rem;
  color: var(--text-muted);
  margin-top: auto;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .75rem 1.5rem; border-radius: var(--radius); font-size: 1rem;
  font-weight: 500; border: none; cursor: pointer; transition: all .2s;
  text-decoration: none; font-family: inherit;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); text-decoration: none; }
.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text); }
.btn-outline:hover { background: var(--border-light); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--text-muted); }
.btn-ghost:hover { background: var(--border-light); }
.btn-danger { background: var(--error); color: #fff; }
.btn-secondary { background: var(--teal); color: #fff; }
.btn-lg { padding: 1rem 2rem; font-size: 1.05rem; }
.btn-sm { padding: .5rem 1rem; font-size: .875rem; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: all .2s;
}
.card-hover { cursor: pointer; }
.card-hover:hover { box-shadow: var(--shadow-md); border-color: rgba(27,77,110,.2); }
.card-selected { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(27,77,110,.15); }

/* Forms */
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-size: .875rem; font-weight: 500; margin-bottom: .4rem; }
.form-label .req { color: var(--error); }
.form-input, .form-select, .form-textarea {
  width: 100%; padding: .75rem 1rem; border: 1px solid var(--border);
  border-radius: var(--radius); font-size: 1rem; font-family: inherit;
  background: var(--surface); color: var(--text); transition: border-color .2s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(27,77,110,.12);
}
.form-hint { font-size: .8rem; color: var(--text-muted); margin-top: .25rem; }
.form-error { font-size: .8rem; color: var(--error); margin-top: .25rem; }
.form-grid { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .form-grid-2 { grid-template-columns: 1fr 1fr; } }

/* Steps */
.steps { display: flex; align-items: center; margin-bottom: 2rem; }
.step { display: flex; align-items: center; flex: 1; }
.step:last-child { flex: none; }
.step-circle {
  width: 32px; height: 32px; border-radius: 50%; display: flex;
  align-items: center; justify-content: center; font-size: .875rem; font-weight: 600;
  background: var(--border-light); color: var(--text-muted); flex-shrink: 0;
}
.step-done .step-circle { background: var(--teal); color: #fff; }
.step-active .step-circle { background: var(--primary); color: #fff; }
.step-line { flex: 1; height: 2px; background: var(--border-light); margin: 0 .5rem; }
.step-done .step-line { background: var(--teal); }

/* Service grid */
.service-grid { display: grid; gap: 1rem; }
@media (min-width: 640px) { .service-grid { grid-template-columns: 1fr 1fr; } }
.service-card .icon-box {
  width: 48px; height: 48px; background: var(--primary-light); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center; font-size: 1.25rem; flex-shrink: 0;
}
.service-card .top { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: .75rem; }
.service-card h3 { font-size: 1.05rem; font-weight: 600; }
.service-card .duration { font-size: .8rem; color: var(--text-muted); }
.service-card .desc { font-size: .875rem; color: var(--text-muted); margin-bottom: .5rem; }
.service-card .audience { font-size: .75rem; color: var(--text-light); }

/* Meeting types */
.meeting-grid { display: grid; gap: 1rem; }
@media (min-width: 640px) { .meeting-grid { grid-template-columns: repeat(3, 1fr); } }
.meeting-card { text-align: center; }
.meeting-card .icon-box { margin: 0 auto 1rem; width: 56px; height: 56px; font-size: 1.5rem; }

/* Calendar */
.calendar { background: var(--surface); border: 1px solid var(--border-light); border-radius: var(--radius-lg); padding: 1.5rem; }
.calendar-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
.calendar-header button { background: none; border: none; cursor: pointer; padding: .5rem; border-radius: 8px; font-size: 1.25rem; }
.calendar-header button:hover { background: var(--border-light); }
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-day-label { text-align: center; font-size: .75rem; font-weight: 500; color: var(--text-muted); padding: .5rem 0; }
.cal-day {
  aspect-ratio: 1; border: none; border-radius: var(--radius); background: none;
  font-size: .875rem; font-weight: 500; cursor: pointer; transition: all .15s;
}
.cal-day:hover:not(:disabled) { background: var(--primary-light); }
.cal-day:disabled { color: var(--text-light); cursor: not-allowed; }
.cal-day.selected { background: var(--primary); color: #fff; }
.cal-day.today { box-shadow: inset 0 0 0 2px rgba(27,77,110,.3); }

/* Time slots */
.time-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
@media (min-width: 640px) { .time-grid { grid-template-columns: repeat(4, 1fr); } }
.time-slot {
  padding: .75rem; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); font-size: .875rem; font-weight: 500; cursor: pointer; transition: all .15s;
}
.time-slot:hover { border-color: rgba(27,77,110,.3); background: var(--primary-light); }
.time-slot.selected { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Trust badges */
.trust-badges { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: center; font-size: .875rem; color: var(--text-muted); padding: 2rem 0; }

/* Wizard nav */
.wizard-nav { display: flex; justify-content: space-between; padding-top: 1.5rem; border-top: 1px solid var(--border-light); margin-top: 2rem; }

/* Alerts */
.alert { padding: 1rem 1.25rem; border-radius: var(--radius); margin-bottom: 1rem; font-size: .9rem; }
.alert-success { background: var(--accent-light); color: var(--accent); }
.alert-error { background: #FEE2E2; color: var(--error); }
.alert-warning { background: #FEF3C7; color: #92400E; }

/* Admin layout */
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 250px; background: var(--primary); color: #fff; flex-shrink: 0;
  display: flex; flex-direction: column;
}
.admin-sidebar .brand { padding: 1.5rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.admin-sidebar .brand h2 { font-size: 1.1rem; }
.admin-sidebar .brand p { font-size: .8rem; opacity: .6; }
.admin-nav { flex: 1; padding: 1rem; }
.admin-nav a {
  display: flex; align-items: center; gap: .75rem; padding: .75rem 1rem;
  border-radius: var(--radius); color: rgba(255,255,255,.7); text-decoration: none;
  font-size: .9rem; margin-bottom: .25rem; transition: all .15s;
}
.admin-nav a:hover, .admin-nav a.active { background: rgba(255,255,255,.12); color: #fff; }
.admin-main { flex: 1; padding: 2rem; overflow-x: auto; }
.admin-main h1 { font-size: 1.5rem; margin-bottom: 1.5rem; }

/* Stats */
.stats-grid { display: grid; gap: 1.5rem; margin-bottom: 2rem; }
@media (min-width: 640px) { .stats-grid { grid-template-columns: repeat(3, 1fr); } }
.stat-card { background: var(--surface); border: 1px solid var(--border-light); border-radius: var(--radius-lg); padding: 1.5rem; }
.stat-card .label { font-size: .875rem; color: var(--text-muted); }
.stat-card .value { font-size: 2rem; font-weight: 600; margin-top: .25rem; }

/* Table */
.table-wrap { background: var(--surface); border: 1px solid var(--border-light); border-radius: var(--radius-lg); overflow: hidden; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; padding: .75rem 1.5rem; font-size: .75rem; text-transform: uppercase; color: var(--text-muted); background: var(--bg); font-weight: 500; }
td { padding: 1rem 1.5rem; border-top: 1px solid var(--border-light); font-size: .9rem; }
tr:hover td { background: var(--bg); }

/* Badges */
.badge { display: inline-block; padding: .25rem .75rem; border-radius: 999px; font-size: .75rem; font-weight: 500; }
.badge-afventer { background: #FEF3C7; color: #92400E; }
.badge-bekraeftet { background: #D1FAE5; color: #065F46; }
.badge-afvist { background: #FEE2E2; color: #991B1B; }
.badge-nyt_tidspunkt_foreslaaet { background: #DBEAFE; color: #1E40AF; }
.badge-aflyst { background: #F3F4F6; color: #4B5563; }
.badge-genemfoert { background: #D1FAE5; color: #047857; }
.badge-udeblevet { background: #FEE2E2; color: #991B1B; }

/* Login */
.login-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.login-box { width: 100%; max-width: 400px; }
.login-box .card { padding: 2rem; }

/* Hero */
.hero { text-align: center; padding: 4rem 0; }
.hero h1 { font-size: 2rem; font-weight: 600; margin-bottom: 1rem; }
.hero p { font-size: 1.1rem; color: var(--text-muted); max-width: 600px; margin: 0 auto 2rem; }
.steps-section { background: var(--surface); border-top: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light); padding: 4rem 0; }
.steps-section h2 { text-align: center; margin-bottom: 2.5rem; }
.how-grid { display: grid; gap: 2rem; }
@media (min-width: 640px) { .how-grid { grid-template-columns: repeat(3, 1fr); } }
.how-step { text-align: center; }
.how-num { width: 48px; height: 48px; background: var(--primary-light); color: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 1.1rem; margin: 0 auto 1rem; }

.hidden { display: none !important; }
.text-center { text-align: center; }
.mt-4 { margin-top: 1rem; }
.mb-4 { margin-bottom: 1rem; }
.flex-wrap { display: flex; flex-wrap: wrap; gap: .75rem; }

/* Outlook-style admin calendar */
.oc-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1.25rem; }
.oc-subtitle { margin: .25rem 0 0; color: var(--text-muted); font-size: .9rem; }
.oc-toolbar-actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.oc-view-toggle { display: inline-flex; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.oc-view-toggle a { padding: .45rem .9rem; font-size: .85rem; text-decoration: none; color: var(--text); background: #fff; }
.oc-view-toggle a.active { background: var(--primary); color: #fff; }
.oc-layout { display: grid; gap: 1.25rem; }
@media (min-width: 1100px) { .oc-layout { grid-template-columns: 1fr 300px; align-items: start; } }
.oc-panel { background: #fff; border: 1px solid var(--border-light); border-radius: var(--radius-lg); overflow: hidden; }
.oc-nav { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .85rem 1rem; border-bottom: 1px solid var(--border-light); background: #fafafa; }
.oc-nav strong { font-size: .95rem; text-align: center; }

/* Week view */
.oc-week { overflow-x: auto; }
.oc-week-head { display: grid; grid-template-columns: 56px repeat(7, minmax(110px, 1fr)); border-bottom: 1px solid var(--border-light); min-width: 860px; }
.oc-time-gutter { background: #fafafa; }
.oc-day-head { padding: .65rem .5rem; text-align: center; text-decoration: none; color: inherit; border-left: 1px solid var(--border-light); background: #fafafa; }
.oc-day-head.is-today .oc-day-num { background: var(--primary); color: #fff; }
.oc-day-head.is-selected { box-shadow: inset 0 -3px 0 var(--primary); }
.oc-day-head.is-blocked { background: #fef2f2; }
.oc-day-name { display: block; font-size: .7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; }
.oc-day-num { display: inline-flex; width: 28px; height: 28px; align-items: center; justify-content: center; border-radius: 50%; font-weight: 600; margin-top: .15rem; }
.oc-week-body { display: grid; grid-template-columns: 56px 1fr; min-width: 860px; }
.oc-time-col { border-right: 1px solid var(--border-light); background: #fafafa; }
.oc-time-label { padding: .35rem .5rem 0 0; text-align: right; font-size: .7rem; color: var(--text-muted); box-sizing: border-box; border-bottom: 1px solid #f0f0f0; }
.oc-days-row { display: grid; grid-template-columns: repeat(7, minmax(110px, 1fr)); position: relative; }
.oc-day-col { position: relative; border-left: 1px solid var(--border-light); background: #fff; min-height: 468px; overflow: visible; }
.oc-day-col.is-today { background: #f8fcfb; }
.oc-day-col.is-blocked { background: #fff5f5; }
.oc-hour-line { border-bottom: 1px solid #f0f0f0; box-sizing: border-box; }
.oc-blocked-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(254,226,226,.55); color: #991b1b; font-size: .8rem; font-weight: 600; pointer-events: none; z-index: 1; }
.oc-event { position: absolute; left: 4px; right: 4px; z-index: 2; display: block; padding: .35rem .45rem; border-radius: 6px; text-decoration: none; color: #0b3130; overflow: hidden; box-shadow: 0 1px 2px rgba(0,0,0,.08); border-left: 3px solid var(--primary); }
.oc-event:hover { filter: brightness(.97); box-shadow: 0 2px 6px rgba(0,0,0,.12); }
.oc-event-time { display: block; font-size: .65rem; font-weight: 700; opacity: .85; }
.oc-event-title { display: block; font-size: .78rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.oc-event-sub { display: block; font-size: .68rem; opacity: .75; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.oc-event--afventer { background: #fef3c7; border-left-color: #d97706; }
.oc-event--bekraeftet { background: #d1fae5; border-left-color: #059669; }
.oc-event--nyt_tidspunkt_foreslaaet { background: #dbeafe; border-left-color: #2563eb; }
.oc-event--genemfoert { background: #ecfdf5; border-left-color: #047857; opacity: .85; }

/* Month view */
.oc-month { padding: 1rem; }
.oc-month-head { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-bottom: 4px; }
.oc-month-label { text-align: center; font-size: .72rem; font-weight: 600; color: var(--text-muted); padding: .35rem 0; }
.oc-month-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.oc-month-cell { display: flex; flex-direction: column; min-height: 110px; padding: .45rem; border: 1px solid var(--border-light); border-radius: 8px; text-decoration: none; color: inherit; background: #fff; }
.oc-month-cell:hover { border-color: var(--primary); background: var(--primary-light); }
.oc-month-cell.is-selected { border-color: var(--primary); box-shadow: inset 0 0 0 2px var(--primary); }
.oc-month-cell.is-today .oc-month-num { background: var(--primary); color: #fff; }
.oc-month-cell.is-blocked { background: #fef2f2; }
.oc-month-cell--empty { background: transparent; border: none; min-height: 0; }
.oc-month-top { display: flex; justify-content: space-between; align-items: center; gap: .25rem; margin-bottom: .35rem; }
.oc-month-num { width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; font-size: .8rem; font-weight: 600; }
.oc-month-badge { font-size: .58rem; padding: .1rem .35rem; border-radius: 999px; background: #fee2e2; color: #991b1b; }
.oc-month-events { display: flex; flex-direction: column; gap: 2px; }
.oc-month-pill { display: block; font-size: .62rem; padding: .15rem .35rem; border-radius: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: #e6f5f0; color: #0b3130; }
.oc-pill--afventer { background: #fef3c7; }
.oc-pill--bekraeftet { background: #d1fae5; }
.oc-pill--nyt_tidspunkt_foreslaaet { background: #dbeafe; }
.oc-pill--genemfoert { background: #ecfdf5; }
.oc-month-more { font-size: .62rem; color: var(--text-muted); padding-left: .2rem; }

.oc-legend { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: .85rem; font-size: .78rem; color: var(--text-muted); }
.oc-swatch { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: .35rem; vertical-align: -2px; }
.oc-swatch--afventer { background: #fef3c7; border: 1px solid #d97706; }
.oc-swatch--bekraeftet { background: #d1fae5; border: 1px solid #059669; }
.oc-swatch--nyt_tidspunkt_foreslaaet { background: #dbeafe; border: 1px solid #2563eb; }
.oc-swatch--genemfoert { background: #ecfdf5; border: 1px solid #047857; }
.oc-swatch--blocked { background: #fee2e2; border: 1px solid #ef4444; }

.oc-sidebar { background: #fff; border: 1px solid var(--border-light); border-radius: var(--radius-lg); padding: 1.15rem; }
.oc-sidebar h2 { font-size: 1.05rem; margin-bottom: .75rem; }
.oc-sidebar h3 { font-size: .85rem; color: var(--text-muted); margin: 1.25rem 0 .65rem; }
.oc-block-form { margin-bottom: .5rem; }
.oc-block-form .form-input { margin-bottom: .5rem; }
.oc-empty { color: var(--text-muted); font-size: .875rem; }
.oc-sidebar-event { display: block; padding: .75rem; margin-bottom: .55rem; border: 1px solid var(--border-light); border-radius: 8px; text-decoration: none; color: inherit; }
.oc-sidebar-event:hover { border-color: var(--primary); background: var(--primary-light); }
.oc-sidebar-time { font-weight: 700; font-size: .85rem; color: var(--primary); }
.oc-sidebar-name { font-size: .9rem; margin-top: .15rem; }
.oc-sidebar-service { font-size: .78rem; color: var(--text-muted); margin-bottom: .35rem; }
