/* ==========================================================================
   DataDent Formulare — Main Stylesheet
   Přesně odpovídá BEM třídám v PHP šablonách
   ========================================================================== */

/* ==========================================================================
   1. CSS PROMĚNNÉ
   ========================================================================== */
:root {
  --color-primary:       #3a405a;
  --color-primary-light: #4e5572;
  --color-primary-dark:  #2c3145;
  --color-accent:        #0d9488;
  --color-accent-hover:  #0b7e73;
  --color-accent-light:  #eefbfa;

  --color-success:       #059669;
  --color-success-light: #ecfdf5;
  --color-danger:        #dc2626;
  --color-danger-light:  #fef2f2;
  --color-warning:       #d97706;
  --color-warning-light: #fffbeb;
  --color-info:          #0891b2;
  --color-info-light:    #ecfeff;

  --color-bg:            #f5f6f8;
  --color-surface:       #ffffff;
  --color-surface-alt:   #f0f2f5;
  --color-border:        #e0e3ea;
  --color-text:          #1a1d2b;
  --color-text-secondary:#3d4255;
  --color-text-muted:    #6e7389;
  --color-text-inverse:  #ffffff;

  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 14px;
  --radius-xl: 22px;
  --font-size-xs:   0.75rem;
  --font-size-sm:   0.875rem;
  --font-size-base: 1rem;

  --shadow-sm: 0 1px 3px rgba(58,64,90,.06);
  --shadow:    0 4px 16px rgba(58,64,90,.08), 0 1px 3px rgba(58,64,90,.04);
  --shadow-lg: 0 8px 30px rgba(58,64,90,.10), 0 2px 6px rgba(58,64,90,.05);
  --transition: .2s ease;
}

/* ==========================================================================
   2. RESET & BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: var(--color-accent); text-decoration: none; }
a:hover { color: var(--color-accent-hover); text-decoration: underline; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4, h5, h6 { color: var(--color-primary); line-height: 1.25; font-weight: 700; }
p { margin-bottom: .75rem; }
p:last-child { margin-bottom: 0; }
ul, ol { padding-left: 1.5rem; }
code {
  font-family: 'Courier New', monospace;
  font-size: .82rem;
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: .15rem .4rem;
  word-break: break-all;
}

/* ==========================================================================
   3. LAYOUT
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container--narrow {
  width: 100%;
  max-width: 740px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.main-content {
  flex: 1;
  padding: 2.5rem 0;
}

/* ==========================================================================
   4. NAVBAR
   ========================================================================== */
.navbar {
  background: var(--color-primary);
  box-shadow: 0 2px 8px rgba(0,0,0,.22);
  position: sticky;
  top: 0;
  z-index: 200;
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
  gap: 1rem;
}

.navbar__brand {
  display: flex;
  align-items: center;
  gap: .55rem;
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  flex-shrink: 0;
}
.navbar__brand:hover { color: #fff; text-decoration: none; opacity: .9; }

.navbar__logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}

.navbar__logo-icon svg {
  width: 34px;
  height: 34px;
  stroke-width: 1.6;
}

.navbar__logo-text { font-weight: 800; font-size: 1.25rem; }

.navbar__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .4rem;
}
.navbar__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: rgba(255,255,255,.85);
  border-radius: 2px;
  transition: var(--transition);
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: .2rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.navbar__links a {
  color: rgba(255,255,255,.82);
  padding: .4rem .85rem;
  border-radius: var(--radius-sm);
  font-size: .87rem;
  font-weight: 500;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: .3rem;
  transition: background var(--transition), color var(--transition);
}
.navbar__links a:hover,
.navbar__links a.active {
  background: rgba(255,255,255,.16);
  color: #fff;
  text-decoration: none;
}

/* ==========================================================================
   5. TLAČÍTKA
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .55rem 1.2rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  font-size: .87rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.4;
  transition: background var(--transition), color var(--transition),
              border-color var(--transition), box-shadow var(--transition),
              transform var(--transition);
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}
.btn--primary:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  color: #fff;
  box-shadow: 0 4px 14px rgba(13,148,136,.30);
}

.btn--secondary {
  background: var(--color-surface);
  color: var(--color-text-secondary);
  border-color: var(--color-border);
}
.btn--secondary:hover {
  background: var(--color-surface-alt);
  color: var(--color-text);
  border-color: #c5cdd8;
}

.btn--outline {
  background: transparent;
  color: var(--color-accent);
  border-color: var(--color-accent);
}
.btn--outline:hover {
  background: var(--color-accent-light);
  color: var(--color-accent-hover);
}

/* Outline bílé (v navbaru / hero na tmavém pozadí) */
.navbar__links .btn--outline {
  color: rgba(255,255,255,.85);
  border-color: rgba(255,255,255,.45);
}
.navbar__links .btn--outline:hover {
  background: rgba(255,255,255,.15);
  color: #fff;
  border-color: rgba(255,255,255,.7);
}

