/* deals.css - Modern Deals Page Styles */
:root {
  /* Colors */
  --primary-color: #4f46e5;
  --primary-light: #818cf8;
  --primary-dark: #4338ca;
  --secondary-color: #6b7280;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --error-color: #ef4444;
  --background-color: #f9fafb;
  --surface-color: #ffffff;
  --text-primary: #111827;
  --text-secondary: #4b5563;
  --text-muted: #9ca3af;
  --border-color: #e5e7eb;
  --shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

  /* Spacing */
  --space-xxs: 0.25rem;
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;

  /* Border radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.375rem;
  --radius-lg: 0.5rem;
  --radius-xl: 0.75rem;
  --radius-2xl: 1rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition-default: all 0.2s ease-in-out;
  --transition-slow: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  
  /* Layout */
  --sidebar-width: 250px;
  --header-height: 64px;
  --sidebar-collapsed-width: 70px;
  --content-padding: 1.5rem;
  --font-mono: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;

  /* Line heights */
  --leading-none: 1;
  --leading-tight: 1.25;
  --leading-snug: 1.375;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;
  --leading-loose: 2;
}

/* Reset and base styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  line-height: 1.5;
  color: var(--text-primary);
  background-color: var(--background-color);
}

/* Utility classes */
.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-lg);
}

/* Button styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  font-size: var(--font-size-sm);
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
}

.btn-ghost {
  background-color: transparent;
  color: var(--text-primary);
  border-color: var(--border-color);
}

.btn-ghost:hover {
  background-color: #f8fafc;
  border-color: var(--text-muted);
}

.btn-sm {
  padding: var(--space-xs) var(--space-sm);
  font-size: var(--font-size-xs);
}

/* Card component */
.card {
  background: var(--surface-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
}

/* Page header */
#page-title {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  margin: var(--space-lg) 0;
  color: var(--text-primary);
}

/* Grid layout */
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

/* Form styles */
form {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

label {
  display: block;
  margin-bottom: var(--space-xs);
  font-weight: 600;
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
}

input,
select,
textarea {
  width: 100%;
  padding: var(--space-sm);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: var(--font-size-base);
  transition: border-color 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Fieldset styles */
fieldset {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  background-color: #f8fafc;
}

legend {
  font-weight: 600;
  color: var(--text-primary);
  padding: 0 var(--space-sm);
}

/* Beds / Units Section */
.beds-section {
  grid-column: 1 / -1;
  margin-bottom: var(--space-lg);
}

.beds-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 12px;
  width: 100%;
}

.bed-row {
  display: grid;
  grid-template-columns: 1fr 80px 120px 120px auto;
  gap: 8px;
  align-items: center;
}

@media (max-width: 640px) {
  .bed-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

/* Food packages: clear two-column layout */
.food-packages {
  display: grid;
  grid-template-columns: 1fr 120px;
  gap: 8px 16px;
  align-items: center;
  margin-bottom: 12px;
}

.food-packages label {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* input visual tweaks */
.form-control {
  padding: 8px;
  border-radius: 6px;
}

/* step/section headers style */
.form-section {
  display: block;
  font-weight: 700;
  margin: 14px 0 8px;
  color: var(--text-primary);
  font-size: 0.95rem;
}

/* improve overall grid responsiveness */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

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

/* Deal summary */
#deal-summary {
  font-weight: 600;
  color: var(--success-color);
  font-size: var(--font-size-lg);
}

/* Form actions */
.form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border-color);
}

/* Sidebar */
.sidebar {
  position: sticky;
  top: var(--space-lg);
  align-self: start;
}

.sidebar h4 {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-md);
  color: var(--text-primary);
}

/* Deals list */
.deals-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.deal-item {
  padding: var(--space-md);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--surface-color);
  transition: all 0.2s ease;
  cursor: pointer;
}

.deal-item:hover {
  border-color: var(--primary-color);
  box-shadow: var(--shadow);
}

.deal-item.active {
  border-color: var(--primary-color);
  background-color: #eff6ff;
}

.deal-title {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.deal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  font-size: var(--font-size-sm);
  color: var(--text-muted);
}

.deal-value {
  font-weight: 600;
  color: var(--success-color);
}

.deal-status {
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-xl);
  font-size: var(--font-size-xs);
  font-weight: 600;
  text-transform: uppercase;
}

.status-open {
  background-color: #dbeafe;
  color: #1e40af;
}

