/* ============================================
   RETAIL SOLUTIONS - UNIFIED GLOBAL STYLES
   Created: November 7, 2025
   Purpose: Consistent professional styling across all pages
   Font: Segoe UI (Microsoft's professional typeface)
   ============================================ */

:root {
  /* ============================================
     PRIMARY COLOR PALETTE - Retail Solutions Brand
     ============================================ */
  --rs-primary-blue: #001f3f;        /* Dark navy - primary brand color */
  --rs-secondary-blue: #0056b3;      /* Medium blue - secondary actions */
  --rs-accent-blue: #2563eb;         /* Bright blue - highlights */
  --rs-light-blue: #eff6ff;          /* Very light blue - backgrounds */
  
  /* ============================================
     SEMANTIC COLORS
     ============================================ */
  --rs-success: #059669;             /* Green - success states */
  --rs-danger: #dc2626;              /* Red - error/danger states */
  --rs-warning: #f59e0b;             /* Amber - warning states */
  --rs-info: #0891b2;                /* Cyan - info states */
  
  /* ============================================
     NEUTRAL COLORS
     ============================================ */
  --rs-white: #ffffff;
  --rs-gray-50: #f9fafb;
  --rs-gray-100: #f3f4f6;
  --rs-gray-200: #e5e7eb;
  --rs-gray-300: #d1d5db;
  --rs-gray-400: #9ca3af;
  --rs-gray-500: #6b7280;
  --rs-gray-600: #4b5563;
  --rs-gray-700: #374151;
  --rs-gray-800: #1f2937;
  --rs-gray-900: #111827;
  
  /* ============================================
     TYPOGRAPHY SCALE - Consistent font sizes
     ============================================ */
  --rs-text-xs: 0.75rem;      /* 12px */
  --rs-text-sm: 0.875rem;     /* 14px */
  --rs-text-base: 1rem;       /* 16px */
  --rs-text-lg: 1.125rem;     /* 18px */
  --rs-text-xl: 1.25rem;      /* 20px */
  --rs-text-2xl: 1.5rem;      /* 24px */
  --rs-text-3xl: 1.875rem;    /* 30px */
  --rs-text-4xl: 2.25rem;     /* 36px */
  
  /* ============================================
     SPACING SCALE - Consistent spacing
     ============================================ */
  --rs-space-1: 0.25rem;      /* 4px */
  --rs-space-2: 0.5rem;       /* 8px */
  --rs-space-3: 0.75rem;      /* 12px */
  --rs-space-4: 1rem;         /* 16px */
  --rs-space-5: 1.25rem;      /* 20px */
  --rs-space-6: 1.5rem;       /* 24px */
  --rs-space-8: 2rem;         /* 32px */
  --rs-space-10: 2.5rem;      /* 40px */
  --rs-space-12: 3rem;        /* 48px */
  --rs-space-16: 4rem;        /* 64px */
  
  /* ============================================
     BORDER RADIUS
     ============================================ */
  --rs-radius-sm: 0.25rem;    /* 4px */
  --rs-radius: 0.375rem;      /* 6px */
  --rs-radius-md: 0.5rem;     /* 8px */
  --rs-radius-lg: 0.75rem;    /* 12px */
  --rs-radius-xl: 1rem;       /* 16px */
  --rs-radius-full: 9999px;   /* Fully rounded */
  
  /* ============================================
     SHADOWS
     ============================================ */
  --rs-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --rs-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
  --rs-shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.06);
  --rs-shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
  --rs-shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1), 0 10px 10px rgba(0, 0, 0, 0.04);
  
  /* ============================================
     TRANSITIONS
     ============================================ */
  --rs-transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --rs-transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --rs-transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   GLOBAL RESET AND BASE STYLES
   ============================================ */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  height: 100%;
  font-size: 16px; /* Base font size */
}

