/* Sheds by Fisher - Sidebar layout theme */
:root {
  --color-primary: #1e3a5f;
  --color-secondary: #4a7ba7;
  --color-white: #ffffff;
  --color-gray: #6b7280;
  --color-black: #111827;
  --color-border: #e5e7eb;
  --color-bg-light: #f7f8fa;
  --color-accent-icon: #5b7c99;
  --sidebar-width: 250px;
  --sidebar-collapsed-width: 0px;
}

* {
  box-sizing: border-box;
}

body {
  font-family: system-ui, -apple-system, sans-serif;
  margin: 0;
  padding: 0;
  color: var(--color-black);
  background: #ffffff;
  min-height: 100vh;
  display: flex;
}

/* ===== Sidebar ===== */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--sidebar-width);
  background: var(--color-primary);
  color: var(--color-white);
  display: flex;
  flex-direction: column;
  z-index: 100;
  overflow-y: auto;
  transition: transform 0.25s ease;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1.1rem 1.25rem;
  color: var(--color-white);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.15rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.sidebar-brand:hover {
  color: var(--color-white);
  opacity: 0.9;
}

.sidebar-brand-icon {
  width: 20px;
  height: 20px;
  stroke-width: 2;
}

/* Sidebar navigation */
.sidebar-nav {
  display: flex;
  flex-direction: column;
  padding: 0.5rem 0;
  flex: 1;
}

.sidebar-section-label {
  display: block;
  padding: 0.9rem 1.25rem 0.3rem;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.45);
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 1.25rem;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
  border-left: 3px solid transparent;
}

.sidebar-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-white);
}

.sidebar-link.active {
  background: rgba(255, 255, 255, 0.12);
  color: var(--color-white);
  border-left-color: var(--color-white);
}

.sidebar-link .nav-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  stroke-width: 1.75;
}

/* ===== Main wrapper (right side) ===== */
.main-wrapper {
  margin-left: var(--sidebar-width);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  transition: margin-left 0.25s ease;
  background: var(--color-bg);
}


/* ===== Main content ===== */
main {
  flex: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem;
  width: 100%;
}

/* Secondary text */
.text-muted {
  color: var(--color-gray);
  font-size: 0.875rem;
}

/* Content card for inner pages */
.content-card {
  background: var(--color-white);
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  padding: 1.5rem;
  border: 1px solid var(--color-border);
}


/* Footer block (signature, disclaimers) - for order pages */
.page-footer {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
}

.page-footer ul {
  margin: 0.5rem 0 0 1.25rem;
  padding: 0;
  font-size: 0.8rem;
  color: var(--color-gray);
}

/* ===== Dashboard (home page) ===== */

/* Position dashboard - upper portion of page */
body.page-home main {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding-top: 8vh;
}

/* Centered container that constrains stats + cards to the same width */
.dashboard-center {
  max-width: 1000px;
  margin: 0 auto;
  width: 100%;
}

.dashboard-hero {
  text-align: center;
  margin-bottom: 1.75rem;
}

.dashboard-hero h1 {
  margin: 0 0 0.2rem 0;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-black);
}

.dashboard-hero .tagline {
  color: var(--color-gray);
  font-size: 0.9rem;
}

/* Shortcut cards: 3 per row, larger, centered icon-on-top layout */
.dashboard-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
}

.dashboard-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--color-white);
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  padding: 2rem 1.25rem;
  min-height: 150px;
  width: calc(33.333% - 0.85rem);
  text-decoration: none;
  color: var(--color-black);
  border: 1px solid var(--color-border);
  transition: box-shadow 0.2s, transform 0.15s;
}

.dashboard-card:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.dashboard-card-icon {
  color: var(--color-accent-icon);
  margin-bottom: 0.75rem;
  line-height: 0;
}

.dashboard-card-icon svg {
  width: 36px;
  height: 36px;
  stroke-width: 1.5;
}

.dashboard-card h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-black);
}

/* ===== Data screens ===== */

/* Card header with title + action button */
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.card-header h1 {
  margin: 0;
  font-size: 1.4rem;
}

/* Sections within a content card */
.section {
  margin-top: 1.5rem;
}

.section:first-of-type {
  margin-top: 0;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--color-border);
}

.section-header h2 {
  margin: 0;
  font-size: 1.1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
}

.btn-primary:hover {
  background: var(--color-secondary);
}

.btn-secondary {
  background: var(--color-border);
  color: var(--color-black);
}

