@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --color-background: #0b1220;
  --color-surface: rgba(17, 24, 39, 0.85);
  --color-surface-strong: #0f172a;
  --color-border: rgba(148, 163, 184, 0.12);
  --color-primary: #38bdf8;
  --color-primary-soft: rgba(56, 189, 248, 0.16);
  --color-accent: #f97316;
  --color-success: #34d399;
  --color-warning: #facc15;
  --color-danger: #fb7185;
  --color-text: #e2e8f0;
  --color-text-muted: #94a3b8;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --shadow-soft: 0 20px 45px rgba(2, 8, 23, 0.45);
  --shadow-hover: 0 25px 60px rgba(2, 8, 23, 0.55);
  --transition-base: all 0.25s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.18), transparent 45%),
              radial-gradient(circle at 80% 0%, rgba(249, 115, 22, 0.18), transparent 40%),
              var(--color-background);
  color: var(--color-text);
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: var(--transition-base);
}

a:hover {
  color: #7dd3fc;
}

.app-shell {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

.sidebar {
  width: 264px;
  padding: 32px 26px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  background: linear-gradient(165deg, rgba(15, 23, 42, 0.92) 0%, rgba(17, 24, 39, 0.7) 100%);
  backdrop-filter: blur(24px);
  border-right: 1px solid rgba(148, 163, 184, 0.1);
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 98;
}

.sidebar__brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.sidebar__logo {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.35), rgba(14, 116, 144, 0.4));
  display: grid;
  place-items: center;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.05em;
  box-shadow: inset 0 0 0 1px rgba(56, 189, 248, 0.35);
}

.sidebar__logo--image {
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(148, 163, 184, 0.22);
  padding: 6px;
}

.sidebar__logo--image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: inherit;
}

.sidebar__title {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.1;
  color: var(--color-text);
}

.sidebar__subtitle {
  color: var(--color-text-muted);
  font-size: 12px;
  font-weight: 400;
}

.sidebar__menu {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
  flex: 1;
}

.sidebar__group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sidebar__link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  color: var(--color-text-muted);
  font-size: 15px;
  font-weight: 500;
  transition: var(--transition-base);
}

.sidebar__link--parent {
  justify-content: flex-start;
  position: relative;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  color: inherit;
  font: inherit;
}

.sidebar__chevron {
  margin-left: auto;
  font-size: 11px;
  color: var(--color-text-muted);
  transition: transform 0.2s ease;
}

.sidebar__link svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.7;
  color: currentColor;
}

.sidebar__link:hover {
  background: rgba(56, 189, 248, 0.1);
  color: #e0f2fe;
}

.sidebar__link--open .sidebar__chevron {
  transform: rotate(180deg);
}

.sidebar__link--parent.sidebar__link--open {
  background: rgba(56, 189, 248, 0.12);
  color: #f8fafc;
}

.sidebar__submenu {
  list-style: none;
  padding: 0 0 0 52px;
  margin: 0;
  display: none;
  flex-direction: column;
  gap: 6px;
}

.sidebar__submenu.open {
  display: flex;
}

.sidebar__sublink {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  color: var(--color-text-muted);
  font-size: 14px;
  transition: var(--transition-base);
}

.sidebar__sublink:hover {
  color: #f8fafc;
}

.sidebar__sublink.sidebar__link--active {
  color: #f8fafc;
  font-weight: 600;
}

.sidebar__link--active {
  background: rgba(56, 189, 248, 0.16);
  color: #f8fafc;
  box-shadow: inset 0 0 0 1px rgba(56, 189, 248, 0.24);
}

.sidebar__footer {
  padding-top: 18px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  font-size: 13px;
  color: var(--color-text-muted);
}

.layout-main {
  flex: 1;
  padding: 38px 48px;
  display: flex;
  flex-direction: column;
  gap: 38px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

.page-title {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.page-title h1 {
  margin: 0;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.page-title span {
  font-size: 14px;
  color: var(--color-text-muted);
}

.user-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.15);
}

.user-badge__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-primary-soft);
  display: grid;
  place-items: center;
  color: var(--color-primary);
  font-weight: 600;
}

.user-badge__avatar--image {
  padding: 0;
  background: transparent;
  border: 1px solid rgba(148, 163, 184, 0.2);
  overflow: hidden;
}