body {
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, system-ui, sans-serif !important;
  font-size: var(--rs-text-base);
  line-height: 1.6;
  color: var(--rs-gray-800);
  background-color: var(--rs-gray-50);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4, h5, h6 {
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-weight: 600;
  line-height: 1.2;
  color: var(--rs-gray-900);
  margin-bottom: var(--rs-space-4);
}

h1 { font-size: var(--rs-text-4xl); font-weight: 700; }
h2 { font-size: var(--rs-text-3xl); font-weight: 600; }
h3 { font-size: var(--rs-text-2xl); font-weight: 600; }
h4 { font-size: var(--rs-text-xl); font-weight: 600; }
h5 { font-size: var(--rs-text-lg); font-weight: 500; }
h6 { font-size: var(--rs-text-base); font-weight: 500; }

p {
  margin-bottom: var(--rs-space-4);
  line-height: 1.6;
}

/* ============================================
   LINKS
   ============================================ */

a {
  color: var(--rs-secondary-blue);
  text-decoration: none;
  transition: color var(--rs-transition-fast);
}

a:hover {
  color: var(--rs-primary-blue);
  text-decoration: underline;
}

a:focus {
  outline: 2px solid var(--rs-accent-blue);
  outline-offset: 2px;
  border-radius: var(--rs-radius-sm);
}

/* ============================================
   PAGE HEADER - UNIFIED ACROSS ALL PAGES
   ============================================ */

.rs-page-header {
  background: var(--rs-white);
  padding: var(--rs-space-6) var(--rs-space-8);
  margin-bottom: var(--rs-space-6);
  box-shadow: var(--rs-shadow);
  border-bottom: 3px solid var(--rs-primary-blue);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--rs-space-4);
}

.rs-header-logo-section {
  display: flex;
  align-items: center;
  gap: var(--rs-space-4);
}

.rs-header-logo-section img {
  height: 50px;
  width: auto;
}

.rs-header-logo-section h1 {
  color: var(--rs-gray-900);
  font-size: var(--rs-text-3xl);
  font-weight: 700;
  margin: 0;
}

.rs-page-title {
  color: var(--rs-primary-blue);
  font-size: var(--rs-text-2xl);
  font-weight: 600;
  margin: 0;
}

/* ============================================
   HERO SECTIONS (BLACK BACKGROUND WITH WHITE TEXT)
   ============================================ */

.rs-hero {
  background: #000000;
  color: #ffffff;
  padding: var(--rs-space-12) var(--rs-space-8);
  text-align: center;
  margin-bottom: var(--rs-space-8);
  box-shadow: var(--rs-shadow-lg);
  border-radius: var(--rs-radius-lg);
}

.rs-hero h1 {
  color: #ffffff;
  font-size: var(--rs-text-4xl);
  font-weight: 700;
  margin-bottom: var(--rs-space-4);
}

.rs-hero p {
  font-size: var(--rs-text-lg);
  color: #e5e7eb;
  opacity: 0.95;
  max-width: 600px;
  margin: 0 auto;
}

/* ============================================
   BUTTONS - RS BRAND STYLING
   ============================================ */

.rs-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--rs-space-2);
  padding: var(--rs-space-3) var(--rs-space-5);
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: var(--rs-text-sm);
  font-weight: 500;
  line-height: 1;
  border: 1px solid transparent;
  border-radius: var(--rs-radius-md);
  cursor: pointer;
  transition: all var(--rs-transition-fast);
  text-decoration: none;
  background-color: var(--rs-secondary-blue);
  color: #ffffff;
}

.rs-btn:focus {
  outline: 2px solid var(--rs-accent-blue);
  outline-offset: 2px;
}

.rs-btn:hover {
  background-color: var(--rs-primary-blue);
  color: #ffffff;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: var(--rs-shadow-md);
}

.rs-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Button variants */
.rs-btn-primary {
  background-color: var(--rs-secondary-blue);
  color: #ffffff;
  border-color: var(--rs-secondary-blue);
}
.rs-btn-primary:hover {
  background-color: var(--rs-primary-blue);
  border-color: var(--rs-primary-blue);
  color: #ffffff;
}

.rs-btn-secondary {
  background-color: var(--rs-gray-600);
  color: #ffffff;
  border-color: var(--rs-gray-600);
}
.rs-btn-secondary:hover {
  background-color: var(--rs-gray-800);
  border-color: var(--rs-gray-800);
  color: #ffffff;
}

.rs-btn-outline {
  background-color: transparent;
  color: var(--rs-secondary-blue);
  border: 2px solid var(--rs-secondary-blue);
}
.rs-btn-outline:hover {
  background-color: var(--rs-secondary-blue);
  color: #ffffff;
}