.status-proposal {
  background-color: #fef3c7;
  color: #92400e;
}

.status-negotiation {
  background-color: #fef3c7;
  color: #92400e;
}

.status-won {
  background-color: #dcfce7;
  color: #166534;
}

.status-lost {
  background-color: #fee2e2;
  color: #dc2626;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: var(--space-2xl);
  color: var(--text-muted);
  font-style: italic;
}

/* ===== ENHANCED MODAL FORM STYLES ===== */
.deal-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  overflow-y: auto;
  backdrop-filter: blur(4px);
}

.deal-modal.hidden {
  display: none;
}

.deal-modal .modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: -1;
}

.deal-modal .modal-panel {
  position: relative;
  background: var(--surface-color);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl);
  width: 100%;
  max-width: 900px;
  max-height: 95vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalSlideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--border-color);
}

/* Enhanced Header */
.deal-modal .modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-xl);
  border-bottom: 1px solid var(--border-color);
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: white;
  position: relative;
}

.deal-modal .modal-header::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

.deal-modal .modal-header h2 {
  margin: 0;
  font-size: var(--font-size-2xl);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.deal-modal .modal-header h2::before {
  content: '💼';
  font-size: var(--font-size-xl);
}

.deal-modal #deal-close-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-default);
  font-size: var(--font-size-lg);
}

.deal-modal #deal-close-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1) rotate(90deg);
}

/* Enhanced Body */
.deal-modal .modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 0;
  max-height: 60vh;
}

/* Progress Steps */
.form-progress {
  display: flex;
  justify-content: space-between;
  padding: var(--space-xl) var(--space-xl) 0;
  position: relative;
  margin-bottom: var(--space-xl);
}

.form-progress::before {
  content: '';
  position: absolute;
  top: 50%;
  left: var(--space-xl);
  right: var(--space-xl);
  height: 2px;
  background: var(--border-color);
  transform: translateY(-50%);
  z-index: 1;
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
  flex: 1;
}

.step-indicator {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--background-color);
  border: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--text-muted);
  transition: var(--transition-slow);
  margin-bottom: var(--space-sm);
}

.step-label {
  font-size: var(--font-size-xs);
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
  transition: var(--transition-default);
}

.progress-step.active .step-indicator {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
  transform: scale(1.1);
}

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

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

.progress-step.completed .step-indicator::before {
  content: '✓';
}

/* Form Sections */
.form-sections {
  padding: 0 var(--space-xl);
}

/* replace the rule that hides .form-section with this */
.form-section {
  display: block;
  /* <-- show these headings/sections by default */
  animation: fadeInUp 0.3s ease-out;
  margin: 12px 0;
}


.form-section.active {
  display: block;
}

.section-header {
  margin-bottom: var(--space-xl);
  text-align: center;
}

.section-title {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.section-description {
  color: var(--text-muted);
  font-size: var(--font-size-sm);
}

/* Enhanced Form Grid */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group.half-width {
  grid-column: span 1;
}

/* Enhanced Labels */
.form-label {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-weight: 600;
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
  margin-bottom: var(--space-xs);
}

.required::after {
  content: " *";
  color: var(--error-color);
  font-weight: 700;
}

.helper-text {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  margin-top: 2px;
}

/* Enhanced Inputs */
.form-control {
  padding: var(--space-md);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  font-size: var(--font-size-base);
  transition: var(--transition-default);
  background: var(--surface-color);
  position: relative;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
  transform: translateY(-1px);
}

.form-control:hover {
  border-color: var(--primary-light);
}

.form-control.error {
  border-color: var(--error-color);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.error-message {
  color: var(--error-color);
  font-size: var(--font-size-xs);
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.error-message::before {
  content: '⚠';
  font-size: var(--font-size-xs);
}

/* Enhanced Beds Section */
.beds-section {
  background: var(--background-color);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  border: 1px solid var(--border-color);
}

.beds-header {
  display: flex;
  justify-content: between;
  align-items: center;
  margin-bottom: var(--space-lg);
}

.beds-title {
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--text-primary);
}

.beds-container {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.bed-row {
  display: grid;
  grid-template-columns: 1fr 100px 120px 120px auto;
  gap: var(--space-sm);
  align-items: end;
  padding: var(--space-md);
  background: var(--surface-color);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  transition: var(--transition-default);
  position: relative;
}

.bed-row:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.bed-row:not(:first-child)::before {
  content: '+';
  position: absolute;
  left: -12px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--success-color);
  color: white;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-sm);
  font-weight: 700;
}

.remove-bed-row {
  background: var(--error-color);
  color: white;
  border: none;
  padding: var(--space-sm);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-default);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
}