.user-badge__avatar--image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.user-badge__name {
  display: flex;
  flex-direction: column;
  font-size: 13px;
  line-height: 1.2;
}

.user-badge__name strong {
  color: var(--color-text);
}

.user-badge__name span {
  color: var(--color-text-muted);
}

.content-area {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.summary-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.summary-card {
  background: rgba(15, 23, 42, 0.78);
  border-radius: var(--radius-md);
  border: 1px solid rgba(148, 163, 184, 0.16);
  padding: 26px;
  display: grid;
  gap: 18px;
  box-shadow: var(--shadow-soft);
}

.summary-card__badge {
  display: inline-block;
  padding: 6px 12px !important;
  border-radius: 999px !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  background: rgba(56, 189, 248, 0.15) !important;
  color: #bae6fd !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  width: fit-content !important;
  line-height: 1.2 !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  min-height: auto !important;
  height: auto !important;
}

/* Forza lo stesso stile per entrambi i badge - Piano e Storage */
.summary-card--plan .summary-card__badge,
.summary-card--storage .summary-card__badge {
  padding: 6px 12px !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  line-height: 1.2 !important;
  margin: 0 !important;
  width: fit-content !important;
  border-radius: 999px !important;
  background: rgba(56, 189, 248, 0.15) !important;
  color: #bae6fd !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  min-height: auto !important;
  height: auto !important;
  box-sizing: border-box !important;
}

.summary-card__title {
  margin: 0;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--color-text);
}

.summary-card__cta {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 14px;
}

.summary-card__features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
  color: var(--color-text-muted);
  font-size: 13px;
}

.summary-card__features li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.summary-card__features li span {
  color: rgba(56, 189, 248, 0.9);
}

.summary-card__meta {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  font-size: 13px;
}

.summary-card__meta span {
  display: block;
  color: var(--color-text-muted);
  margin-bottom: 4px;
}

.summary-card__meta strong {
  color: var(--color-text);
}

.summary-card__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.summary-card--storage {
  background: linear-gradient(165deg, rgba(30, 64, 175, 0.35), rgba(15, 23, 42, 0.85));
  border: 1px solid rgba(59, 130, 246, 0.35);
}

.storage-gauge {
  display: grid;
  gap: 14px;
}

.storage-gauge__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  color: var(--color-text);
}

.storage-gauge__header span {
  color: var(--color-text-muted);
  font-size: 13px;
}

.storage-gauge__bar {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.18);
  overflow: hidden;
}

.storage-gauge__progress {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.6), rgba(14, 165, 233, 0.9));
  transition: width 0.3s ease;
}

.storage-gauge__meta {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--color-text-muted);
}

.storage-gauge__bucket {
  font-size: 12px;
  color: rgba(224, 242, 254, 0.9);
}

.storage-gauge__cta {
  font-size: 12px;
  color: rgba(224, 242, 254, 0.75);
}

.metric-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.metric-card {
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  display: grid;
  gap: 6px;
  box-shadow: var(--shadow-soft);
}

.metric-card__label {
  font-size: 13px;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.metric-card__value {
  font-size: 26px;
  font-weight: 600;
  color: var(--color-text);
}

.metric-card--vip {
  border-color: rgba(249, 115, 22, 0.35);
  background: rgba(249, 115, 22, 0.1);
}

.stat-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.stat-card {
  background: rgba(15, 23, 42, 0.72);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 1px solid rgba(56, 189, 248, 0.12);
  box-shadow: var(--shadow-soft);
}

.stat-card__label {
  font-size: 14px;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.stat-card__value {
  font-size: 32px;
  font-weight: 700;
  color: var(--color-text);
}

.stat-card__trend {
  font-size: 13px;
  color: var(--color-success);
  display: flex;
  align-items: center;
  gap: 8px;
}

.card {
  background: rgba(15, 23, 42, 0.78);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.card__title {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
}

.card__subtitle {
  color: var(--color-text-muted);
  font-size: 14px;
}

.card__actions {
  display: flex;
  gap: 10px;
}

.card--clickable {
  cursor: pointer;
  transition: var(--transition-base);
}

.card--clickable:hover {
  border-color: rgba(59, 130, 246, 0.25);
  transform: translateY(-2px);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition-base);
}

.button svg {
  width: 16px;
  height: 16px;
}

.button--primary {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.95), rgba(59, 130, 246, 0.9));
  color: #0f172a;
  box-shadow: 0 18px 35px rgba(56, 189, 248, 0.25);
}