.rs-btn-success {
  background-color: var(--rs-success);
  color: #ffffff;
  border-color: var(--rs-success);
}
.rs-btn-success:hover {
  background-color: #047857;
  border-color: #047857;
  color: #ffffff;
}

.rs-btn-danger {
  background-color: var(--rs-danger);
  color: #ffffff;
  border-color: var(--rs-danger);
}
.rs-btn-danger:hover {
  background-color: #b91c1c;
  border-color: #b91c1c;
  color: #ffffff;
}

.rs-btn-warning {
  background-color: var(--rs-warning);
  color: #ffffff;
  border-color: var(--rs-warning);
}
.rs-btn-warning:hover {
  background-color: #b45309;
  color: #ffffff;
}

.rs-btn-ghost {
  background-color: transparent;
  color: var(--rs-gray-700);
  border-color: var(--rs-gray-300);
}
.rs-btn-ghost:hover {
  background-color: var(--rs-gray-100);
  color: var(--rs-gray-900);
}

/* Button sizes */
.rs-btn-sm {
  padding: var(--rs-space-2) var(--rs-space-4);
  font-size: var(--rs-text-xs);
}

.rs-btn-lg {
  padding: var(--rs-space-4) var(--rs-space-8);
  font-size: var(--rs-text-lg);
}

/* ============================================
   FORMS - UNIFIED STYLING
   ============================================ */

.rs-form-group {
  margin-bottom: var(--rs-space-5);
}

.rs-label {
  display: block;
  font-family: 'Segoe UI', system-ui, sans-serif;
  font-size: var(--rs-text-sm);
  font-weight: 500;
  color: var(--rs-gray-700);
  margin-bottom: var(--rs-space-2);
}

.rs-input,
.rs-select,
.rs-textarea {
  width: 100%;
  padding: var(--rs-space-3);
  font-family: 'Segoe UI', system-ui, sans-serif;
  font-size: var(--rs-text-base);
  color: var(--rs-gray-800);
  background-color: var(--rs-white);
  border: 2px solid var(--rs-gray-300);
  border-radius: var(--rs-radius);
  transition: border-color var(--rs-transition-fast), box-shadow var(--rs-transition-fast);
}

.rs-input:focus,
.rs-select:focus,
.rs-textarea:focus {
  outline: none;
  border-color: var(--rs-accent-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.rs-textarea {
  resize: vertical;
  min-height: 100px;
}

/* ============================================
   CARDS AND CONTAINERS
   ============================================ */

.rs-card {
  background: var(--rs-white);
  border-radius: var(--rs-radius-lg);
  box-shadow: var(--rs-shadow);
  padding: var(--rs-space-6);
  margin-bottom: var(--rs-space-6);
}

.rs-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--rs-space-6);
}

.rs-container-sm {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--rs-space-6);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

/* Text utilities */
.rs-text-xs { font-size: var(--rs-text-xs); }
.rs-text-sm { font-size: var(--rs-text-sm); }
.rs-text-base { font-size: var(--rs-text-base); }
.rs-text-lg { font-size: var(--rs-text-lg); }
.rs-text-xl { font-size: var(--rs-text-xl); }
.rs-text-2xl { font-size: var(--rs-text-2xl); }
.rs-text-3xl { font-size: var(--rs-text-3xl); }

.rs-text-center { text-align: center; }
.rs-text-left { text-align: left; }
.rs-text-right { text-align: right; }

.rs-font-normal { font-weight: 400; }
.rs-font-medium { font-weight: 500; }
.rs-font-semibold { font-weight: 600; }
.rs-font-bold { font-weight: 700; }

/* Color utilities */
.rs-text-primary { color: var(--rs-primary-blue); }
.rs-text-secondary { color: var(--rs-secondary-blue); }
.rs-text-success { color: var(--rs-success); }
.rs-text-danger { color: var(--rs-danger); }
.rs-text-warning { color: var(--rs-warning); }
.rs-text-muted { color: var(--rs-gray-500); }

/* Background utilities */
.rs-bg-primary { background-color: var(--rs-primary-blue); }
.rs-bg-secondary { background-color: var(--rs-secondary-blue); }
.rs-bg-success { background-color: var(--rs-success); }
.rs-bg-danger { background-color: var(--rs-danger); }
.rs-bg-warning { background-color: var(--rs-warning); }
.rs-bg-white { background-color: var(--rs-white); }
.rs-bg-gray-50 { background-color: var(--rs-gray-50); }