.btn--danger {
  background: var(--color-danger);
  color: #fff;
  border-color: var(--color-danger);
}
.btn--danger:hover { background: #b91c1c; color: #fff; }

.btn--copied {
  background: var(--color-success-light);
  color: var(--color-success);
  border-color: var(--color-success);
  pointer-events: none;
  transition: background .2s, color .2s, border-color .2s;
}

.btn--sm  { padding: .32rem .75rem; font-size: .8rem; }
.btn--xs  { padding: .2rem .55rem;  font-size: .75rem; }
.btn--lg  { padding: .72rem 1.6rem; font-size: 1rem; }
.btn--full { width: 100%; }

/* ==========================================================================
   6. FLASH ZPRÁVY
   ========================================================================== */
.flash-container {
  max-width: 1160px;
  margin: 0 auto;
  padding: .75rem 1.5rem 0;
}

.alert {
  padding: .9rem 1.1rem;
  border-radius: var(--radius);
  font-size: .92rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: 1.25rem;
  border: 1px solid transparent;
  line-height: 1.5;
}

.alert--success { background: var(--color-success-light); color: #065f46; border-color: #a7f3d0; }
.alert--danger,
.alert--error   { background: var(--color-danger-light);  color: #991b1b; border-color: #fecaca; }
.alert--warning { background: var(--color-warning-light); color: #92400e; border-color: #fde68a; }
.alert--info    { background: var(--color-info-light);    color: #155e75; border-color: #a5f3fc; }

.alert__close {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
  opacity: .5;
  padding: 0 .2rem;
  flex-shrink: 0;
}
.alert__close:hover { opacity: 1; }

.alert__list { margin: .25rem 0 0 1rem; padding: 0; font-size: .87rem; }
.alert__list li { margin-bottom: .2rem; }

/* ==========================================================================
   7. BADGES
   ========================================================================== */
.badge {
  display: inline-flex;
  align-items: center;
  padding: .22rem .65rem;
  border-radius: 99px;
  font-size: .75rem;
  /* unified tiny */
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.badge--accent  { background: var(--color-accent-light); color: var(--color-accent); }
.badge--success { background: var(--color-success-light); color: var(--color-success); }
.badge--danger  { background: var(--color-danger-light);  color: var(--color-danger); }
.badge--muted   { background: #f1f5f9; color: var(--color-text-muted); }

.lang-badge {
  display: inline-flex;
  align-items: center;
  padding: .18rem .55rem;
  border-radius: 99px;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.lang-badge--cs { background: #e0e4ed; color: var(--color-primary); }
.lang-badge--en { background: #dcfce7; color: #166534; }
.lang-badge--de { background: #fef9c3; color: #854d0e; }

/* ==========================================================================
   8. FORMULÁŘOVÉ PRVKY (doctor/admin stránky)
   ========================================================================== */
.form-group {
  margin-bottom: 1.15rem;
}

.form-group--inline {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.form-label {
  display: block;
  font-size: .875rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  margin-bottom: .35rem;
}

.required-star {
  color: var(--color-danger);
  margin-left: .15rem;
}

.form-control {
  display: block;
  width: 100%;
  padding: .6rem .9rem;
  font-size: .92rem;
  font-family: inherit;
  color: var(--color-text);
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
  line-height: 1.5;
}
.form-control:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(13,148,136,.12);
}
.form-control::placeholder { color: var(--color-text-muted); }
.form-control:disabled { background: var(--color-surface-alt); opacity: .7; cursor: not-allowed; }
select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 90px; }

.has-error .form-control { border-color: var(--color-danger); }

.input-group {
  position: relative;
  display: flex;
}
.input-group .form-control { flex: 1; }

.checkbox-label {
  display: flex;
  align-items: center;
  gap: .45rem;
  font-size: .9rem;
  color: var(--color-text-secondary);
  cursor: pointer;
}
.checkbox-label input { accent-color: var(--color-accent); }

/* ==========================================================================
   9. FOOTER
   ========================================================================== */
.footer {
  background: var(--color-primary);
  color: rgba(255,255,255,.65);
  margin-top: auto;
}

.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr auto;
  gap: 2rem;
  padding: 2.5rem 1.5rem;
  max-width: 1160px;
  margin: 0 auto;
  box-sizing: border-box;
}

.footer__logo {
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  display: block;
  margin-bottom: .5rem;
}

.footer__desc {
  font-size: .83rem;
  color: rgba(255,255,255,.55);
  line-height: 1.6;
  margin: 0;
}

.footer__links h4,
.footer__contact h4 {
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: rgba(255,255,255,.5);
  margin-bottom: .75rem;
}

.footer__links ul,
.footer__contact ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer__links li,
.footer__contact li {
  margin-bottom: .4rem;
}

.footer__links a,
.footer__contact a {
  color: rgba(255,255,255,.7);
  font-size: .87rem;
  text-decoration: none;
  transition: color var(--transition);
}
.footer__links a:hover,
.footer__contact a:hover { color: #fff; }

.footer__legal {
  margin-top: .45rem;
  max-width: 340px;
  line-height: 1.55;
}

.footer__demo {
  display: block;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #fbbf24;
  margin-bottom: .1rem;
}

.footer__gdpr {
  display: block;
  font-size: .68rem;
  font-weight: 400;
  color: rgba(255,255,255,.3);
  text-transform: none;
  letter-spacing: 0;
}

.footer__time {
  display: block;
  margin-top: .3rem;
  font-size: .72rem;
  color: rgba(255,255,255,.3);
}

.footer__company-btn {
  background: none;
  border: none;
  color: rgba(255,255,255,.5);
  font: inherit;
  font-size: inherit;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  cursor: pointer;
  padding: 0;
  transition: color var(--transition);
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 3px;
}
.footer__company-btn:hover { color: rgba(255,255,255,.85); }

.footer__contact--logo {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
}

.footer__logo-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: .5rem;
  border-radius: var(--radius);
  transition: opacity var(--transition);
  opacity: .45;
}
.footer__logo-btn:hover { opacity: .8; }

.footer__company-logo {
  height: 32px;
  width: auto;
  display: block;
}

.footer__company-btn--bottom {
  font-size: .8rem;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  color: rgba(255,255,255,.4);
}
.footer__company-btn--bottom:hover { color: rgba(255,255,255,.7); }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: .9rem 0;
  text-align: center;
  font-size: .8rem;
  color: rgba(255,255,255,.4);
}

/* ==========================================================================
   10. LANDING PAGE
   ========================================================================== */

/* Demo banner */
.demo-banner {
  background: #92400e;
  color: #fef3c7;
  text-align: center;
  padding: .6rem 1rem;
  font-size: .85rem;
  font-weight: 500;
}

/* Hero sekce */
.hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 55%, #4a6b7a 100%);
  color: #fff;
  padding: 5rem 0 4rem;
  overflow: hidden;
  position: relative;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 3rem;
  align-items: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 99px;
  padding: .28rem .8rem;
  font-size: .78rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
  letter-spacing: .05em;
}

.hero__title {
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.15;
  margin-bottom: .85rem;
}

.hero__subtitle {
  font-size: 1.05rem;
  color: rgba(255,255,255,.78);
  max-width: 500px;
  line-height: 1.65;
  margin-bottom: 2rem;
}

.hero__actions {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
}

/* Hero mockup (dekorativní) */
.hero__visual {
  display: flex;
  justify-content: center;
}

.hero__mockup {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  width: 260px;
  backdrop-filter: blur(4px);
  position: relative;
}

.hero__mockup-screen {
  background: #fff;
  border-radius: var(--radius);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.hero__mockup-bar {
  height: 8px;
  background: var(--color-accent-light);
  border-radius: 4px;
  width: 60%;
}

.hero__mockup-line {
  height: 6px;
  background: var(--color-border);
  border-radius: 3px;
}

.hero__mockup-line--short { width: 70%; }

.hero__mockup-sig {
  height: 32px;
  background: var(--color-surface-alt);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-sm);
  margin-top: .25rem;
}

.hero__mockup-qr {
  position: absolute;
  bottom: -12px;
  right: -12px;
  width: 56px;
  height: 56px;
  background: var(--color-surface);
  border: 2px solid rgba(255,255,255,.4);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  box-shadow: var(--shadow-lg);
}

.hero__mockup-qr svg {
  width: 28px;
  height: 28px;
  stroke-width: 1.5;
}

/* Sekce obecně */
.section {
  padding: 4.5rem 0;
}

.section--alt { background: var(--color-surface); }

.section--cta {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  color: #fff;
}

.section__title {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: .5rem;
}

.section--cta .section__title { color: #fff; }

.section__subtitle {
  font-size: .97rem;
  color: var(--color-text-muted);
  max-width: 520px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
}

.section--cta .section__subtitle { color: rgba(255,255,255,.78); }

/* Features grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.feature-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: box-shadow var(--transition), transform var(--transition);
}
.feature-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }

.feature-card__icon {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  background: var(--color-accent-light);
  color: var(--color-accent);
  margin-bottom: 1.1rem;
}

.feature-card__icon svg {
  width: 36px;
  height: 36px;
  stroke-width: 1.4;
}

.feature-card__title {
  font-size: .97rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: .45rem;
}

.feature-card__desc {
  font-size: .87rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin: 0;
}

/* Formuláře list */
.forms-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2.5rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.forms-list__item {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.forms-list__item:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.forms-list__icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  background: var(--color-accent-light);
  color: var(--color-accent);
  flex-shrink: 0;
}

.forms-list__icon svg {
  width: 32px;
  height: 32px;
  stroke-width: 1.4;
}

.forms-list__body {
  flex: 1;
  min-width: 0;
}

.forms-list__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: .3rem;
}

.forms-list__desc {
  font-size: .92rem;
  color: var(--color-text-muted);
  margin: 0 0 .55rem;
  line-height: 1.6;
}

.forms-list__langs {
  display: flex;
  gap: .35rem;
  flex-wrap: wrap;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
  counter-reset: steps;
}

.step {
  text-align: center;
}

.step__number {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-size: 1.25rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto .9rem;
  box-shadow: 0 4px 12px rgba(58,64,90,.30);
}

.step__title {
  font-size: .95rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: .35rem;
}

.step__desc {
  font-size: .85rem;
  color: var(--color-text-muted);
  margin: 0;
  line-height: 1.55;
}

/* CTA sekce */
.cta-actions {
  display: flex;
  gap: .75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.cta-note {
  font-size: .85rem;
  color: rgba(255,255,255,.65);
  margin: 0;
}
.cta-note a { color: rgba(255,255,255,.9); text-decoration: underline; }

/* ==========================================================================
   11. AUTH (přihlášení, registrace)
   ========================================================================== */
.page-auth .main-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
}

.page-auth .flash-container {
  width: 100%;
  max-width: 440px;
  padding: 0 0 .5rem;
}

.page-auth .container--narrow {
  max-width: 440px;
  padding: 0;
}

/* Registration page */
.page-auth--register .main-content {
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 0;
}

.reg {
  width: 100%;
  max-width: 1021px;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
}

/* Hero banner */
.reg__hero {
  text-align: center;
  padding: 2.5rem 1rem 2rem;
}

.reg__title {
  font-size: 1.65rem;
  /* unified h1 */
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: .4rem;
}

.reg__subtitle {
  font-size: .93rem;
  color: var(--color-text-muted);
  margin: 0;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.55;
}

/* Sections with numbered badges */
.reg__section {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.reg__section-badge {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-size: .9rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1.35rem;
  box-shadow: 0 2px 8px rgba(58,64,90,.25);
}

.reg__section-body {
  flex: 1;
  min-width: 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.5rem 0.5rem;
  box-shadow: var(--shadow-sm);
}

.reg__section-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-primary);
  margin: 0 0 .15rem;
}

.reg__section-desc {
  font-size: .87rem;
  color: var(--color-text-muted);
  margin: 0 0 1.1rem;
  line-height: 1.5;
}

/* 2-col fields grid inside section */
.reg__fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1rem;
}

.reg__field {
  margin-bottom: 1rem;
}

.reg__field--full {
  grid-column: 1 / -1;
}

/* Submit area */
.reg__submit {
  text-align: center;
  margin-top: .75rem;
}

.reg__submit .btn {
  min-width: 280px;
}

.reg__login-link {
  margin-top: .9rem;
  font-size: .87rem;
  color: var(--color-text-muted);
}

/* ── Office hours table ── */
.oh-table {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1rem;
}

.oh-table__head {
  display: grid;
  grid-template-columns: 100px 1fr 1fr;
  gap: .5rem;
  background: var(--color-surface-alt);
  padding: .5rem .75rem;
  border-bottom: 1px solid var(--color-border);
}

.oh-table__th {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--color-text-muted);
}

.oh-table__row {
  display: grid;
  grid-template-columns: 100px 1fr 1fr;
  gap: .5rem;
  padding: .5rem .75rem;
  align-items: center;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface);
  transition: background var(--transition);
}

.oh-table__row:last-child { border-bottom: none; }

.oh-table__row--active {
  background: var(--color-accent-light);
}

.oh-table__day {
  display: flex;
  align-items: center;
  gap: .4rem;
  cursor: pointer;
  font-size: .87rem;
  font-weight: 500;
  color: var(--color-text-muted);
}

.oh-table__row--active .oh-table__day {
  color: var(--color-text);
  font-weight: 600;
}

.oh-table__day input[type="checkbox"] {
  accent-color: var(--color-accent);
  width: 15px;
  height: 15px;
}

.oh-table__times {
  display: flex;
  align-items: center;
  gap: .3rem;
}

.oh-table__sep {
  color: var(--color-text-muted);
  font-size: .8rem;
  flex-shrink: 0;
}

.form-control--time {
  width: auto;
  min-width: 0;
  flex: 1;
  padding: .32rem .4rem;
  font-size: .82rem;
  text-align: center;
}

/* ── Fieldsets — profile page (kept for backward compat) ── */
.fieldset--card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  margin: 0;
  min-inline-size: 0;
}

.fieldset--card .fieldset__legend {
  border-bottom: none;
  margin-bottom: .85rem;
  padding-bottom: 0;
  font-size: .85rem;
  float: left;
  width: 100%;
}

.fieldset--card .fieldset__legend + * { clear: both; }

.fieldset__hint {
  font-size: .8rem;
  color: var(--color-text-muted);
  margin: -.35rem 0 1rem;
  line-height: 1.4;
}

.auth-card {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 2.5rem 2.25rem;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  border: 1px solid var(--color-border);
}

.auth-card__header {
  text-align: center;
  margin-bottom: 1.75rem;
}

.auth-card__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto .8rem;
  color: var(--color-accent);
}

.auth-card__logo svg {
  width: 44px;
  height: 44px;
  stroke-width: 1.6;
}

.auth-card__title {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: .2rem;
}

.auth-card__subtitle {
  font-size: .92rem;
  color: var(--color-text-muted);
  margin: 0;
}

.auth-card--wide {
  max-width: 620px;
}

.auth-card__footer {
  margin-top: 1.5rem;
  text-align: center;
  font-size: .92rem;
  color: var(--color-text-muted);
}
.auth-card__footer p { margin: 0; }

/* Fieldset sekce (registrace) */
.fieldset {
  border: none;
  padding: 0;
  margin: 0 0 1.5rem;
  min-inline-size: 0;
}

.fieldset__legend {
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--color-text-muted);
  border-bottom: 1px solid var(--color-border);
  padding-bottom: .5rem;
  margin-bottom: 1.15rem;
  width: 100%;
}