.button--primary:hover {
  box-shadow: 0 22px 40px rgba(56, 189, 248, 0.32);
  transform: translateY(-1px);
}

.button--ghost {
  background: rgba(15, 23, 42, 0.5);
  color: var(--color-text-muted);
  border-color: rgba(148, 163, 184, 0.15);
}

.button--ghost:hover {
  color: var(--color-text);
  border-color: rgba(148, 163, 184, 0.32);
}

.button--danger {
  background: rgba(251, 113, 133, 0.18);
  color: var(--color-danger);
  border-color: rgba(251, 113, 133, 0.35);
}

.button--danger:hover {
  background: rgba(251, 113, 133, 0.28);
  border-color: rgba(251, 113, 133, 0.5);
  color: #fee2e2;
}

.button--icon {
  padding: 10px;
  width: auto;
  min-width: auto;
}

.button--icon svg {
  width: 18px;
  height: 18px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.6);
  color: var(--color-text-muted);
}

.chip--accent {
  border-color: rgba(249, 115, 22, 0.35);
  color: #fed7aa;
  background: rgba(249, 115, 22, 0.16);
}

.grid {
  display: grid;
  gap: 20px;
}

.grid--schede {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: stretch;
}

.schede-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 22px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.75);
  box-shadow: var(--shadow-soft);
  transition: var(--transition-base);
  min-height: 0;
}

.schede-card--vip {
  border-color: rgba(249, 115, 22, 0.45);
  background: linear-gradient(170deg, rgba(249, 115, 22, 0.18), rgba(15, 23, 42, 0.78));
  box-shadow: 0 0 0 1px rgba(249, 115, 22, 0.18), var(--shadow-soft);
}

.schede-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(56, 189, 248, 0.26);
}

.schede-card--vip:hover {
  border-color: rgba(249, 115, 22, 0.6);
  box-shadow: 0 8px 24px rgba(249, 115, 22, 0.25);
}

.schede-card__media {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.schede-card__media--placeholder {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.16), rgba(99, 102, 241, 0.16));
  color: #e0f2fe;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.schede-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.schede-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.schede-card__name {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
  min-height: 2.8em;
  max-height: 2.8em;
}

.schede-card__meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: var(--color-text-muted);
  min-height: 48px;
}

.schede-card__meta span {
  min-height: 20px;
  line-height: 1.4;
}

.schede-card__meta span:empty {
  min-height: 20px;
}

.schede-card__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 8px;
  align-items: stretch;
}

.schede-card__actions > a {
  flex: 1;
  min-width: 0;
}

.schede-card__actions form {
  margin: 0;
  display: flex;
  flex: 0 0 auto;
}

.details-grid {
  display: grid;
  gap: 18px 24px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.detail-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.detail-box span {
  font-size: 13px;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.detail-box strong {
  font-size: 16px;
  font-weight: 600;
}

.form-panel {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.form-grid {
  display: grid;
  gap: 18px 24px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-field label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.72);
  color: var(--color-text);
  font-size: 15px;
  transition: var(--transition-base);
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: rgba(56, 189, 248, 0.38);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.18);
}

.form-field textarea {
  resize: vertical;
  min-height: 120px;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.table-wrapper {
  border-radius: var(--radius-md);
  border: 1px solid rgba(148, 163, 184, 0.16);
  overflow: hidden;
  background: rgba(15, 23, 42, 0.75);
  box-shadow: var(--shadow-soft);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}

thead {
  background: rgba(30, 41, 59, 0.75);
}

th,
td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  font-size: 14px;
}

th {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  text-transform: uppercase;
}

tbody tr:hover {
  background: rgba(56, 189, 248, 0.08);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.badge--vip {
  background: rgba(249, 115, 22, 0.18);
  color: #fed7aa;
  border: 1px solid rgba(249, 115, 22, 0.35);
}

.badge--candidatura {
  background: rgba(56, 189, 248, 0.16);
  color: #bae6fd;
  border: 1px solid rgba(56, 189, 248, 0.32);
}

.note-box {
  padding: 18px;
  border-radius: var(--radius-sm);
  background: rgba(148, 163, 184, 0.08);
  border: 1px dashed rgba(148, 163, 184, 0.22);
  font-size: 14px;
  color: var(--color-text);
  min-height: 80px;
  line-height: 1.5;
}

.note-box[style*="visibility: hidden"] {
  padding: 18px;
  border: 1px dashed transparent;
  background: transparent;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 18px;
  align-items: flex-end;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 200px;
}

.filter-group label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
}

.filter-group select,
.filter-group input {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.72);
  color: var(--color-text);
  font-size: 14px;
  transition: var(--transition-base);
}