/* Spacing utilities */
.rs-m-0 { margin: 0; }
.rs-m-1 { margin: var(--rs-space-1); }
.rs-m-2 { margin: var(--rs-space-2); }
.rs-m-3 { margin: var(--rs-space-3); }
.rs-m-4 { margin: var(--rs-space-4); }
.rs-m-5 { margin: var(--rs-space-5); }
.rs-m-6 { margin: var(--rs-space-6); }

.rs-p-0 { padding: 0; }
.rs-p-1 { padding: var(--rs-space-1); }
.rs-p-2 { padding: var(--rs-space-2); }
.rs-p-3 { padding: var(--rs-space-3); }
.rs-p-4 { padding: var(--rs-space-4); }
.rs-p-5 { padding: var(--rs-space-5); }
.rs-p-6 { padding: var(--rs-space-6); }

/* Layout utilities */
.rs-flex { display: flex; }
.rs-inline-flex { display: inline-flex; }
.rs-grid { display: grid; }
.rs-block { display: block; }
.rs-hidden { display: none; }

.rs-flex-col { flex-direction: column; }
.rs-flex-row { flex-direction: row; }
.rs-items-center { align-items: center; }
.rs-items-start { align-items: flex-start; }
.rs-items-end { align-items: flex-end; }
.rs-justify-center { justify-content: center; }
.rs-justify-between { justify-content: space-between; }
.rs-justify-end { justify-content: flex-end; }

.rs-gap-1 { gap: var(--rs-space-1); }
.rs-gap-2 { gap: var(--rs-space-2); }
.rs-gap-3 { gap: var(--rs-space-3); }
.rs-gap-4 { gap: var(--rs-space-4); }
.rs-gap-6 { gap: var(--rs-space-6); }

/* Width utilities */
.rs-w-full { width: 100%; }
.rs-w-auto { width: auto; }
.rs-max-w-sm { max-width: 24rem; }
.rs-max-w-md { max-width: 28rem; }
.rs-max-w-lg { max-width: 32rem; }
.rs-max-w-xl { max-width: 36rem; }

/* ============================================
   TABLES
   ============================================ */

.rs-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Segoe UI', system-ui, sans-serif;
  font-size: var(--rs-text-sm);
  background: var(--rs-white);
  border-radius: var(--rs-radius-lg);
  overflow: hidden;
  box-shadow: var(--rs-shadow);
}

.rs-table th {
  background-color: var(--rs-gray-50);
  color: var(--rs-gray-700);
  font-weight: 600;
  padding: var(--rs-space-4);
  text-align: left;
  border-bottom: 1px solid var(--rs-gray-200);
}

.rs-table td {
  padding: var(--rs-space-4);
  border-bottom: 1px solid var(--rs-gray-200);
}

.rs-table tbody tr:hover {
  background-color: var(--rs-gray-50);
}

/* ============================================
   ALERTS AND NOTIFICATIONS
   ============================================ */

.rs-alert {
  padding: var(--rs-space-4);
  border-radius: var(--rs-radius);
  font-family: 'Segoe UI', system-ui, sans-serif;
  font-size: var(--rs-text-sm);
  margin-bottom: var(--rs-space-4);
}

.rs-alert-success {
  background-color: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.rs-alert-danger {
  background-color: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.rs-alert-warning {
  background-color: #fffbeb;
  color: #92400e;
  border: 1px solid #fed7aa;
}

.rs-alert-info {
  background-color: #f0f9ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
  .rs-page-header {
    flex-direction: column;
    text-align: center;
    padding: var(--rs-space-4);
  }
  
  .rs-hero {
    padding: var(--rs-space-8) var(--rs-space-4);
  }
  
  .rs-hero h1 {
    font-size: var(--rs-text-3xl);
  }
  
  .rs-container,
  .rs-container-sm {
    padding: 0 var(--rs-space-4);
  }
  
  .rs-btn {
    width: 100%;
    justify-content: center;
  }
  
  .rs-card {
    padding: var(--rs-space-4);
  }
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
  body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    color: #000;
    background: white;
  }
  
  .rs-page-header,
  .rs-hero {
    background: white !important;
    color: #000 !important;
    box-shadow: none !important;
  }
  
  .rs-btn {
    border: 1px solid #000;
    background: white !important;
    color: #000 !important;
  }
}