.btn-secondary:hover {
  background: #d1d5db;
}

.btn-sm {
  padding: 0.3rem 0.75rem;
  font-size: 0.8rem;
}

.btn-danger {
  background: #dc2626;
  color: var(--color-white);
}

.btn-danger:hover {
  background: #b91c1c;
}

/* Action cell in tables */
.action-cell {
  text-align: center;
  vertical-align: middle;
  white-space: nowrap;
}

.btn-link {
  color: var(--color-secondary);
  text-decoration: none;
  font-size: 0.85rem;
}

.btn-link:hover {
  text-decoration: underline;
  color: var(--color-primary);
}

/* Data tables */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.data-table th {
  text-align: left;
  padding: 0.5rem 0.75rem;
  background: var(--color-bg-light);
  border-bottom: 2px solid var(--color-border);
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--color-gray);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.data-table td {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--color-border);
}

.data-table tbody tr:hover {
  background: #f9fafb;
}

.data-table .empty-row {
  text-align: center;
  color: var(--color-gray);
  padding: 1.5rem;
}

/* Clickable table rows */
.clickable-row {
  cursor: pointer;
}

.clickable-row:hover {
  background: #eef2f7 !important;
}

/* Orders table: status pinned right, others evenly spaced */
.data-table-even {
  table-layout: fixed;
}

.data-table-even th:last-child,
.data-table-even td:last-child {
  width: 100px;
  text-align: right;
}

/* Status badges */
.status-badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 500;
}

.status-available {
  background: #d1fae5;
  color: #065f46;
}

.status-reserved {
  background: #fef3c7;
  color: #92400e;
}

.status-sold {
  background: #dbeafe;
  color: #1e40af;
}

.status-delivered {
  background: #e5e7eb;
  color: #374151;
}

/* Filter bar */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.search-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  background: var(--color-white);
}
.search-bar input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 0.875rem;
  font-family: inherit;
  background: transparent;
}
.search-bar input::placeholder {
  color: var(--color-gray);
}

.filter-label {
  font-size: 0.85rem;
  color: var(--color-gray);
}

.filter-chip {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border-radius: 14px;
  font-size: 0.8rem;
  text-decoration: none;
  color: var(--color-black);
  background: var(--color-border);
}

.filter-chip:hover {
  background: #d1d5db;
}

.filter-chip.active {
  background: var(--color-primary);
  color: var(--color-white);
}

/* Forms */
.app-form {
  max-width: 600px;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.85rem;
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  font-size: 0.875rem;
  font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 2px rgba(74, 123, 167, 0.2);
}

.form-group textarea {
  min-height: 80px;
  resize: vertical;
}

.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea {
  border-color: #dc2626;
}

.field-error {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.8rem;
  color: #dc2626;
}

.field-help {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: var(--color-gray);
}

.form-errors {
  margin-bottom: 1rem;
  padding: 0.5rem 0.75rem;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 4px;
  color: #dc2626;
  font-size: 0.85rem;
}

.form-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

/* Danger text */
.text-danger {
  color: #dc2626;
  font-weight: 600;
}

/* Messages (Django messages framework) */
.messages {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem 0;
}

.messages li {
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
}

.messages .success {
  background: #d1fae5;
  color: #065f46;
}

.messages .error {
  background: #fef2f2;
  color: #dc2626;
}

.messages .info {
  background: #dbeafe;
  color: #1e40af;
}

code {
  background: #f3f4f6;
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  font-size: 0.85em;
}

/* Order status badges */
.status-ordered {
  background: #dbeafe;
  color: #1e40af;
}

.status-delivered {
  background: #d1fae5;
  color: #065f46;
}

.status-in_shop {
  background: #fef3c7;
  color: #92400e;
}

/* Search form */
.search-form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.search-input {
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  font-size: 0.85rem;
  font-family: inherit;
  min-width: 240px;
}

.search-input:focus {
  outline: none;
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 2px rgba(74, 123, 167, 0.2);
}

/* Formset table */
.formset-table td {
  padding: 0.35rem 0.5rem;
}

.formset-table select,
.formset-table input[type="text"],
.formset-table input[type="number"] {
  width: 100%;
  padding: 0.35rem 0.5rem;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  font-size: 0.85rem;
  font-family: inherit;
}

.formset-table select:focus,
.formset-table input:focus {
  outline: none;
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 2px rgba(74, 123, 167, 0.2);
}