/* Řádek se dvěma poli vedle sebe */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* Nápověda pod polem */
.form-hint {
  font-size: .8rem;
  color: var(--color-text-muted);
  margin-top: .3rem;
  line-height: 1.4;
}

/* Chybová hláška u pole */
.invalid-feedback {
  font-size: .8rem;
  color: var(--color-danger);
  margin-top: .3rem;
}

.form-control.is-invalid {
  border-color: var(--color-danger);
}

/* ==========================================================================
   12. DASHBOARD — PAGE HEADER
   ========================================================================== */
.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.75rem 0 1.5rem;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.page-header__actions {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  align-items: center;
  flex-shrink: 0;
}

.page-title {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: .2rem;
}

.page-subtitle {
  font-size: .92rem;
  color: var(--color-text-muted);
  margin: 0;
}

/* ==========================================================================
   12b. DASHBOARD — NEW LAYOUT
   ========================================================================== */
.dash {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1.5rem 2rem;
}

/* Hero welcome + inline stats */
.dash__hero {
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  border-radius: var(--radius-xl);
  color: #fff;
  overflow: hidden;
}

.dash__hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.75rem 2rem;
}

/* Dashboard hero — stats bar přidává výšku, top padding kompaktnější */
.page-dashboard .dash__hero-top {
  padding: 1.5rem 2rem 1.25rem;
}

