/* AtalmenPay - Precision Swiss Component System (High-Impact Typography) */

/* Responsive Header & Action Wrapper */
.page-header-responsive {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.page-title-responsive {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.page-actions-responsive {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

/* 1. Swiss Attention Banner (CobroPro Style) */
.attention-banner {
  background: #fffdf0;
  border: 1px solid #fef08a;
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.attention-banner-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.attention-banner-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: #fef9c3;
  color: #ca8a04;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.attention-banner-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.05rem;
  color: #713f12;
  letter-spacing: -0.02em;
}

.attention-banner-sub {
  font-size: 0.9rem;
  color: #854d0e;
  margin-top: 0.15rem;
  line-height: 1.4;
}

.attention-banner-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

/* 2. Swiss KPI Cards (High Impact Bold Figures) */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 1.75rem;
}

@media (max-width: 1200px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

.stat-card-swiss {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 155px;
  transition: var(--transition);
}

.stat-card-swiss:hover {
  border-color: #cbd5e1;
  box-shadow: 0 6px 12px -2px rgba(0,0,0,0.04);
}

.stat-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.stat-icon-badge {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-icon-badge.purple { background: #f3e8ff; color: #9333ea; }
.stat-icon-badge.green  { background: #dcfce7; color: #16a34a; }
.stat-icon-badge.blue   { background: #e0f2fe; color: #0284c7; }
.stat-icon-badge.amber  { background: #fef3c7; color: #d97706; }
.stat-icon-badge.red    { background: #fee2e2; color: #dc2626; }

.stat-pill-badge {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: var(--radius-xs);
}

.stat-pill-badge.green  { background: #dcfce7; color: #15803d; }
.stat-pill-badge.cyan   { background: #ecfeff; color: #0e7490; }
.stat-pill-badge.gray   { background: #f1f5f9; color: #475569; }
.stat-pill-badge.red    { background: #fee2e2; color: #b91c1c; }

.stat-label-muted {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.stat-amount-bold {
  font-family: var(--font-heading);
  font-size: 2.15rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text-main);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.stat-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-top: 0.85rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--border-light);
}

/* 3. Analytics & Operations Responsive Grid */
.dashboard-analytics-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.75rem;
  align-items: flex-start;
  margin-bottom: 1.75rem;
}

@media (max-width: 1024px) {
  .dashboard-analytics-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem;
  }
}

/* 4. Swiss General Cards */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
  position: relative;
  overflow: hidden;
}

.card-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-surface);
  flex-wrap: wrap;
  gap: 0.85rem;
}

.card-title {
  font-family: var(--font-heading);
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.card-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.card-body {
  padding: 1.5rem;
}

.card-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-color);
  background: var(--bg-subtle);
}

/* 5. Swiss Period Switcher Pills */
.period-switcher {
  display: flex;
  align-items: center;
  background: var(--bg-subtle);
  padding: 4px;
  border-radius: var(--radius-full);
  gap: 3px;
  flex-wrap: nowrap;
}

.period-pill {
  padding: 5px 14px;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
  border: none;
  background: transparent;
  white-space: nowrap;
}

.period-pill.active {
  background: #09090b;
  color: #ffffff;
  font-weight: 800;
}

/* 6. Agenda & Schedule Items */
.agenda-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-light);
  gap: 0.85rem;
  transition: var(--transition);
}

.agenda-item:last-child {
  border-bottom: none;
}

.agenda-item:hover {
  background: #fafafa;
}

.agenda-date-box {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.75rem;
  text-align: center;
  min-width: 58px;
  flex-shrink: 0;
}

.agenda-date-day {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--text-main);
  line-height: 1.1;
}

.agenda-date-rel {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-subtle);
}

/* 7. Swiss Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: -0.01em;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: #09090b;
  color: #ffffff;
  border-color: #09090b;
}

.btn-primary:hover {
  background: #27272a;
  border-color: #27272a;
}

.btn-secondary {
  background: #ffffff;
  color: var(--text-main);
  border-color: var(--border-color);
}

.btn-secondary:hover {
  background: var(--bg-subtle);
  border-color: #cbd5e1;
}

.btn-danger {
  background: var(--accent-red);
  color: #ffffff;
  border-color: var(--accent-red);
}

.btn-sm {
  padding: 0.45rem 0.85rem;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 0.85rem 1.5rem;
  font-size: 1.05rem;
}

.btn-block {
  width: 100%;
}

/* 8. Swiss Data Tables */
.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.94rem;
}

.data-table thead th {
  background: #f8fafc;
  padding: 0.95rem 1.25rem;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
}

.data-table tbody td {
  padding: 1.05rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-body);
  vertical-align: middle;
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

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

/* 9. Swiss Status Badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-xs);
  font-family: var(--font-heading);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid transparent;
}

.badge-success {
  background: var(--accent-emerald-bg);
  color: var(--accent-emerald);
  border-color: var(--accent-emerald-border);
}

.badge-danger {
  background: var(--accent-red-bg);
  color: var(--accent-red);
  border-color: var(--accent-red-border);
}

.badge-warning {
  background: var(--accent-amber-bg);
  color: var(--accent-amber);
  border-color: var(--accent-amber-border);
}

.badge-info {
  background: var(--accent-blue-bg);
  color: var(--accent-blue);
  border-color: var(--accent-blue-border);
}

.badge-neutral {
  background: #f1f5f9;
  color: var(--text-muted);
  border-color: var(--border-color);
}

/* 10. Form Controls */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-main);
  margin-bottom: 0.45rem;
}

.form-control, .form-select {
  width: 100%;
  padding: 0.72rem 1rem;
  font-family: var(--font-body);
  font-size: 0.98rem;
  color: var(--text-main);
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  transition: var(--transition);
  outline: none;
}

.form-control:focus, .form-select:focus {
  border-color: #09090b;
  box-shadow: 0 0 0 2px rgba(9, 9, 11, 0.15);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.input-icon-group {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon-group .material-icons-round {
  position: absolute;
  left: 0.85rem;
  font-size: 1.25rem;
  color: var(--text-subtle);
  pointer-events: none;
}

.input-icon-group .form-control {
  padding-left: 2.65rem;
}

/* 11. Modals */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(9, 9, 11, 0.6);
  backdrop-filter: blur(3px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 1rem;
}

.modal-backdrop.show {
  display: flex;
}

.modal-dialog {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: 0 25px 30px -5px rgba(0,0,0,0.15);
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.18rem;
  font-weight: 800;
}

.modal-close {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
}

.modal-body {
  padding: 1.5rem;
}

.modal-footer {
  padding: 1.15rem 1.5rem;
  border-top: 1px solid var(--border-color);
  background: #f8fafc;
  display: flex;
  justify-content: flex-end;
  gap: 0.85rem;
}
