/* ============================================
   RETAIL SOLUTIONS - STANDARD CSS THEME
   Generated: November 1, 2025
   Use this for consistent styling across all pages
   ============================================ */

:root {
  /* Retail Solutions Color Scheme */
  --primary-blue: #001f3f;
  --secondary-blue: #0056b3;
  --success-green: #28a745;
  --danger-red: #dc3545;
  --warning-yellow: #ffc107;
  --info-blue: #17a2b8;
  --light-gray: #f8f9fa;
  --medium-gray: #e9ecef;
  --dark-gray: #6c757d;
  --white: #ffffff;
  --brand-dark: #2a2a2a;
  
  /* Modern UI Colors (complementary) */
  --purple-gradient-start: #667eea;
  --purple-gradient-end: #764ba2;
  --blue-primary: #2563eb;
  --blue-hover: #1d4ed8;
}

/* ============================================
   GLOBAL STYLES
   ============================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif !important;
  background: var(--light-gray);
  color: var(--brand-dark);
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

/* ============================================
   PAGE HEADER (Standard across all pages)
   ============================================ */

.page-header {
  background: var(--white) !important;
  background-color: var(--white) !important;
  padding: 20px 40px;
  margin-bottom: 20px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  border-bottom: 3px solid var(--blue-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo-section {
  display: flex;
  align-items: center;
  gap: 15px;
}

.header-logo-section img {
  height: 50px;
  width: auto;
}

.header-logo-section h1 {
  color: var(--brand-dark);
  font-size: 28px;
  margin: 0;
  font-weight: 700;
}

.page-title {
  color: var(--blue-primary);
  font-size: 24px;
  margin: 0;
  font-weight: 600;
}

/* ============================================
   BUTTONS (Standard styling - BLACK with WHITE TEXT)
   ============================================ */

.btn,
button:not(.no-style) {
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  background: #000000 !important;
  color: #ffffff !important;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.btn:hover,
button:not(.no-style):hover {
  background: #1a1a1a !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.btn:disabled,
button:not(.no-style):disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-primary {
  background: #000000 !important;
  color: #ffffff !important;
}

.btn-primary:hover {
  background: #1a1a1a !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.btn-success {
  background: #000000 !important;
  color: #ffffff !important;
}

.btn-success:hover {
  background: #1a1a1a !important;
  transform: translateY(-1px);
}

.btn-danger {
  background: #000000 !important;
  color: #ffffff !important;
}

.btn-danger:hover {
  background: #1a1a1a !important;
  transform: translateY(-1px);
}

.btn-secondary {
  background: #000000 !important;
  color: #ffffff !important;
}

.btn-secondary:hover {
  background: #1a1a1a !important;
}

.btn-outline {
  background: transparent !important;
  color: #000000 !important;
  border: 2px solid #000000 !important;
}

.btn-outline:hover {
  background: #000000 !important;
  color: #ffffff !important;
}

/* ============================================
   CARDS (Standard card styling)
   ============================================ */

.card {
  background: var(--white);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  margin-bottom: 20px;
}

.card-header {
  font-size: 18px;
  font-weight: 700;
  color: var(--brand-dark);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--medium-gray);
}

.card-body {
  color: var(--dark-gray);
}

/* ============================================
   FORMS (Standard form styling)
   ============================================ */

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-weight: 600;
  color: var(--brand-dark);
  margin-bottom: 8px;
  font-size: 14px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--medium-gray);
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.3s ease;
  background: var(--white);
  color: var(--brand-dark);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--blue-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-input:disabled,
.form-select:disabled,
.form-textarea:disabled {
  background: var(--light-gray);
  cursor: not-allowed;
}

/* ============================================
   TABLES (Standard table styling)
   ============================================ */

.table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.table thead {
  background: var(--primary-blue);
  color: var(--white);
}

.table th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 14px;
}

.table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--medium-gray);
  font-size: 14px;
  color: var(--brand-dark);
}

.table tbody tr:hover {
  background: var(--light-gray);
}

.table tbody tr:last-child td {
  border-bottom: none;
}

/* ============================================
   HERO BAR (Standardized hero section)
   ============================================ */

.rs-hero-bar,
.hero-section {
  background: #000000 !important;
  color: #ffffff !important;
  padding: 14px 30px;
  margin: 16px auto;
  max-width: 1400px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  position: relative;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  display: flex;
  align-items: center;
  gap: 18px;
}

.rs-hero-bar .hero-content,
.hero-section .hero-content,
.rs-hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  flex: 1;
}

.rs-hero-bar .hero-title,
.hero-section .hero-title,
.rs-hero-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: #ffffff !important;
  margin: 0;
  line-height: 1.2;
}

.rs-hero-bar .hero-subtitle,
.hero-section .hero-subtitle,
.rs-hero-subtitle {
  font-size: 0.95rem;
  color: #cbd5e1 !important;
  margin: 4px 0 0 0;
  line-height: 1.3;
  font-weight: 400;
}

/* Removed hero logo styles per request: no logos across pages */
/* Reintroduce minimal hero logo styling (small and clean) */
/* Removed hero logo styles: no logo image in hero bar */

/* Mobile responsive hero bar */
@media (max-width: 768px) {
  .rs-hero-bar,
  .hero-section {
    padding: 6px 12px;
    margin: 8px auto;
  }
  
  .rs-hero-bar .hero-title,
  .hero-section .hero-title,
  .rs-hero-title {
    font-size: 1.1rem;
  }
  
  .rs-hero-bar .hero-title,
  .hero-section .hero-title,
  .rs-hero-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff !important;
    margin: 0;
    line-height: 1.2;
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }
    transform: none;
    height: 28px;
    margin-bottom: 4px;
  }
}