.dash__greeting {
  font-size: .87rem;
  color: rgba(255,255,255,.55);
  margin: 0 0 .15rem;
  font-weight: 500;
  letter-spacing: .02em;
}

.dash__name {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  margin: 0;
  line-height: 1.2;
}

.dash__clinic {
  font-size: .92rem;
  color: rgba(255,255,255,.65);
  margin: .25rem 0 0;
  font-weight: 400;
}

.dash__hero-actions {
  display: flex;
  gap: .6rem;
  flex-shrink: 0;
}

.dash__hero-actions .btn--outline {
  color: rgba(255,255,255,.85);
  border-color: rgba(255,255,255,.35);
}
.dash__hero-actions .btn--outline:hover {
  background: rgba(255,255,255,.12);
  color: #fff;
  border-color: rgba(255,255,255,.6);
}
.dash__hero-actions .btn--primary {
  background: var(--color-accent);
  border-color: var(--color-accent);
}

/* Office hours status in hero */
.dash__oh {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .35rem;
  flex-shrink: 0;
}

.dash__oh-title {
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: rgba(255,255,255,.75);
}

.dash__oh-badge {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .4rem .85rem;
  border-radius: 99px;
  font-size: .82rem;
  font-weight: 600;
  background: rgba(255,255,255,.12);
  color: rgba(255,255,255,.9);
}