.remove-bed-row:hover {
  background: #dc2626;
  transform: scale(1.05);
}

.add-bed-row {
  background: var(--success-color);
  color: white;
  border: none;
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: var(--transition-default);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  font-weight: 600;
  margin-top: var(--space-sm);
}

.add-bed-row:hover {
  background: #059669;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* Enhanced Food Packages */
.food-packages-section {
  background: var(--background-color);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  border: 1px solid var(--border-color);
}

.food-packages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-md);
}

.food-option {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  padding: var(--space-lg);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  transition: var(--transition-default);
  background: var(--surface-color);
  cursor: pointer;
  position: relative;
}

.food-option:hover {
  border-color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.food-option.selected {
  border-color: var(--primary-color);
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.food-option.selected::before {
  content: '✓';
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--primary-color);
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-sm);
  font-weight: 700;
}

.checkbox-container {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  cursor: pointer;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.food-checkbox {
  width: 20px;
  height: 20px;
  accent-color: var(--primary-color);
  transform: scale(1.1);
}

.food-description {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  line-height: var(--leading-snug);
  margin-bottom: var(--space-sm);
}

.food-price-input {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  background: var(--background-color);
  padding: var(--space-sm);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  transition: var(--transition-default);
}

.food-price-input:focus-within {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.1);
}

.food-price-input .currency {
  font-weight: 600;
  color: var(--text-secondary);
  min-width: 20px;
}

.food-price-input .period {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  min-width: 40px;
}

.food-price-input input {
  border: none;
  background: transparent;
  padding: 0;
  flex: 1;
  font-weight: 600;
  color: var(--text-primary);
}

.food-price-input input:focus {
  outline: none;
  box-shadow: none;
}

/* Enhanced Date Range */
.date-range-section {
  background: var(--background-color);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  border: 1px solid var(--border-color);
}

.date-range-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

.date-input-group {
  position: relative;
}

.date-input-group label {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.date-input-group label::before {
  content: '📅';
  font-size: var(--font-size-sm);
}

.date-input {
  position: relative;
}

.date-input input {
  padding-left: var(--space-2xl);
}

.date-input::before {
  content: '';
  position: absolute;
  left: var(--space-md);
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  background: var(--text-muted);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='currentColor' d='M19 3h-1V1h-2v2H8V1H6v2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V9h14v10zM5 7V5h14v2H5z'/%3E%3C/svg%3E");
  mask-repeat: no-repeat;
}

/* Enhanced Total Estimate */
.total-estimate-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  color: white;
  text-align: center;
  margin: var(--space-xl) 0;
  position: relative;
  overflow: hidden;
}

.total-estimate-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.1);
}

.estimate-content {
  position: relative;
  z-index: 1;
}

.estimate-label {
  font-size: var(--font-size-lg);
  font-weight: 600;
  margin-bottom: var(--space-sm);
  opacity: 0.9;
}

.estimate-amount {
  font-size: var(--font-size-4xl);
  font-weight: 800;
  margin-bottom: var(--space-sm);
  line-height: 1;
}

.estimate-breakdown {
  font-size: var(--font-size-sm);
  opacity: 0.8;
  margin-bottom: var(--space-sm);
}

.estimate-note {
  font-size: var(--font-size-xs);
  opacity: 0.7;
  font-style: italic;
}

