/* ==================== BUTTONS ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--border-radius-btn);
  font-weight: 600;
  font-size: 0.875rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  user-select: none;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--text-white);
}
[data-theme="dark"] .btn-primary {
  color: #08090A; /* Dark contrast text on neon lime accent */
}
.btn-primary:hover {
  background-color: var(--primary-hover);
}

.btn-secondary {
  background-color: var(--card-bg);
  border-color: var(--border-color);
  color: var(--text-secondary);
}
.btn-secondary:hover {
  background-color: var(--bg-color);
  color: var(--text-primary);
  border-color: var(--text-muted);
}

.btn-success {
  background-color: var(--success);
  color: var(--text-white);
}
.btn-success:hover {
  background-color: var(--success-hover);
}

.btn-danger {
  background-color: var(--danger);
  color: var(--text-white);
}
.btn-danger:hover {
  background-color: var(--danger-hover);
}

.btn-text {
  background: none;
  border: none;
  color: var(--primary);
  padding: 4px 8px;
  font-weight: 500;
  cursor: pointer;
}
.btn-text:hover {
  color: var(--primary-hover);
  background-color: var(--primary-light);
  border-radius: 4px;
}

.btn-block {
  width: 100%;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* ==================== CARDS & BENTO GRID LAYOUT ==================== */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-card);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), background-color var(--transition-normal), border-color var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-premium);
}

/* Bento card sizing modifiers */
.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }
.row-span-2 { grid-row: span 2; }

/* Stat card stylings */
.card-stat {
  display: flex;
  flex-direction: column;
}

.card-stat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.card-stat-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.card-stat-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-stat-icon.primary { background-color: var(--primary-light); color: var(--primary); }
.card-stat-icon.success { background-color: var(--success-light); color: var(--success); }
.card-stat-icon.warning { background-color: var(--warning-light); color: var(--warning); }
.card-stat-icon.danger { background-color: var(--danger-light); color: var(--danger); }

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

.card-stat-footer {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 500;
}

.trend-badge {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px 6px;
  border-radius: 6px;
  font-weight: 600;
}
.trend-badge.up { background-color: var(--success-light); color: var(--success); }
.trend-badge.down { background-color: var(--danger-light); color: var(--danger); }

.trend-label {
  color: var(--text-muted);
}

/* Header section inside lists/grids */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.section-header h2 {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* ==================== BADGES & TAGS ==================== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: capitalize;
}

.badge-primary { background-color: var(--primary-light); color: var(--primary); }
.badge-success { background-color: var(--success-light); color: var(--success); }
.badge-warning { background-color: var(--warning-light); color: var(--warning); }
.badge-danger { background-color: var(--danger-light); color: var(--danger); }
.badge-neutral { background-color: var(--bg-color); color: var(--text-secondary); border: 1px solid var(--border-color); }

/* ==================== TABLES ==================== */
.table-container {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}

.table-header-toolbar {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.table-search {
  position: relative;
  display: flex;
  align-items: center;
  max-width: 320px;
  width: 100%;
}

.table-search i {
  position: absolute;
  left: 12px;
  width: 16px;
  height: 16px;
  color: var(--text-muted);
}

.table-search input {
  width: 100%;
  padding: 8px 12px 8px 36px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background-color: var(--bg-color);
  outline: none;
  font-size: 0.875rem;
  transition: var(--transition-fast);
}

.table-search input:focus {
  border-color: var(--primary);
  background-color: var(--card-bg);
}

.table-filters {
  display: flex;
  align-items: center;
  gap: 12px;
}

.table-filters select {
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background-color: var(--card-bg);
  outline: none;
  font-size: 0.85rem;
  color: var(--text-secondary);
  cursor: pointer;
}

.table-filters select:focus {
  border-color: var(--primary);
}

.custom-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.875rem;
}

.custom-table th {
  background-color: var(--bg-color);
  color: var(--text-secondary);
  font-weight: 600;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
  user-select: none;
}