.dash__oh-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dash__oh-dot--open  { background: #34d399; box-shadow: 0 0 6px rgba(52,211,153,.6); }
.dash__oh-dot--soon  { background: #fbbf24; box-shadow: 0 0 6px rgba(251,191,36,.5); }
.dash__oh-dot--closed{ background: #f87171; }
.dash__oh-dot--warn  { background: #fbbf24; }

.dash__oh-badge--open  { background: rgba(52,211,153,.15); }
.dash__oh-badge--soon  { background: rgba(251,191,36,.15); }
.dash__oh-badge--closed{ background: rgba(248,113,113,.12); }
.dash__oh-badge--warn  { background: rgba(251,191,36,.12); }

.dash__oh-sub {
  font-size: .75rem;
  color: rgba(255,255,255,.5);
  font-weight: 400;
}

.dash__oh-link {
  color: rgba(255,255,255,.8) !important;
  border-color: rgba(255,255,255,.3) !important;
  font-size: .8rem !important;
  padding: .25rem .7rem !important;
}
.dash__oh-link:hover {
  background: rgba(255,255,255,.1) !important;
  color: #fff !important;
}

/* Stats bar inside hero */
.dash__hero-stats {
  display: flex;
  align-items: center;
  padding: .75rem 2rem;
  background: rgba(0,0,0,.15);
}

.dash__hero-stat {
  flex: 1;
  text-align: center;
}

.dash__hero-stat-val {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
}

.dash__hero-stat-lbl {
  font-size: .75rem;
  color: rgba(255,255,255,.5);
  font-weight: 500;
  margin-top: .1rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.dash__hero-stat-sep {
  width: 1px;
  height: 28px;
  background: rgba(255,255,255,.15);
  flex-shrink: 0;
}

/* Sections */
.dash__section {
  margin-bottom: 1.75rem;
}

.dash__section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: 1rem;
}

.dash__section-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-primary);
  margin: 0 0 .75rem;
  padding-left: 1.25rem;
}

.dash__section-head .dash__section-title {
  margin-bottom: 0;
}

.dash__section-head .dash__section-title {
  margin-bottom: 0;
}

/* Form stats — full width horizontal strip */
.dash__form-stats {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
}

.dash__form-stat {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .85rem 1.25rem;
  border-bottom: 1px solid var(--color-border);
  transition: background var(--transition);
}

.dash__form-stat:last-child { border-bottom: none; }
.dash__form-stat:hover { background: var(--color-surface-alt); }

.dash__form-stat-icon {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background: var(--color-accent-light);
  color: var(--color-accent);
  flex-shrink: 0;
}

.dash__form-stat-icon svg {
  width: 24px;
  height: 24px;
  stroke-width: 1.6;
}

.dash__form-stat-name {
  flex: 1;
  font-size: .95rem;
  font-weight: 700;
  color: var(--color-text);
}

.dash__form-stat-unread {
  display: inline-flex;
  align-items: center;
  font-size: .7rem;
  font-weight: 700;
  color: #fff;
  background: var(--color-accent);
  padding: .15rem .45rem;
  border-radius: 99px;
  margin-left: .4rem;
  vertical-align: middle;
}

.dash__unread-total {
  font-size: .72rem;
  font-weight: 600;
  color: var(--color-accent);
  margin-left: .25rem;
}

.dash__form-stat-count {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--color-primary);
  min-width: 40px;
  text-align: right;
}

.dash__form-stats-actions {
  display: flex;
  gap: .6rem;
  justify-content: center;
  padding: 1.15rem 1.25rem .85rem;
  border-top: 1px solid var(--color-border);
}

/* Quick links — stacked cards */
.dash__links {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.dash__link-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.dash__link-card:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow);
}

.dash__link-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background: var(--color-accent-light);
  color: var(--color-accent);
  flex-shrink: 0;
}

.dash__link-icon svg {
  width: 26px;
  height: 26px;
  stroke-width: 1.6;
}

.dash__link-body {
  flex: 1;
  min-width: 0;
}

a.dash__link-name {
  display: block;
  font-size: .95rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: .2rem;
  text-decoration: none;
  cursor: pointer;
}

a.dash__link-name:hover {
  color: var(--color-accent);
  text-decoration: none;
}

.dash__link-url {
  font-size: .75rem;
  color: var(--color-text-muted);
  word-break: break-all;
  display: block;
  background: none;
  border: none;
  padding: 0;
}

.dash__link-langs {
  display: flex;
  gap: .3rem;
  flex-shrink: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .dash__hero-top {
    flex-direction: column;
    text-align: center;
    padding: 1.25rem 1rem;
  }
  .dash__oh { align-items: center; }
  .dash__hero-stats { padding: .65rem .75rem; }
  .dash__hero-stat-val { font-size: 1.2rem; }
  .dash__link-card { flex-wrap: wrap; }
}

@media (max-width: 540px) {
  .dash__link-card {
    flex-direction: column;
    align-items: flex-start;
    gap: .6rem;
  }
  .dash__link-langs { align-self: flex-start; }
  .dash__form-stat { flex-wrap: wrap; }
}

/* ==========================================================================
   13. STATS GRID
   ========================================================================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.stat-card__icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
  background: var(--color-accent-light);
}

.stat-card--primary .stat-card__icon { background: var(--color-accent-light); }
.stat-card--accent  .stat-card__icon { background: #f0fdf4; }
.stat-card--success .stat-card__icon { background: var(--color-success-light); }

.stat-card__value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1.1;
}

.stat-card__label {
  font-size: .8rem;
  color: var(--color-text-muted);
  font-weight: 500;
  margin-top: .1rem;
}

/* ==========================================================================
   14. SECTION HEADER + SECTION TITLE
   ========================================================================== */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: 1.25rem;
}


.section-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-primary);
  margin: 0;
}

/* ==========================================================================
   15. FORM STATS GRID
   ========================================================================== */