/* Enhanced Footer */
.deal-modal .modal-footer {
  padding: var(--space-xl);
  border-top: 1px solid var(--border-color);
  background: var(--background-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.navigation-buttons {
  display: flex;
  gap: var(--space-md);
}

.action-buttons {
  display: flex;
  gap: var(--space-md);
}

/* Enhanced Buttons */
.btn {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  font-weight: 600;
  border: 2px solid transparent;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  box-shadow: 0 4px 6px rgba(79, 70, 229, 0.2);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 15px rgba(79, 70, 229, 0.3);
}

.btn-secondary {
  background: var(--surface-color);
  border-color: var(--border-color);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: var(--background-color);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.btn-outline {
  background: transparent;
  border-color: var(--border-color);
  color: var(--text-primary);
}

.btn-outline:hover {
  background: var(--background-color);
  border-color: var(--primary-color);
  color: var(--primary-color);
}

/* Loading State */
.btn-loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}

.btn-loading::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  top: 50%;
  left: 50%;
  margin-left: -8px;
  margin-top: -8px;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Animations */
@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(-10px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Responsive Design for Modal */
@media (max-width: 768px) {
  .deal-modal {
    padding: var(--space-sm);
  }

  .deal-modal .modal-panel {
    max-height: 98vh;
    border-radius: var(--radius-xl);
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .bed-row {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }

  .date-range-grid {
    grid-template-columns: 1fr;
  }

  .food-packages-grid {
    grid-template-columns: 1fr;
  }

  .modal-footer {
    flex-direction: column;
    gap: var(--space-md);
  }

  .navigation-buttons,
  .action-buttons {
    width: 100%;
    justify-content: stretch;
  }

  .navigation-buttons .btn,
  .action-buttons .btn {
    flex: 1;
  }

  .form-progress {
    padding: var(--space-lg) var(--space-lg) 0;
  }

  .step-label {
    font-size: 0.7rem;
  }
}

/* ===== END ENHANCED MODAL FORM STYLES ===== */

/* Mobile-first responsive design */

/* Main Layout */
.main-wrapper {
  margin-left: var(--sidebar-width);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: margin-left 0.3s ease;
}

.main-wrapper.sidebar-collapsed {
  margin-left: var(--sidebar-collapsed-width);
}

/* App Header */
.app-header {
  background: var(--surface-color);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  display: flex;
  align-items: center;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 var(--space-lg);
  width: 100%;
  height: 100%;
}

.header-left {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.mobile-sidebar-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.25rem;
  color: var(--text-primary);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
}

.mobile-sidebar-toggle:hover {
  background-color: var(--border-color);
}

.app-name {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
  color: var(--text-primary);
}

.user-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), #818cf8);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 0.875rem;
}

.user-details {
  display: flex;
  flex-direction: column;
}

.user-name {
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--text-primary);
}

.user-role {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Sidebar */
.sidebar {
  width: var(--sidebar-width);
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  background-color: var(--surface-color);
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
  z-index: 1100;
  transition: all 0.3s ease;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

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

.sidebar-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-toggle {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1rem;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.sidebar-toggle:hover {
  background-color: var(--border-color);
  color: var(--text-primary);
}

.sidebar-nav {
  padding: 1rem 0;
  flex: 1;
  overflow-y: auto;
}

.nav-item {
  margin: 0.25rem 0.75rem;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.nav-link {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.2s ease;
  border-radius: var(--radius-md);
}

.nav-link:hover {
  background-color: rgba(79, 70, 229, 0.1);
  color: var(--primary-color);
}

.nav-link i {
  margin-right: 0.75rem;
  width: 1.25rem;
  text-align: center;
  font-size: 1.1rem;
}

.nav-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-item.active .nav-link {
  background-color: rgba(79, 70, 229, 0.1);
  color: var(--primary-color);
  font-weight: 500;
}

/* Collapsed Sidebar */
.sidebar.collapsed {
  width: var(--sidebar-collapsed-width);
}

.sidebar.collapsed .sidebar-logo,
.sidebar.collapsed .nav-text {
  display: none;
}

.sidebar.collapsed .sidebar-header {
  justify-content: center;
  padding: 1.5rem 0.5rem 1rem;
}

.sidebar.collapsed .nav-link {
  justify-content: center;
  padding: 0.75rem;
}

.sidebar.collapsed .nav-link i {
  margin-right: 0;
  font-size: 1.25rem;
}

.sidebar.collapsed .sidebar-toggle i {
  transform: rotate(180deg);
}

/* Sidebar Overlay */
.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.sidebar-overlay.show {
  display: block;
  opacity: 1;
}

/* Main Content */
.deals-container {
  flex: 1;
  padding: var(--content-padding);
  background-color: var(--background-color);
  min-height: calc(100vh - var(--header-height));
}

.deals-main {
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.show-mobile {
    transform: translateX(0);
  }

  .main-wrapper {
    margin-left: 0;
  }

  .mobile-sidebar-toggle {
    display: block;
  }

  .sidebar.collapsed {
    transform: translateX(-100%);
  }
}

@media (min-width: 1025px) {
  .mobile-sidebar-toggle {
    display: none;
  }
}

/* Layout Utilities */
@media (min-width: 768px) {
  .deals-container {
    padding: var(--space-lg);
  }
  
  .sidebar {
    transform: none;
  }
  
  .main-wrapper {
    margin-left: var(--sidebar-width);
  }
  
  .main-wrapper.sidebar-collapsed {
    margin-left: var(--sidebar-collapsed-width);
  }
  
  .sidebar-overlay {
    display: none !important;
  }
  .container {
    padding: var(--space-xl);
  }

  #page-title {
    font-size: var(--font-size-2xl);
  }

  .date-inputs {
    grid-template-columns: 1fr 1fr;
  }

  .food-package {
    grid-template-columns: auto 1fr;
    align-items: center;
  }
}

/* Tablet styles */
@media (min-width: 768px) {
  .deals-container {
    padding: var(--space-lg);
  }
  
  .sidebar {
    transform: none;
  }
  
  .main-wrapper {
    margin-left: var(--sidebar-width);
  }
  
  .main-wrapper.sidebar-collapsed {
    margin-left: var(--sidebar-collapsed-width);
  }
  
  .sidebar-overlay {
    display: none !important;
  }
  .container {
    padding: var(--space-xl);
  }

  #page-title {
    font-size: var(--font-size-2xl);
  }

  .date-inputs {
    grid-template-columns: 1fr 1fr;
  }

  .food-package {
    grid-template-columns: auto 1fr;
    align-items: center;
  }
}

/* Desktop styles */
@media (min-width: 1024px) {
  .grid {
    grid-template-columns: 2fr 1fr;
    gap: var(--space-xl);
  }

  .beds-list .row {
    grid-template-columns: 1fr 1fr 1fr 1fr auto;
  }

  .food-packages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
  }

  .food-package {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .food-package label {
    justify-content: center;
  }
}

/* Wide desktop styles */
@media (min-width: 1280px) {
  .container {
    padding: var(--space-2xl);
  }

  #page-title {
    font-size: var(--font-size-2xl);
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --border-color: #000000;
    --shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  }

  .btn {
    border-width: 2px;
  }

  .deal-modal .modal-panel {
    border: 2px solid var(--text-primary);
  }

  .form-control {
    border-width: 2px;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .deal-modal .modal-panel {
    animation: none;
  }

  .btn,
  .form-control,
  .bed-row,
  .food-option {
    transition: none;
  }

  .btn:hover::before {
    display: none;
  }
}

/* Print styles */
@media print {
  .btn-ghost {
    display: none;
  }

  .card {
    box-shadow: none;
    border: 1px solid var(--border-color);
  }

  .sidebar {
    position: static;
  }

  .modal-backdrop {
    background: white;
  }

  .modal-inner {
    box-shadow: none;
    border: 1px solid var(--border-color);
  }

  .modal header {
    background: none;
    color: var(--text-primary);
  }

  .btn {
    display: none;
  }
}

/* Add this to your main CSS file */
.toast-notification {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 12px 24px;
  border-radius: 4px;
  color: white;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  animation: slideIn 0.3s ease-out;
}

.toast-notification.success {
  background-color: #4caf50;
}

.toast-notification.error {
  background-color: #f44336;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Deals List */
#deals-list {
  margin-top: 2rem;
}

.deals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.deal-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.deal-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.deal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.deal-header h3 {
  margin: 0;
  font-size: 1.1rem;
  color: #1a1a1a;
}

.deal-status {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-weight: 600;
  text-transform: capitalize;
}

.deal-status.open {
  background: #e3f2fd;
  color: #1976d2;
}

.deal-status.proposal {
  background: #fff3e0;
  color: #ef6c00;
}

.deal-status.negotiation {
  background: #fff8e1;
  color: #ff8f00;
}

.deal-status.won {
  background: #e8f5e9;
  color: #2e7d32;
}

.deal-status.lost {
  background: #ffebee;
  color: #c62828;
}

.deal-details {
  margin: 1rem 0;
}

.deal-amount,
.deal-date {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.deal-amount .value {
  font-weight: 600;
  color: #1a1a1a;
}

.deal-date {
  color: #666;
  font-size: 0.85rem;
}

.deal-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 1rem;
}

.no-deals {
  text-align: center;
  padding: 2rem;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px dashed #dee2e6;
}

.no-deals p {
  margin-bottom: 1rem;
  color: #6c757d;
}