.custom-table th.sortable {
  cursor: pointer;
  transition: color var(--transition-fast);
}

.custom-table th.sortable:hover {
  color: var(--text-primary);
}

.custom-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-primary);
  vertical-align: middle;
}

.custom-table tbody tr {
  transition: background-color var(--transition-fast);
}

.custom-table tbody tr:hover {
  background-color: rgba(243, 244, 246, 0.4);
}

[data-theme="dark"] .custom-table tbody tr:hover {
  background-color: rgba(31, 41, 55, 0.3);
}

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

/* Pagination controls */
.table-pagination {
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-color);
  background-color: var(--card-bg);
}

.pagination-info {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.pagination-buttons {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ==================== MODALS & GLASS OVERLAYS ==================== */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(4px);
  z-index: 1000;
  transition: opacity var(--transition-normal);
}

.modal-backdrop.hidden {
  display: none;
  opacity: 0;
}

.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -46%) scale(0.96);
  width: 90%;
  max-width: 600px;
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  max-height: 85vh;
  overflow: hidden;
  opacity: 0;
  transition: transform var(--transition-smooth), opacity var(--transition-smooth);
  pointer-events: none;
}

.modal.active {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  pointer-events: all;
}

.modal.hidden {
  display: none !important;
}

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

.modal-header h2 {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.modal-close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color var(--transition-fast);
}

.modal-close-btn:hover {
  color: var(--text-primary);
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  background-color: var(--bg-color);
}

/* Modals sizing overrides */
.wizard-modal { max-width: 800px; }
.detail-modal { max-width: 750px; }
.command-palette-modal { max-width: 600px; top: 20%; transform: translate(-50%, -10%); }
.command-palette-modal.active { transform: translate(-50%, 0) scale(1); }

/* Form Elements inside modals */
.form-control {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background-color: var(--bg-color);
  outline: none;
  transition: var(--transition-fast);
  color: var(--text-primary);
}

.form-control:focus {
  border-color: var(--primary);
  background-color: var(--card-bg);
  box-shadow: 0 0 0 3px var(--primary-light);
}

select.form-control {
  cursor: pointer;
}

/* ==================== COMMAND PALETTE (Ctrl+K) ==================== */
.command-palette-search {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  position: relative;
}

.command-palette-search .search-icon {
  width: 20px;
  height: 20px;
  color: var(--text-secondary);
  position: absolute;
  left: 20px;
}

.command-palette-search input {
  width: 100%;
  border: none;
  background: none;
  outline: none;
  padding-left: 36px;
  font-size: 1.05rem;
  color: var(--text-primary);
}

.command-palette-results {
  max-height: 350px;
  overflow-y: auto;
  padding: 8px;
}

.palette-section-title {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 8px 12px 4px;
}

.palette-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.palette-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.palette-item i {
  width: 16px;
  height: 16px;
  color: var(--text-secondary);
}

.palette-item-text {
  display: flex;
  flex-direction: column;
}

.palette-item-title {
  font-size: 0.875rem;
  font-weight: 600;
}

.palette-item-subtitle {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.palette-item:hover, .palette-item.selected {
  background-color: var(--primary-light);
  color: var(--primary);
}

.palette-item:hover i, .palette-item.selected i {
  color: var(--primary);
}

.command-palette-footer {
  padding: 10px 20px;
  border-top: 1px solid var(--border-color);
  background-color: var(--bg-color);
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.command-palette-footer kbd {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  padding: 1px 4px;
  border-radius: 3px;
  font-family: monospace;
}

/* ==================== TOAST SYSTEM ==================== */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  pointer-events: all;
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  border-radius: 12px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 300px;
  max-width: 420px;
  transform: translateX(120%);
  transition: transform var(--transition-smooth) ease, opacity var(--transition-smooth) ease;
  opacity: 0;
}

.toast.show {
  transform: translateX(0);
  opacity: 1;
}

.toast-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.toast-content {
  flex: 1;
}

.toast-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
}