.form-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.form-stat-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.1rem 1.15rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  transition: box-shadow var(--transition), transform var(--transition);
}
.form-stat-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }

.form-stat-card__icon { font-size: 1.4rem; flex-shrink: 0; }

.form-stat-card__label {
  font-size: .8rem;
  color: var(--color-text-muted);
  font-weight: 500;
  margin-bottom: .2rem;
  line-height: 1.4;
}

.form-stat-card__value {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1.1;
}

.form-stat-card__link {
  display: block;
  font-size: .8rem;
  color: var(--color-accent);
  margin-top: .25rem;
  text-decoration: none;
}
.form-stat-card__link:hover { text-decoration: underline; }

/* ==========================================================================
   16. QUICK LINKS GRID
   ========================================================================== */
.quick-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.quick-link-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), border-color var(--transition);
}
.quick-link-card:hover { box-shadow: var(--shadow); border-color: var(--color-accent); }

.quick-link-card__header {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: .6rem;
}

.quick-link-card__icon { font-size: 1.2rem; }

.quick-link-card__title {
  font-size: .87rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.3;
}

.quick-link-card__url-row {
  display: flex;
  align-items: center;
  gap: .4rem;
  margin-bottom: .6rem;
  flex-wrap: wrap;
}

.quick-link-card__url {
  font-size: .75rem;
  color: var(--color-text-muted);
  word-break: break-all;
  flex: 1;
  min-width: 0;
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: .2rem .4rem;
}

.quick-link-card__langs { display: flex; gap: .3rem; flex-wrap: wrap; }

/* ==========================================================================
   17. PRÁZDNÝ STAV
   ========================================================================== */
.empty-state {
  text-align: center;
  padding: 3.5rem 1.5rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.empty-state__icon {
  font-size: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: .35;
  margin-bottom: .75rem;
  color: var(--color-text-muted);
}
.empty-state__icon svg { width: 48px; height: 48px; stroke-width: 1.5; }
.empty-state__title { font-size: 1.2rem; font-weight: 700; color: var(--color-text-secondary); margin-bottom: .4rem; }
.empty-state__desc { font-size: .92rem; color: var(--color-text-muted); margin-bottom: 1.25rem; }

/* ==========================================================================
   18. TABULKA
   ========================================================================== */
.table-responsive {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: .88rem;
  background: var(--color-surface);
}

.table th {
  background: var(--color-surface-alt);
  color: var(--color-text-muted);
  font-weight: 600;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: .72rem 1rem;
  text-align: left;
  border-bottom: 1.5px solid var(--color-border);
  white-space: nowrap;
}

.table th.sortable { cursor: pointer; user-select: none; }
.table th.sortable:hover { color: var(--color-accent); }

.table td {
  padding: .72rem 1rem;
  font-size: .92rem;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
  vertical-align: middle;
}

.table tbody tr:last-child td { border-bottom: none; }
.table--striped tbody tr:nth-child(even) { background: #f9fafb; }
.table tbody tr:hover { background: var(--color-accent-light); }

/* ==========================================================================
   19. STRÁNKOVÁNÍ
   ========================================================================== */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .3rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 .6rem;
  border-radius: var(--radius-sm);
  font-size: .87rem;
  font-weight: 500;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.pagination a:hover {
  background: var(--color-accent-light);
  color: var(--color-accent);
  border-color: var(--color-accent);
  text-decoration: none;
}

.pagination .current,
.pagination .active {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}

.pagination .disabled { opacity: .4; pointer-events: none; }

/* ==========================================================================
   20. QR KÓDY
   ========================================================================== */
.qr-section {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--color-border);
}
.qr-section:last-child { border-bottom: none; }

.qr-section__title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: .4rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}

.qr-section__desc {
  font-size: .87rem;
  color: var(--color-text-muted);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
  line-height: 1.5;
}

.qr-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1.25rem;
}

.qr-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: box-shadow var(--transition);
}
.qr-card:hover { box-shadow: var(--shadow); }

.qr-card__header {
  display: flex;
  align-items: center;
  gap: .5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.qr-card__form-name {
  font-size: .85rem;
  font-weight: 600;
  color: var(--color-text-secondary);
}

.qr-card__image img {
  width: 160px;
  height: 160px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
}

.qr-card__url {
  font-size: .75rem;
  color: var(--color-text-muted);
  word-break: break-all;
  width: 100%;
}

.qr-card__actions {
  display: flex;
  gap: .4rem;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
}

/* ==========================================================================
   21. FILTER FORMULÁŘ (submissions)
   ========================================================================== */
.filter-form {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  margin-bottom: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  align-items: flex-end;
  box-shadow: var(--shadow-sm);
}

.filter-form .form-group {
  margin-bottom: 0;
  flex: 1;
  min-width: 150px;
}

/* ==========================================================================
   22. MODAL
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(26, 29, 43, .55);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  animation: modalFadeIn .25s ease;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.modal {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 2.5rem 2.25rem 2rem;
  max-width: 480px;
  width: 100%;
  text-align: center;
  animation: modalSlideUp .3s ease;
}

@keyframes modalSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.modal__icon {
  font-size: 2.8rem;
  margin-bottom: .6rem;
}

.modal__title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-primary);
  margin: 0 0 .75rem;
}

.modal__text {
  font-size: .92rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin: 0 0 1rem;
}

.modal__text--sm {
  font-size: .85rem;
  color: var(--color-text-muted);
}

.modal__notice {
  background: var(--color-warning-light);
  border: 1px solid #fde68a;
  border-radius: var(--radius);
  padding: .85rem 1rem;
  font-size: .87rem;
  color: #92400e;
  line-height: 1.55;
  margin-bottom: 1rem;
  text-align: left;
}

.modal__close-btn {
  margin-top: .5rem;
  min-width: 220px;
}

.modal__timer {
  margin-top: .75rem;
  font-size: .75rem;
  color: var(--color-text-muted);
}

/* ==========================================================================
   23. PROFILE PAGE
   ========================================================================== */
.prof {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1.5rem 2rem;
}

.prof__hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 2rem 2.25rem 1.5rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  border-radius: var(--radius-xl);
  color: #fff;
}