/* Totals table */
.totals-table {
  margin-left: auto;
  font-size: 0.9rem;
}

.totals-table td {
  padding: 0.25rem 0.75rem;
}

.totals-table td:first-child {
  text-align: right;
  color: var(--color-gray);
}

/* Sales order form layout */
.sales-order-form .app-form {
  max-width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1.5rem;
}

.sales-order-form .form-group:last-child {
  grid-column: 1 / -1;
}

/* Stat cards (dashboard) -- row of 5, same width as shortcut grid */
.stat-cards {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.6rem;
  margin-top: 0.75in;
  margin-bottom: 0.5in;
}

.stat-card {
  background: var(--color-white);
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--color-border);
  padding: 1.1rem 0.5rem;
  text-align: center;
}

.stat-card-warning {
  border-color: #fbbf24;
  background: #fffbeb;
}

.stat-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.2;
}

.stat-card-warning .stat-value {
  color: #b45309;
}

.stat-label {
  font-size: 0.65rem;
  color: var(--color-gray);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 0.2rem;
}

/* Settings columns layout */
.settings-columns {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1.5rem;
}

.settings-row {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.settings-row-3 {
  grid-template-columns: repeat(3, 1fr);
}
.settings-row-4 {
  grid-template-columns: repeat(4, 1fr);
  max-width: 85%;
  margin-left: auto;
  margin-right: auto;
}

.settings-delete-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  line-height: 1;
}
.settings-item.clickable-row {
  cursor: pointer;
}
.settings-item.clickable-row:hover {
  background: #eef2f7;
}

.settings-column-header {
  margin: 0 0 0.5rem 0;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-white);
  background: var(--color-primary);
  padding: 0.35rem 0.75rem;
  border-radius: 4px;
  text-align: center;
}

.settings-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.settings-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.35rem 0.5rem;
  font-size: 0.875rem;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg-light);
}

.settings-item:nth-child(even) {
  background: var(--color-white);
}

.settings-item.empty {
  color: var(--color-gray);
  font-style: italic;
  justify-content: center;
}

.settings-item-actions {
  display: flex;
  gap: 0.25rem;
}

.settings-item:hover .settings-item-actions {
  opacity: 1;
}

/* Order form grid rows — compact */
.form-row-1, .form-row-2, .form-row-3, .form-row-4, .form-row-5 {
  display: grid;
  gap: 0.5rem 1rem;
  margin-bottom: 0.6rem;
}

.form-row-1 { grid-template-columns: 1fr; }
.form-row-2 { grid-template-columns: 1fr 1fr; }
.form-row-3 { grid-template-columns: 1fr 1fr 1fr; }
.form-row-4 { grid-template-columns: 1fr 1fr 1fr 1fr; }
.form-row-5 { grid-template-columns: 1fr 1fr 1fr 1fr 1fr; }

.form-row-1 .form-group,
.form-row-2 .form-group,
.form-row-3 .form-group,
.form-row-4 .form-group,
.form-row-5 .form-group {
  margin-bottom: 0;
}

/* Compact inputs inside the order form */
.shed-order-page .form-group label {
  font-size: 0.78rem;
  margin-bottom: 0.2rem;
  font-weight: 600;
  color: var(--color-primary);
}

.shed-order-page .form-group input,
.shed-order-page .form-group select,
.shed-order-page .form-group textarea {
  padding: 0.5rem 0.65rem;
  font-size: 0.85rem;
  height: 38px;
  box-sizing: border-box;
}

.shed-order-page .form-group textarea {
  height: auto;
  min-height: 70px;
}

.shed-order-page .form-group select {
  appearance: auto;
}

.form-input-disabled {
  width: 100%;
  padding: 0.35rem 0.5rem;
  font-size: 0.82rem;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  background: var(--color-bg-light);
  color: var(--color-gray);
}

/* Notes expandable panel */
.notes-panel {
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 0.4rem 0.75rem;
  background: var(--color-bg-light);
}

.notes-panel summary {
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
}

.notes-panel[open] {
  padding-bottom: 0.5rem;
}

/* Legacy alias */
.order-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 1.5rem;
}

.order-form-grid .form-group {
  margin-bottom: 0;
}

/* Shed detail page: full width */
.shed-detail-page .app-form,
.box-detail-page .app-form {
  max-width: 100%;
}