.toast-message {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-top: 1px;
}

.toast-close-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.1rem;
}
.toast-close-btn:hover {
  color: var(--text-primary);
}

.toast.success { border-left: 4px solid var(--success); }
.toast.success .toast-icon { color: var(--success); }

.toast.error { border-left: 4px solid var(--danger); }
.toast.error .toast-icon { color: var(--danger); }

.toast.warning { border-left: 4px solid var(--warning); }
.toast.warning .toast-icon { color: var(--warning); }

.toast.info { border-left: 4px solid var(--primary); }
.toast.info .toast-icon { color: var(--primary); }

/* ==================== NOTIFICATIONS DROPDOWN ==================== */
.header-dropdown {
  position: absolute;
  top: 110%;
  right: 0;
  width: 320px;
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  z-index: 100;
  overflow: hidden;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity var(--transition-fast) ease, transform var(--transition-fast) ease;
  pointer-events: none;
}

.header-dropdown.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.dropdown-header {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dropdown-header h3 {
  font-size: 0.95rem;
  font-weight: 700;
}

.dropdown-list {
  max-height: 280px;
  overflow-y: auto;
}

.dropdown-item {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  gap: 12px;
  transition: background-color var(--transition-fast);
  cursor: pointer;
}

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

.dropdown-item:hover {
  background-color: var(--bg-color);
}

.notif-item-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.notif-item-icon.success { background-color: var(--success-light); color: var(--success); }
.notif-item-icon.warning { background-color: var(--warning-light); color: var(--warning); }
.notif-item-icon.info { background-color: var(--primary-light); color: var(--primary); }

.notif-item-content {
  flex: 1;
}

.notif-item-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
}

.notif-item-time {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.empty-state-dropdown {
  padding: 40px 20px;
  text-align: center;
  color: var(--text-secondary);
}

.empty-state-dropdown i {
  width: 32px;
  height: 32px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.empty-state-dropdown p {
  font-size: 0.85rem;
}

/* ==================== ROLE SELECTOR / PROFILE DROPDOWN ==================== */
.profile-dropdown {
  width: 240px;
}

.profile-dropdown .dropdown-header {
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.profile-dropdown .dropdown-header h4 {
  font-size: 0.875rem;
  font-weight: 600;
}

.profile-dropdown .dropdown-header p {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.dropdown-divider {
  height: 1px;
  background-color: var(--border-color);
}

.role-selector-title {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 10px 16px 4px 16px;
}

.role-list {
  max-height: 200px;
  overflow-y: auto;
  padding: 4px 8px;
}

.role-btn {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.role-btn:hover {
  background-color: var(--bg-color);
  color: var(--text-primary);
}

.role-btn.active {
  background-color: var(--primary-light);
  color: var(--primary);
  font-weight: 600;
}

.role-btn.active::after {
  content: "✓";
  font-size: 0.8rem;
}

.logout-dropdown-btn {
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 12px 16px;
  color: var(--danger);
  display: flex;
  align-items: center;
  gap: 8px;
}

.logout-dropdown-btn:hover {
  background-color: var(--danger-light);
}

/* ==================== WIZARD STEPPER COMPONENT ==================== */
.stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  padding: 0 10px;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  position: relative;
  z-index: 2;
  cursor: default;
}

.step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--bg-color);
  border: 2px solid var(--border-color);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all var(--transition-normal);
}

.step.active .step-num {
  background-color: var(--primary);
  border-color: var(--primary);
  color: white;
  box-shadow: 0 0 0 4px var(--primary-light);
}

.step.completed .step-num {
  background-color: var(--success);
  border-color: var(--success);
  color: white;
}

.step-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.step.active .step-label {
  color: var(--primary);
}

.step-line {
  flex: 1;
  height: 2px;
  background-color: var(--border-color);
  margin-top: -16px;
  z-index: 1;
  transition: background-color var(--transition-normal);
}

.step-line.completed {
  background-color: var(--success);
}

.step-line.active {
  background-color: var(--primary);
}

.wizard-content {
  min-height: 280px;
  margin-bottom: 12px;
}

.wizard-step-panel {
  display: none;
}

.wizard-step-panel.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

.wizard-description {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.details-card-compact {
  background-color: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 16px;
  margin-top: 16px;
  font-size: 0.85rem;
  animation: slideUp 0.2s ease;
}

.products-selection-layout {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 20px;
}

.select-prod-group {
  flex: 1;
  margin-bottom: 0;
}

.added-items-table-wrapper {
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  max-height: 200px;
  overflow-y: auto;
}

.added-items-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  text-align: left;
}

.added-items-table th {
  background-color: var(--bg-color);
  padding: 8px 16px;
  font-weight: 600;
  border-bottom: 1px solid var(--border-color);
}

.added-items-table td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--border-color);
}

