/* Paleta i typografia SAME co w report_engine/base_style/layout.py
   (BRAND_CSS) — appka i raporty mają wyglądać spójnie, mimo że to dwa
   niezależne systemy stylu (patrz sekcja 7 CLAUDE.md). Zmiana koloru marki
   tutaj NIE zmienia raportów — trzeba zmienić w obu miejscach osobno. */
:root {
  --brown: #7B3A20;
  --dark: #1C0A05;
  --bg: #f5f2ee;
  --surf: #fff;
  --muted: #6b7280;
  --border: #e2dbd1;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: #1f2937;
}

.app-navbar {
  background: var(--dark);
  border-bottom: 3px solid var(--brown);
  padding-top: .9rem;
  padding-bottom: .9rem;
}

.app-navbar-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
}

.app-navbar-logo {
  display: flex;
  align-items: center;
}

.app-navbar-logo img {
  height: 34px;
  width: auto;
}

.app-navbar-titlebox {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.app-navbar-title {
  white-space: nowrap;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -.01em;
  color: #fff;
  text-decoration: none;
}

.app-navbar-title:hover {
  color: #fff;
}

.app-navbar-title em {
  color: #C4956A;
  font-style: normal;
}

.app-navbar-title-sep {
  margin: 0 .55rem;
  opacity: .35;
  font-weight: 400;
}

.app-navbar-subtitle {
  color: rgba(255, 255, 255, .5);
  font-size: .75rem;
  font-weight: 300;
  margin: .2rem 0 0;
}

.app-navbar-subtitle:empty {
  display: none;
}

.app-navbar-actions {
  grid-column: 3;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

@media (max-width: 576px) {
  .app-navbar-grid {
    grid-template-columns: auto 1fr;
  }

  .app-navbar-titlebox {
    grid-column: 2;
    text-align: right;
    align-items: flex-end;
  }

  .app-navbar-title {
    font-size: 1rem;
  }

  .app-navbar-actions {
    grid-column: 1 / -1;
    justify-content: center;
    margin-top: .5rem;
  }
}

.btn-brand,
.btn-brand:hover,
.btn-brand:active {
  background: var(--brown);
  border-color: var(--brown);
  color: #fff;
}

.btn-brand:hover {
  filter: brightness(1.08);
  color: #fff;
}

.btn-outline-brand {
  border: 1px solid rgba(255, 255, 255, .3);
  background: rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .85);
}

.btn-outline-brand:hover {
  background: rgba(255, 255, 255, .15);
  color: #fff;
}

.resource-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .05);
  transition: box-shadow .15s ease-in-out, border-color .15s ease-in-out, transform .15s ease-in-out;
}

.resource-card:hover {
  box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .1);
  border-color: var(--brown);
  transform: translateY(-2px);
}

.resource-icon {
  font-size: 1.6rem;
  line-height: 1;
  margin-bottom: .6rem;
}

.empty-state-icon {
  font-size: 2.5rem;
  line-height: 1;
  margin-bottom: 1rem;
  opacity: .7;
}

.login-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .05);
}

.login-wrap {
  min-height: calc(100vh - 220px);
}

.error-page {
  padding-top: 3rem;
}

.error-icon {
  font-size: 3rem;
  line-height: 1;
  margin-bottom: .5rem;
  opacity: .8;
}

.app-footer {
  background: var(--dark);
  color: rgba(255, 255, 255, .35);
  text-align: center;
  padding: 1.1rem;
  margin-top: 3.5rem;
  font-size: .75rem;
}