.prof__hero-label {
  font-size: .87rem;
  color: rgba(255,255,255,.55);
  margin: 0 0 .1rem;
  font-weight: 500;
  letter-spacing: .02em;
}

.prof__hero-name {
  font-size: 1.65rem;
  font-weight: 800;
  color: #fff;
  margin: 0;
  line-height: 1.2;
}

.prof__hero-clinic {
  font-size: .92rem;
  /* matches dash__clinic */
  color: rgba(255,255,255,.65);
  margin: .2rem 0 0;
}

.prof__hero-btn {
  color: rgba(255,255,255,.85);
  border-color: rgba(255,255,255,.35);
  flex-shrink: 0;
}
.prof__hero-btn:hover {
  background: rgba(255,255,255,.12);
  color: #fff;
  border-color: rgba(255,255,255,.6);
}

.prof__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

.prof__col {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-width: 0;
}

.prof__card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.prof__card--muted {
  background: var(--color-surface-alt);
}

.prof__card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-primary);
  margin: 0 0 1.1rem;
  padding-bottom: .6rem;
  border-bottom: 1px solid var(--color-border);
}

.prof__meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .5rem 0;
  border-bottom: 1px solid var(--color-border);
  font-size: .87rem;
  /* unified small body */
}

.prof__meta-row:last-child { border-bottom: none; }

.prof__meta-label {
  color: var(--color-text-muted);
  font-weight: 500;
}

.prof__meta-value {
  color: var(--color-text);
  font-weight: 600;
  text-align: right;
  word-break: break-all;
}

.prof__actions {
  display: flex;
  gap: .75rem;
  margin-top: 2rem;
}

.prof__action-btn {
  flex: 1;
  text-align: center;
}

/* ==========================================================================
   23b. DANGER ZONE
   ========================================================================== */
.danger-zone {
  margin-top: 2.5rem;
  padding: 1.25rem 1.5rem;
  border: 1.5px solid var(--color-danger);
  border-radius: var(--radius-lg);
  background: var(--color-danger-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.danger-zone__body { flex: 1; }

.danger-zone__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-danger);
  margin: 0 0 .25rem;
}

.danger-zone__desc {
  font-size: .92rem;
  color: #6b2121;
  line-height: 1.5;
  margin: 0;
}

/* ==========================================================================
   23c. ADMIN — CARD & DETAIL GRID
   ========================================================================== */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.card__body {
  padding: 1.25rem 1.5rem;
}

.detail-grid {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 0;
  margin: 0;
}

.detail-grid__label {
  padding: .6rem 1rem .6rem 0;
  font-size: .85rem;
  font-weight: 600;
  color: var(--color-text-muted);
  border-bottom: 1px solid var(--color-border);
}

.detail-grid__value {
  padding: .6rem 0;
  font-size: .87rem;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
  margin: 0;
}

.detail-grid__label:last-of-type,
.detail-grid__value:last-of-type {
  border-bottom: none;
}

@media (max-width: 540px) {
  .detail-grid { grid-template-columns: 1fr; }
  .detail-grid__label { border-bottom: none; padding-bottom: .1rem; }
  .detail-grid__value { padding-top: 0; margin-bottom: .5rem; }
}

/* ==========================================================================
   24. ADMIN — FILTRY, KARTY, DROPDOWN
   ========================================================================== */

/* Inline filter bar */
.adm-filter {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.adm-filter__search { flex: 1; min-width: 180px; }
.adm-filter__select { width: auto; min-width: 140px; }

/* Doctor cards (no horizontal scroll) */
.adm-cards {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  margin-bottom: 1.5rem;
}

.adm-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: .85rem 1.15rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.adm-card:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-sm);
}

.adm-card__main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: .1rem;
}

.adm-card__name {
  font-size: .95rem;
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
}
.adm-card__name:hover { color: var(--color-accent); text-decoration: none; }

.adm-card__clinic {
  font-size: .8rem;
  color: var(--color-text-muted);
}

.adm-card__email {
  font-size: .8rem;
  color: var(--color-text-muted);
}

.adm-card__meta {
  display: flex;
  align-items: center;
  gap: .65rem;
  flex-shrink: 0;
}

.adm-card__meta .badge {
  min-width: 90px;
  text-align: center;
  justify-content: center;
}

.adm-card__stat {
  font-size: .8rem;
  font-weight: 600;
  color: var(--color-text-secondary);
}

.adm-card__date {
  font-size: .75rem;
  color: var(--color-text-muted);
}

.adm-card__actions {
  flex-shrink: 0;
}

/* Dropdown */
.dropdown {
  position: relative;
}

.dropdown__trigger {
  cursor: pointer;
}

.dropdown__menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  min-width: 160px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  z-index: 100;
  padding: .35rem 0;
  animation: dropIn .15s ease;
}

@keyframes dropIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.dropdown__menu.open { display: block; }

.dropdown__item {
  display: block;
  width: 100%;
  padding: .5rem 1rem;
  font-size: .85rem;
  font-family: inherit;
  color: var(--color-text);
  background: none;
  border: none;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--transition);
}

.dropdown__item:hover {
  background: var(--color-surface-alt);
  text-decoration: none;
}

.dropdown__item--danger { color: var(--color-danger); }
.dropdown__item--danger:hover { background: var(--color-danger-light); }

.dropdown__sep {
  height: 1px;
  background: var(--color-border);
  margin: .25rem 0;
}

.dropdown__form { margin: 0; }

