* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #FFFFFF;
  color: #1A1A1A;
  min-height: 100vh;
}

.header {
  background: #1A1A1A;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-brand {
  display: flex;
  align-items: center;
}
.header-brand img {
  height: 28px;
  width: auto;
  object-fit: contain;
}
.header-user {
  color: #C9A44C;
  font-size: 13px;
  font-weight: 500;
}
.header-logout {
  color: #A0A0A0;
  font-size: 12px;
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
  text-decoration: underline;
  margin-left: 12px;
}
.header-logout:hover { color: #FFFFFF; }

.login-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 40px 24px;
  background: #FFFFFF;
}
.login-logo {
  margin-bottom: 8px;
}
.login-logo img {
  height: 48px;
  width: auto;
  object-fit: contain;
}
.login-subtitle {
  font-size: 13px;
  color: #999999;
  margin-bottom: 40px;
  font-weight: 400;
}
.login-box {
  width: 100%;
  max-width: 360px;
  background: #FAFAF9;
  border: 1px solid #E5E5E3;
  border-radius: 12px;
  padding: 32px 28px;
}
.login-box h2 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 4px;
}
.login-box p {
  font-size: 13px;
  color: #888;
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 16px;
}
.form-label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: #555;
  margin-bottom: 6px;
}
.form-input {
  width: 100%;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 14px;
  border: 1px solid #D1D1CF;
  border-radius: 8px;
  background: #FFFFFF;
  margin-bottom: 14px;
  transition: border-color 0.2s;
}
.form-input:focus {
  outline: none;
  border-color: #C9A44C;
}
select.form-input {
  appearance: auto;
}
textarea.form-input {
  min-height: 80px;
  resize: vertical;
}

.btn {
  display: block;
  width: 100%;
  padding: 13px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-primary {
  background: #1A1A1A;
  color: #FFFFFF;
}
.btn-primary:hover { background: #333; }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-sm {
  display: inline-block;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: all 0.2s;
}
.btn-sm-primary {
  background: #1A1A1A;
  color: #FFFFFF;
}
.btn-sm-primary:hover { background: #333; }
.btn-sm-outline {
  background: #FFFFFF;
  color: #1A1A1A;
  border: 1px solid #E5E5E3;
}
.btn-sm-outline:hover { border-color: #C9A44C; color: #C9A44C; }
.btn-sm-danger {
  background: #FFFFFF;
  color: #DC2626;
  border: 1px solid #FECACA;
}
.btn-sm-danger:hover { background: #FEF2F2; }

.error-msg {
  background: #FEF2F2;
  color: #DC2626;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 12px;
}
.success-msg {
  background: #F0FDF4;
  color: #16A34A;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 12px;
}

.modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 200;
  align-items: center;
  justify-content: center;
}
.modal-overlay.active {
  display: flex;
}
.modal-content {
  background: #FFFFFF;
  border-radius: 14px;
  padding: 32px;
  width: 100%;
  max-width: 480px;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
}
.modal-content h2 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  background: #F0F0EE;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #888;
}
.modal-close:hover { background: #E5E5E3; }
.modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}
.modal-actions .btn { flex: 1; }

.status-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  white-space: nowrap;
}
.status-pending { background: #FFF7ED; color: #D97706; }
.status-confirmed { background: #F0FDF4; color: #16A34A; }
.status-completed { background: #F0F0EE; color: #666; }
.status-cancelled { background: #FEF2F2; color: #DC2626; }
.status-no-show { background: #FEF2F2; color: #DC2626; }
.status-checked-in { background: #E8F5E9; color: #2E7D32; }
.status-in-progress { background: #F3E5F5; color: #7B1FA2; }
.status-checked-out { background: #FFF8E1; color: #C9A44C; }
.status-accepted { background: #F0FDF4; color: #16A34A; }
.status-scheduled { background: #EFF6FF; color: #2563EB; }
.status-declined { background: #FEF2F2; color: #DC2626; }

.stat-card {
  background: #FFFFFF;
  border: 1px solid #E5E5E3;
  border-radius: 12px;
  padding: 20px;
}
.stat-card-label {
  font-size: 12px;
  color: #888;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}
.stat-card-value {
  font-size: 28px;
  font-weight: 700;
}
.stat-card-sub {
  font-size: 12px;
  color: #888;
  margin-top: 4px;
}
.stat-positive { color: #16A34A; }
.stat-negative { color: #DC2626; }
.stat-gold { color: #C9A44C; }

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #F0F0EE;
}
.panel-header h3 {
  font-size: 14px;
  font-weight: 600;
}
.panel-body {
  padding: 16px 20px;
}
.panel-empty {
  text-align: center;
  padding: 32px 20px;
  color: #999;
  font-size: 13px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}
@media (max-width: 900px) {
  .data-table { min-width: 600px; }
  .panel-body, .dashboard-panel, .page-section {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .modal-content { overflow-x: hidden; }
}
.data-table th {
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 10px 12px;
  border-bottom: 2px solid #E5E5E3;
}
.data-table td {
  padding: 12px;
  font-size: 13px;
  border-bottom: 1px solid #F5F5F3;
}
.data-table tr:hover td {
  background: #FAFAF9;
}

.loading-spinner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  color: #999;
  font-size: 13px;
}

.loading {
  text-align: center;
  padding: 40px;
  color: #A0A0A0;
  font-size: 14px;
}

.dashboard-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px;
}
.dashboard-greeting {
  margin-bottom: 32px;
}
.dashboard-greeting h1 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 4px;
}
.dashboard-greeting p {
  font-size: 14px;
  color: #888;
}

.section-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
}

.toast-notification {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: #1A1A1A;
  color: #fff;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  font-family: 'Poppins', sans-serif;
  z-index: 100000;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  opacity: 0;
  transition: opacity 0.3s;
}
.toast-notification.toast-error {
  background: #DC2626;
}
.toast-notification.toast-success {
  background: #16A34A;
}
.toast-notification.visible {
  opacity: 1;
}