/* ============================================
   BADGES (Status indicators)
   ============================================ */

.badge {
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  display: inline-block;
}

.badge-success {
  background: #d1fae5;
  color: var(--success-green);
}

.badge-danger {
  background: #fee2e2;
  color: var(--danger-red);
}

.badge-warning {
  background: #fef3c7;
  color: #d97706;
}

.badge-info {
  background: #dbeafe;
  color: var(--info-blue);
}

.badge-primary {
  background: #dbeafe;
  color: var(--blue-primary);
}

/* ============================================
   ALERTS (Notification messages)
   ============================================ */

.alert {
  padding: 16px 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}

.alert-success {
  background: #d1fae5;
  color: #065f46;
  border-left: 4px solid var(--success-green);
}

.alert-danger {
  background: #fee2e2;
  color: #991b1b;
  border-left: 4px solid var(--danger-red);
}

.alert-warning {
  background: #fef3c7;
  color: #92400e;
  border-left: 4px solid var(--warning-yellow);
}

.alert-info {
  background: #dbeafe;
  color: #1e40af;
  border-left: 4px solid var(--info-blue);
}

/* ============================================
   MODALS (Pop-up dialogs)
   ============================================ */

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: var(--white);
  border-radius: 16px;
  padding: 32px;
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
  font-size: 24px;
  font-weight: 700;
  color: var(--brand-dark);
  margin-bottom: 20px;
}

.modal-footer {
  margin-top: 24px;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

/* ============================================
   LOADING SPINNER
   ============================================ */

.spinner {
  display: inline-block;
  width: 40px;
  height: 40px;
  border: 4px solid var(--light-gray);
  border-top-color: var(--blue-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }

.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

.p-1 { padding: 8px; }
.p-2 { padding: 16px; }
.p-3 { padding: 24px; }
.p-4 { padding: 32px; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }

.w-full { width: 100%; }
.h-full { height: 100%; }

.hidden { display: none !important; }

/* ============================================
   NAVIGATION MENU (Global site navigation)
   ============================================ */

.nav-menu {
  background: var(--white);
  padding: 12px 40px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  margin-bottom: 20px;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-menu ul {
  list-style: none;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
}

.nav-menu li {
  margin: 0;
}

.nav-menu a {
  text-decoration: none;
  color: var(--brand-dark);
  font-weight: 600;
  font-size: 14px;
  padding: 8px 16px;
  border-radius: 6px;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-menu a:hover {
  background: var(--light-gray);
  color: var(--blue-primary);
}

.nav-menu a.active {
  background: #000000;
  color: #ffffff;
}

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  background: #000000;
  color: #ffffff;
  border: none;
  padding: 10px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablets and below */
@media (max-width: 1024px) {
  .page-header {
    padding: 16px 24px;
  }
  
  .nav-menu {
    padding: 12px 24px;
  }
  
  .modal-content {
    width: 95%;
    padding: 24px;
  }
}

/* Mobile devices */
@media (max-width: 768px) {
  body {
    font-size: 14px;
  }
  
  .page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
  }
  
  .header-logo-section {
    width: 100%;
  }
  
  .header-logo-section h1 {
    font-size: 20px;
  }
  
  .header-logo-section img {
    height: 40px;
  }
  
  .page-title {
    font-size: 16px;
    width: 100%;
  }
  
  /* Mobile navigation */
  .nav-menu {
    padding: 12px 20px;
  }
  
  .nav-toggle {
    display: block;
    width: 100%;
  }
  
  .nav-menu ul {
    display: none;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
  }
  
  .nav-menu ul.active {
    display: flex;
  }
  
  .nav-menu a {
    width: 100%;
    padding: 12px 16px;
  }
  
  /* Cards and forms */
  .card {
    padding: 16px;
    margin-bottom: 16px;
    border-radius: 8px;
  }
  
  .card-header {
    font-size: 16px;
  }
  
  /* Tables */
  .table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .table {
    font-size: 12px;
    min-width: 600px;
  }
  
  .table th,
  .table td {
    padding: 8px 10px;
    white-space: nowrap;
  }
  
  /* Forms */
  input, select, textarea {
    font-size: 16px !important; /* Prevents zoom on iOS */
  }
  
  .form-row {
    flex-direction: column;
  }
  
  .form-group {
    width: 100% !important;
  }
  
  /* Buttons */
  .btn,
  button:not(.no-style) {
    padding: 12px 20px;
    font-size: 14px;
    width: 100%;
    justify-content: center;
  }
  
  .btn-group {
    flex-direction: column;
    gap: 8px;
  }
  
  /* Modals */
  .modal-content {
    width: 95%;
    padding: 20px;
    max-height: 85vh;
  }
  
  .modal-header {
    font-size: 18px;
  }
  
  .modal-footer {
    flex-direction: column;
  }
  
  .modal-footer .btn {
    width: 100%;
  }
}

/* Small mobile devices */
@media (max-width: 480px) {
  .header-logo-section h1 {
    font-size: 18px;
  }
  
  .header-logo-section img {
    height: 35px;
  }
  
  .page-title {
    font-size: 14px;
  }
  
  .card {
    padding: 12px;
  }
  
  .table {
    font-size: 11px;
  }
  
  .btn,
  button:not(.no-style) {
    padding: 10px 16px;
    font-size: 13px;
  }
}