/* Responsive admin cards */
@media (max-width: 640px) {
  .adm-card {
    flex-direction: column;
    align-items: flex-start;
    gap: .5rem;
  }
  .adm-card__meta { flex-wrap: wrap; }
  .adm-card__actions { align-self: flex-end; }
}

/* ==========================================================================
   25. ADMIN LOG
   ========================================================================== */
.log-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-surface);
  margin-bottom: 1.5rem;
}

.log-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .7rem 1.15rem;
  border-bottom: 1px solid var(--color-border);
  transition: background var(--transition);
}

.log-item:last-child { border-bottom: none; }
.log-item:hover { background: var(--color-surface-alt); }

.log-item__badge {
  font-size: .72rem;
  font-weight: 700;
  padding: .25rem .6rem;
  border-radius: 6px;
  white-space: nowrap;
  min-width: 110px;
  text-align: center;
}

.log-item__body {
  flex: 1;
  min-width: 0;
  font-size: .87rem;
  color: var(--color-text);
}

.log-item__detail {
  color: var(--color-text-muted);
  margin-left: .35rem;
}

.log-item__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .1rem;
  flex-shrink: 0;
}

.log-item__time {
  font-size: .75rem;
  color: var(--color-text-muted);
  white-space: nowrap;
}

.log-item__ip {
  font-size: .68rem;
  color: var(--color-text-muted);
  opacity: .6;
  font-family: monospace;
}

@media (max-width: 640px) {
  .log-item { flex-wrap: wrap; gap: .5rem; }
  .log-item__meta { flex-direction: row; gap: .5rem; }
}

/* ==========================================================================
   26. UTILITY TŘÍDY
   ========================================================================== */
.text-center  { text-align: center !important; }
.text-right   { text-align: right !important; }
.text-muted   { color: var(--color-text-muted) !important; }
.text-success { color: var(--color-success) !important; }
.text-danger  { color: var(--color-danger) !important; }

.mt-2 { margin-top: .5rem !important; }
.mt-4 { margin-top: 1rem !important; }
.mt-6 { margin-top: 1.5rem !important; }
.mb-2 { margin-bottom: .5rem !important; }
.mb-4 { margin-bottom: 1rem !important; }
.mb-6 { margin-bottom: 1.5rem !important; }

.d-flex   { display: flex !important; }
.d-none   { display: none !important; }
.gap-2    { gap: .5rem; }
.gap-3    { gap: .75rem; }
.fw-bold  { font-weight: 700 !important; }
.w-100    { width: 100% !important; }

.divider {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 1.5rem 0;
}

/* ==========================================================================
   23. RESPONZIVITA
   ========================================================================== */

/* Hamburger menu – mobilní */
@media (max-width: 768px) {
  .navbar__hamburger { display: flex; }

  .navbar__links {
    display: none;
    position: absolute;
    top: 62px;
    left: 0;
    right: 0;
    background: var(--color-primary);
    flex-direction: column;
    padding: .75rem;
    border-top: 1px solid rgba(255,255,255,.1);
    box-shadow: 0 8px 20px rgba(0,0,0,.25);
    z-index: 199;
    gap: .2rem;
  }

  .navbar__links.open { display: flex; }
  .navbar__links a { width: 100%; }

  .navbar { position: sticky; }
}

@media (max-width: 900px) {
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__visual { display: none; }
  .hero__subtitle { margin-left: auto; margin-right: auto; }
  .hero__actions { justify-content: center; }
}

@media (max-width: 700px) {
  .main-content { padding: 1.5rem 0; }

  .page-header { flex-direction: column; }
  .page-header__actions { width: 100%; }

  .stats-grid { grid-template-columns: 1fr 1fr; }
  .form-stats-grid { grid-template-columns: 1fr 1fr; }
  .quick-links-grid { grid-template-columns: 1fr 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .qr-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }

  .section { padding: 3rem 0; }
  .hero { padding: 3rem 0 2.5rem; }

  .auth-card { padding: 2rem 1.25rem; }
  .footer__inner { grid-template-columns: 1fr; gap: 1.5rem; }
}

@media (max-width: 860px) {
  .prof__grid { grid-template-columns: 1fr; }
  .prof__hero { flex-direction: column; text-align: center; padding: 1.75rem 1.5rem; }
  .danger-zone { flex-direction: column; text-align: center; }
}

@media (max-width: 600px) {
  .reg__section { gap: .75rem; }
  .reg__section-badge { width: 30px; height: 30px; font-size: .8rem; margin-top: 1.2rem; }
  .reg__section-body { padding: 1.15rem 1rem .4rem; }
  .reg__fields { grid-template-columns: 1fr; }

  .oh-table__head { display: none; }
  .oh-table__row {
    grid-template-columns: 1fr;
    gap: .35rem;
    padding: .6rem .75rem;
  }
  .oh-table__day { margin-bottom: .15rem; }
  .oh-table__times::before {
    font-size: .65rem;
    color: var(--color-text-muted);
    font-weight: 600;
    width: 30px;
    flex-shrink: 0;
  }
  .oh-table__times:first-of-type::before { content: "DOP"; }
  .oh-table__times:last-of-type::before  { content: "ODP"; }
}

@media (max-width: 420px) {
  .reg__section { flex-direction: column; gap: 0; }
  .reg__section-badge {
    margin: 0 0 -18px 1rem;
    position: relative;
    z-index: 1;
  }
}

@media (max-width: 540px) {
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .stats-grid         { grid-template-columns: 1fr; }
  .form-stats-grid    { grid-template-columns: 1fr 1fr; }
  .quick-links-grid   { grid-template-columns: 1fr; }
  .qr-grid            { grid-template-columns: 1fr; }
  .steps              { grid-template-columns: 1fr; }
  .cta-actions        { flex-direction: column; align-items: center; }
  .hero__actions      { flex-direction: column; align-items: stretch; }
  .container { padding: 0 1rem; }
}