.added-items-table tr:last-child td {
  border-bottom: none;
}

/* Quantity listing step */
.quantity-items-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: 280px;
  overflow-y: auto;
  padding-right: 4px;
}

.qty-item-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 16px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  background-color: var(--card-bg);
}

.qty-item-name {
  font-weight: 600;
  font-size: 0.875rem;
}

.qty-item-meta {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* Step 4: review styling */
.review-layout {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.review-meta {
  display: flex;
  gap: 16px;
}

.meta-block {
  flex: 1;
  background-color: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 12px;
}

.meta-block label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
}

.meta-block .val {
  font-weight: 600;
  font-size: 0.875rem;
  margin-top: 2px;
}

.review-items label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
  display: block;
}

.review-table-wrapper {
  border: 1px solid var(--border-color);
  border-radius: 10px;
  overflow: hidden;
  max-height: 180px;
  overflow-y: auto;
}

.review-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  text-align: left;
}

.review-table th {
  background-color: var(--bg-color);
  padding: 8px 12px;
  font-weight: 600;
  border-bottom: 1px solid var(--border-color);
}

.review-table td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--border-color);
}

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

.review-summary-totals {
  background-color: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 280px;
  align-self: flex-end;
}

.totals-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.grand-total-row {
  border-top: 1px solid var(--border-color);
  padding-top: 8px;
  font-weight: 700;
  color: var(--text-primary);
  font-size: 1.05rem;
}

/* ==================== ADDITIONAL COMPONENT WIDGETS ==================== */
/* Weather / Calendar compact widget */
.widget-weather-calendar {
  display: flex;
  gap: 16px;
  height: 100%;
}

.widget-calendar-side {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #FF512F 0%, #DD2476 100%);
  color: white;
  border-radius: 14px;
  padding: 12px;
  text-align: center;
}

.widget-calendar-side .cal-month {
  text-transform: uppercase;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  opacity: 0.9;
}

.widget-calendar-side .cal-day {
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.1;
}

.widget-calendar-side .cal-weekday {
  font-size: 0.72rem;
  font-weight: 500;
  opacity: 0.8;
}

.widget-weather-side {
  flex: 1.2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 12px;
}

.weather-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.weather-temp {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 2px 0;
}

.weather-desc {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* Vertical Timeline (Activity feed & Modals) */
.timeline-feed {
  display: flex;
  flex-direction: column;
  position: relative;
  padding-left: 20px;
}

.timeline-feed::before {
  content: '';
  position: absolute;
  top: 4px;
  left: 4px;
  bottom: 4px;
  width: 2px;
  background-color: var(--border-color);
}

.timeline-item {
  position: relative;
  padding-bottom: 20px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-point {
  position: absolute;
  top: 4px;
  left: -20px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--border-color);
  border: 2px solid var(--card-bg);
}

.timeline-item.active .timeline-point {
  background-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.timeline-item.success .timeline-point {
  background-color: var(--success);
  box-shadow: 0 0 0 3px var(--success-light);
}

.timeline-meta {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.timeline-content {
  font-size: 0.85rem;
  font-weight: 500;
  margin-top: 2px;
}