.filter-group select:focus,
.filter-group input:focus {
  outline: none;
  border-color: rgba(56, 189, 248, 0.38);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.18);
}

.documents-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.documents-grid--fixed {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.document-preview {
  border-radius: var(--radius-sm);
  border: 1px solid rgba(148, 163, 184, 0.16);
  overflow: hidden;
  background: rgba(15, 23, 42, 0.78);
}

.document-preview--empty {
  display: grid;
  place-items: center;
  border-style: dashed;
  background: rgba(148, 163, 184, 0.05);
  color: var(--color-text-muted);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.attachments-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 18px;
}

.attachments-actions span {
  font-size: 13px;
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
}

.document-preview iframe,
.document-preview img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.document-preview__footer {
  padding: 12px 14px;
  font-size: 13px;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.auth-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 16px;
}

.auth-card {
  width: min(420px, 100%);
  padding: 42px 36px;
  border-radius: var(--radius-md);
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid rgba(56, 189, 248, 0.14);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.auth-card h1 {
  margin: 0;
  font-size: 26px;
  font-weight: 600;
  text-align: center;
}

.auth-card form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.alert {
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 14px;
  background: rgba(248, 113, 113, 0.15);
  border: 1px solid rgba(248, 113, 113, 0.32);
  color: #fecdd3;
}

.empty-state {
  padding: 48px 32px;
  border-radius: var(--radius-md);
  background: rgba(15, 23, 42, 0.65);
  border: 1px dashed rgba(148, 163, 184, 0.22);
  text-align: center;
  display: grid;
  gap: 16px;
  color: var(--color-text-muted);
}

.footer {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  font-size: 13px;
  color: var(--color-text-muted);
}

.footer strong {
  color: var(--color-text);
}

.footer__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--color-text);
}

.footer__brand img {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.45);
  padding: 4px;
}

.footer__brand span {
  display: block;
  color: var(--color-text-muted);
  font-size: 12px;
}

.footer__contact {
  display: flex;
  gap: 16px;
  color: var(--color-text-muted);
  font-size: 13px;
  flex-wrap: wrap;
}

.footer__contact span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer__contact a {
  color: inherit;
  text-decoration: none;
}

.footer__contact a:hover {
  color: #f8fafc;
}

.footer__license {
  margin-top: 12px;
  font-size: 12px;
  color: var(--color-text-muted);
}

.hamburger {
  display: none;
  position: fixed;
  top: 18px;
  left: 18px;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.8);
  color: var(--color-text);
  font-size: 20px;
  z-index: 120;
  cursor: pointer;
}

@media (max-width: 1080px) {
  .layout-main {
    padding: 32px 26px 40px;
  }
}

@media (max-width: 960px) {
  .hamburger {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }

  .sidebar.open {
    transform: translateX(0);
    box-shadow: var(--shadow-hover);
  }

  .layout-main {
    padding-top: 78px;
  }
}

@media (max-width: 720px) {
  .topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  .user-badge {
    align-self: stretch;
    justify-content: space-between;
  }

  .stat-grid {
    grid-template-columns: 1fr;
  }

  .grid--schede {
    grid-template-columns: 1fr;
  }
}

.print-only {
  display: none;
}

@media print {
  body {
    background: white;
    color: black;
  }

  .sidebar,
  .topbar,
  .button,
  .hamburger {
    display: none !important;
  }

  .layout-main {
    padding: 0;
  }

  .card,
  .schede-card,
  .stat-card {
    box-shadow: none;
    border: 1px solid #d1d5db;
    background: white;
    color: black;
  }
}