/* Box materials table even columns */
.box-mat-table {
  table-layout: fixed;
}
.box-mat-table th:nth-child(1) { width: 25%; }
.box-mat-table th:nth-child(2) { width: 15%; }
.box-mat-table th:nth-child(3) { width: 15%; }
.box-mat-table th:nth-child(4) { width: 17%; }
.box-mat-table th:nth-child(5) { width: 17%; }
.box-mat-table .col-del { width: 36px; }

.cell-input {
  width: 100%;
  text-align: center;
  font-size: 0.82rem;
  padding: 0.3rem 0.4rem;
}

.shed-info-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.6rem;
}
.shed-info-row .form-group {
  margin-bottom: 0;
  min-width: 0;
}
.shed-info-row select,
.shed-info-row input {
  width: 100%;
  min-width: 0;
}

/* Delete icon in tables */
.delete-icon {
  width: 18px;
  height: 18px;
  color: #dc2626;
  cursor: pointer;
  transition: color 0.15s;
}
.delete-icon:hover {
  color: #991b1b;
}
.action-cell {
  text-align: center;
  vertical-align: middle;
}

/* Icon action buttons (customer list, etc.) */
.customer-actions {
  text-align: right;
  white-space: nowrap;
}
.icon-action-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  color: var(--color-secondary);
  transition: color 0.15s;
  vertical-align: middle;
}
.icon-action-btn:hover {
  color: var(--color-primary);
}
.icon-action-btn svg {
  width: 18px;
  height: 18px;
}
.icon-action-danger {
  color: #dc2626;
}
.icon-action-danger:hover {
  color: #991b1b;
}

/* Detail form grid (shed detail, box detail) */
.detail-form-grid {
  max-width: 100% !important;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 1.5rem;
  margin-bottom: 0.75rem;
}

.form-row .form-group {
  margin-bottom: 0;
}

.form-value {
  display: inline-block;
  padding: 0.5rem 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-primary);
}

.form-input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  font-size: 0.875rem;
  font-family: inherit;
}

.form-input:focus {
  outline: none;
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 2px rgba(74, 123, 167, 0.2);
}

.inline-add-form .form-input {
  padding: 0.35rem 0.5rem;
}

/* Order badges */
.order-id-badge,
.order-date-badge {
  display: inline-block;
  background: var(--color-primary);
  color: var(--color-white);
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
}

.order-date-badge {
  background: var(--color-secondary);
}

/* Card header actions */
.card-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* Shed order page — tighter sections */
.shed-order-page .section {
  margin-top: 1rem;
}

.shed-order-page .section-header {
  margin-bottom: 0.5rem;
  padding-bottom: 0.35rem;
}

.shed-order-page .section-header h2 {
  font-size: 0.95rem;
}

/* ===== Responsive: medium screens ===== */
@media (max-width: 900px) {
  .dashboard-card {
    width: calc(50% - 0.65rem);
  }

  .stat-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ===== Responsive: small screens ===== */
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(calc(-1 * var(--sidebar-width)));
  }

  .main-wrapper {
    margin-left: 0;
  }

  /* On small screens, toggle opens the sidebar */
  body.sidebar-open .sidebar {
    transform: translateX(0);
  }

  /* Overlay when sidebar is open on mobile */
  body.sidebar-open::after {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 90;
  }

  .dashboard-card {
    width: 100%;
  }

  .stat-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .dashboard-center {
    max-width: 100%;
  }
}

/* ===== Login page ===== */
body.login-page .sidebar { display: none; }
body.login-page .main-wrapper { margin-left: 0; }

body.login-page {
  background: var(--color-bg-light);
}

.login-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
}

.login-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  padding: 2.5rem 2.25rem 2rem;
  width: 100%;
  max-width: 380px;
}

.login-brand {
  text-align: center;
  margin-bottom: 1.75rem;
}

.login-brand-icon {
  width: 40px;
  height: 40px;
  color: var(--color-primary);
  stroke-width: 1.5;
}

.login-brand h1 {
  margin: 0.5rem 0 0;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-primary);
}

.login-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  font-size: 0.85rem;
  margin-bottom: 1rem;
  text-align: center;
}

.login-form .form-group {
  margin-bottom: 1.1rem;
}

.login-btn {
  width: 100%;
  justify-content: center;
  padding: 0.6rem 1rem;
  font-size: 0.95rem;
  margin-top: 0.5rem;
}

/* Sidebar logout link */
.sidebar-logout {
  margin-top: auto;
  padding: 0.75rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.sidebar-logout .sidebar-link {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
}

.sidebar-logout .sidebar-link:hover {
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.08);
}

