/* ===== Shared page styles for logged-in area ===== */

/* Page header */
.page-header {
  margin-bottom: 1.5rem;
}

.page-header-row {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 576px) {
  .page-header-row {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}

.page-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff !important;
  margin-bottom: 0.25rem;
}

.page-subtitle {
  font-size: 0.9rem;
  color: #777 !important;
  margin-bottom: 0;
}

/* Page actions (top right buttons) */

.btn-back {
  color: #aaa !important;
  border: 1px solid #444 !important;
  background: transparent !important;
}

.btn-back:hover {
  color: #fff !important;
  border-color: #666 !important;
}

/* ===== Section card (replaces Bootstrap .card) ===== */
.section-card {
  background: #222;
  border: 1px solid #2d2d2d;
  border-radius: 12px;
  overflow: hidden;
  height: 100%;
}

.section-card-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #2d2d2d;
  background: #252525;
}

.section-card-header h5 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: #e0e0e0 !important;
  margin-bottom: 0;
}

.section-card-header h5 i {
  color: #FF6B00;
}

.section-card-header .header-actions {
  display: flex;
  gap: 0.5rem;
}

.section-card-body {
  padding: 1.25rem;
}

.section-card-footer {
  padding: 0.85rem 1.25rem;
  border-top: 1px solid #2d2d2d;
}

/* ===== Detail rows (label + value pairs) ===== */
.detail-row {
  margin-bottom: 1rem;
}

.detail-row:last-child {
  margin-bottom: 0;
}

.detail-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: #777 !important;
  margin-bottom: 0.2rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.detail-value {
  font-size: 0.9rem;
  color: #e0e0e0 !important;
  margin-bottom: 0;
}

/* ===== Stats row (horizontal stats) ===== */
.stats-row {
  display: flex;
  text-align: center;
}

.stats-row .stat-item {
  flex: 1;
  padding: 1rem 0.5rem;
}

.stats-row .stat-item + .stat-item {
  border-left: 1px solid #2d2d2d;
}

.stats-row .stat-icon {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.stats-row .stat-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff !important;
  margin-bottom: 0.15rem;
}

.stats-row .stat-label {
  font-size: 0.75rem;
  color: #777 !important;
  margin-bottom: 0;
}

/* Responsive stats grid — 2 cols on mobile, 3 on sm+ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 576px) {
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.stats-grid .stat-item {
  padding: 1.25rem 0.5rem;
  text-align: center;
  border-bottom: 1px solid #2d2d2d;
  border-right: 1px solid #2d2d2d;
}

.stats-grid .stat-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.stats-grid .stat-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: #fff !important;
  margin-bottom: 0.15rem;
}

.stats-grid .stat-item:nth-child(2n) {
  border-right: none;
}

@media (min-width: 576px) {
  .stats-grid .stat-item:nth-child(2n) {
    border-right: 1px solid #2d2d2d;
  }

  .stats-grid .stat-item:nth-child(3n) {
    border-right: none;
  }
}

.stats-grid .stat-item:nth-last-child(-n+2) {
  border-bottom: none;
}

@media (min-width: 576px) {
  .stats-grid .stat-item:nth-last-child(-n+2) {
    border-bottom: 1px solid #2d2d2d;
  }

  .stats-grid .stat-item:nth-last-child(-n+3) {
    border-bottom: none;
  }
}

/* ===== Form sections ===== */
.form-section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #e0e0e0 !important;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #2d2d2d;
}

/* ===== Billing card ===== */
.billing-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid #2a2a2a;
}

.billing-row:last-child {
  border-bottom: none;
}

.billing-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #999 !important;
  min-width: 140px;
}

.billing-value {
  font-size: 0.9rem;
  color: #e0e0e0 !important;
}

/* ===== Logo display ===== */
.business-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 10px;
  border: 1px solid #333;
  padding: 6px;
  background: #252525;
}

/* ===== Notification toggles ===== */
.notif-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.notif-toggle i.fa-check-circle {
  color: #10B981;
}

.notif-toggle i.fa-times-circle {
  color: #555;
}

.notif-toggle .notif-on {
  color: #e0e0e0 !important;
  font-size: 0.85rem;
}

.notif-toggle .notif-off {
  color: #666 !important;
  font-size: 0.85rem;
}

.notif-section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: #ccc !important;
  margin-bottom: 0.75rem;
}

.notif-section-title i {
  color: #FF6B00;
}
