/* ── Barevná paleta dle školního loga (shodná s portal.nosch.cz) ── */
:root {
  --navy:        #0e1f40;
  --navy-mid:    #1a3260;
  --blue:        #1a4b8c;
  --blue-light:  #4a90d9;
  --blue-pale:   #d6e8f7;
  --page-bg:     #f0f4f8;
  --card-shadow: 0 1px 6px rgba(14,31,64,.10);
}

body { background: var(--page-bg); color: #1a2744; }

/* ── Sidebar ── */
.sidebar {
  min-height: 100vh;
  background: var(--navy);
  width: 240px;
  min-width: 240px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .75rem 1rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
  margin-bottom: .5rem;
  text-decoration: none;
}
.sidebar-brand img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}
.sidebar-brand-text {
  color: #fff;
  font-weight: 700;
  font-size: .95rem;
  line-height: 1.2;
}
.sidebar-brand-text small {
  display: block;
  font-weight: 400;
  font-size: .65rem;
  color: rgba(255,255,255,.45);
  letter-spacing: .05em;
  text-transform: uppercase;
}

.sidebar .nav-link {
  color: rgba(255,255,255,.6);
  padding: .4rem .9rem;
  border-radius: .375rem;
  font-size: .875rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.sidebar .nav-link i { width: 1.1rem; text-align: center; font-size: .9rem; }
.sidebar .nav-link:hover { color: #fff; background: rgba(255,255,255,.08); }
.sidebar .nav-link.active {
  color: #fff;
  background: var(--blue);
  box-shadow: 0 2px 6px rgba(26,75,140,.4);
}

.sidebar .section-label {
  color: rgba(255,255,255,.3);
  font-size: .65rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  padding: .6rem 1rem .25rem;
}

/* ── Hlavní obsah ── */
.main-content { min-height: 100vh; }

/* ── Karty ── */
.card { border: none; box-shadow: var(--card-shadow); }
.card-header {
  background: #fff;
  border-bottom: 1px solid rgba(14,31,64,.07);
  font-size: .875rem;
}

/* Stat karty */
.stat-card { border-left: 4px solid; }
.stat-card.primary { border-color: var(--blue); }
.stat-card.success { border-color: #198754; }
.stat-card.warning { border-color: #e6a817; }
.stat-card.danger  { border-color: #dc3545; }

/* ── Bootstrap primary override ── */
.btn-primary { background: var(--blue); border-color: var(--blue); }
.btn-primary:hover { background: #153d72; border-color: #153d72; }
.btn-outline-primary { color: var(--blue); border-color: var(--blue); }
.btn-outline-primary:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.bg-primary { background-color: var(--blue) !important; }
.text-primary { color: var(--blue) !important; }
.border-primary { border-color: var(--blue) !important; }
a { color: var(--blue); }
a:hover { color: #153d72; }

/* Auth stránky (bez sidebaru) */
.auth-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  box-sizing: border-box;
  background: var(--page-bg);
}
.auth-card {
  width: 100%;
  border: none;
  box-shadow: 0 4px 24px rgba(14,31,64,.12);
  border-radius: .75rem;
}
.auth-logo {
  filter: brightness(0) invert(0);
  width: 48px;
  height: 48px;
  object-fit: contain;
}
