/* ===================================================================
   ETIKETTENDRUCK-APP — STYLESHEET
   Palette in Anlehnung an das Teehaus-CI (Grün-Töne, warmes Beige)
   =================================================================== */

:root {
  --color-bg: #f2efe3;       /* Warmes Beige (Hintergrund) */
  --color-fg: #2b2a26;       /* Dunkelbraun/Schwarz */
  --color-accent: #8a8a4f;   /* Olivgrün (Aktionen) */
  --color-accent-hover: #6f6f3a;
  --color-border: #d8d5c6;
  --color-error: #c0392b;
  --color-success: #27ae60;
  --color-warn: #e67e22;

  --logo-grau: #6a6a6a;
  --logo-grün: #4a6b3a;
  --logo-gelb: #d4a017;
  --logo-rot: #b83232;
  --logo-orange: #d97e1f;

  --shadow: 0 1px 3px rgba(0,0,0,0.08);
  --radius: 6px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--color-bg);
  color: var(--color-fg);
  line-height: 1.4;
}

/* — Header — */
.app-header {
  height: 70px;
  background: var(--color-accent);
  color: white;
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 16px;
  box-shadow: var(--shadow);
}
.app-header-logo {
  height: 48px;
  background: white;
  border-radius: 50%;
  padding: 2px;
}
.app-header-title {
  font-size: 1.4em;
  margin: 0;
  flex-grow: 1;
  color: white;
}
.logout-form { margin: 0; }

/* — Main Grid — */
.app-main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
}

/* — Sections — */
.filters, .actions {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}

.section-title {
  font-size: 0.9em;
  text-transform: uppercase;
  letter-spacing: 1pt;
  margin: 0 0 12px 0;
  color: #5a5a55;
}

.filter-list {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  margin-bottom: 12px;
}
.filter-item {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 1em;
}
.filter-checkbox {
  width: 18px;
  height: 18px;
  cursor: pointer;
}
.filter-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  border: 1px solid rgba(0,0,0,0.15);
}
.filter-label {
  font-weight: 500;
}

/* — Actions-Bar — */
.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
}
.action-label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.85em;
  color: #5a5a55;
}
.action-select {
  padding: 8px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 1em;
  background: white;
  min-width: 180px;
}

/* — Buttons — */
.btn {
  padding: 8px 16px;
  border: none;
  border-radius: var(--radius);
  font-size: 0.95em;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.15s;
}
.btn-primary {
  background: var(--color-accent);
  color: white;
}
.btn-primary:hover { background: var(--color-accent-hover); }
.btn-ghost {
  background: transparent;
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
}
.btn-ghost:hover {
  background: var(--color-accent);
  color: white;
}

/* — Etiketten-Grid — */
.labels-area {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  min-height: 200px;
}
.labels-grid {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 16px;
  padding-bottom: 12px;
}

.empty-state {
  color: #8a8a85;
  text-align: center;
  padding: 40px 20px;
  font-style: italic;
  width: 100%;
}

.label-card {
  flex: 0 0 220px;
  background: #fffefb;
  border: 2px solid var(--color-border);
  border-radius: var(--radius);
  padding: 12px;
  cursor: pointer;
  transition: border-color 0.15s, transform 0.1s;
  text-align: center;
  user-select: none;
}
.label-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.label-card.selected {
  border-color: var(--color-accent);
  background: #f8fae8;
}
.label-card-logo {
  height: 48px;
  width: 48px;
  border-radius: 50%;
  background: white;
  padding: 4px;
  margin-bottom: 6px;
}
.label-card-tee-art {
  font-size: 0.75em;
  letter-spacing: 0.5pt;
  color: #6b6a64;
  text-transform: uppercase;
}
.label-card-name {
  font-weight: bold;
  font-size: 0.95em;
  margin: 4px 0;
}
.label-card-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.7em;
  color: #8a8a85;
  margin-top: 4px;
}

/* — Status-Bar — */
.status-bar {
  position: fixed;
  bottom: 16px;
  right: 16px;
  padding: 12px 20px;
  border-radius: var(--radius);
  background: var(--color-fg);
  color: white;
  box-shadow: var(--shadow);
  z-index: 1000;
  max-width: 420px;
}
.status-bar.status-success { background: var(--color-success); }
.status-bar.status-error   { background: var(--color-error); }
.status-bar.status-warn    { background: var(--color-warn); }
.status-bar.status-info    { background: var(--color-fg); }

/* — Login-Page — */
.login-body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: linear-gradient(135deg, var(--color-bg) 0%, #d8d5c6 100%);
}
.login-card {
  background: white;
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  width: 360px;
}
.login-title {
  margin: 0 0 4px 0;
  font-size: 1.5em;
  color: var(--color-accent);
}
.login-subtitle {
  margin: 0 0 20px 0;
  color: #5a5a55;
  font-size: 0.9em;
}
.login-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.login-form label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.9em;
  color: #5a5a55;
}
.login-form input {
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 1em;
}
.login-form input:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 1px;
}
.login-hint {
  font-size: 0.8em;
  color: #8a8a85;
  margin: 16px 0 0;
}
.alert-error {
  background: #fdecea;
  color: var(--color-error);
  padding: 10px 12px;
  border-radius: var(--radius);
  margin-bottom: 12px;
  font-size: 0.9em;
}