/* ============================================
   PROFESSIONAL UI ENHANCEMENT STYLESHEET
   Mobile-First Responsive Design
   ============================================ */

:root {
  --primary-color: #667eea;
  --primary-dark: #5568d3;
  --primary-light: #7c8ff0;
  --secondary-color: #764ba2;
  --accent-color: #f093fb;
  --success-color: #06d6a0;
  --warning-color: #ffa500;
  --danger-color: #ef476f;
  --info-color: #118ab2;
  --light-bg: #f8f9fa;
  --dark-text: #2d3436;
  --medium-text: #636e72;
  --light-text: #95a5a6;
  --border-color: #dfe6e9;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   BASE TYPOGRAPHY
   ============================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 14px;
  scroll-behavior: smooth;
}

@media (min-width: 480px) {
  html { font-size: 14px; }
}

@media (min-width: 768px) {
  html { font-size: 15px; }
}

@media (min-width: 1024px) {
  html { font-size: 16px; }
}

@media (min-width: 1280px) {
  html { font-size: 17px; }
}

body {
  font-family: 'Segoe UI', 'Helvetica Neue', 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: white;
  color: var(--dark-text);
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

/* ============================================
   MAIN CONTAINER WITH PROPER SPACING
   ============================================ */

main {
  width: 100%;
  padding: 1.5rem 1rem !important;
  background-color: white;
  min-height: calc(100vh - 300px);
}

@media (min-width: 480px) {
  main {
    padding: 1.75rem 1.25rem !important;
  }
}

@media (min-width: 640px) {
  main {
    padding: 2rem 1.5rem !important;
  }
}

@media (min-width: 768px) {
  main {
    padding: 2.5rem 2rem !important;
  }
}

@media (min-width: 1024px) {
  main {
    padding: 3rem 2.5rem !important;
  }
}

@media (min-width: 1280px) {
  main {
    padding: 3rem 3rem !important;
    max-width: 1400px;
    margin: 0 auto !important;
  }
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--dark-text);
  margin-bottom: 0.5rem;
}

/* Mobile & Small Screens */
h1 { font-size: 1.5rem; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.1rem; }
h4 { font-size: 1rem; }
h5 { font-size: 0.95rem; }
h6 { font-size: 0.9rem; }

/* Tablet & Medium Screens */
@media (min-width: 640px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  h3 { font-size: 1.3rem; }
  h4 { font-size: 1.1rem; }
  h5 { font-size: 1rem; }
}

/* Laptop & Large Screens */
@media (min-width: 1024px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.5rem; }
  h4 { font-size: 1.25rem; }
  h5 { font-size: 1.1rem; }
}

/* Desktop & Extra Large Screens */
@media (min-width: 1280px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2.25rem; }
  h3 { font-size: 1.75rem; }
  h4 { font-size: 1.4rem; }
}

p {
  margin-bottom: 1rem;
  color: var(--medium-text);
}

/* ============================================
   NAVIGATION & HEADER
   ============================================ */

.navbar {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%) !important;
  box-shadow: var(--shadow-md) !important;
  padding: 0.75rem 0 !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 1000 !important;
}

.navbar-brand {
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.5px !important;
  color: white !important;
  display: flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
}

.navbar-brand i {
  font-size: 1.5rem !important;
}

@media (min-width: 640px) {
  .navbar {
    padding: 0.9rem 0 !important;
  }
  
  .navbar-brand {
    font-size: 1.4rem !important;
  }
  
  .navbar-brand i {
    font-size: 1.6rem !important;
  }
}

@media (min-width: 1024px) {
  .navbar {
    padding: 1rem 0 !important;
  }
  
  .navbar-brand {
    font-size: 1.6rem !important;
  }
  
  .navbar-brand i {
    font-size: 1.8rem !important;
  }
}

.nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 500 !important;
  font-size: 0.95rem !important;
  padding: 0.5rem 0.9rem !important;
  margin: 0.25rem !important;
  border-radius: var(--radius-sm) !important;
  transition: var(--transition) !important;
  display: flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  min-height: 44px !important;
}

.nav-link:hover {
  background-color: rgba(255, 255, 255, 0.15) !important;
  color: white !important;
  transform: translateY(-2px) !important;
}

@media (min-width: 768px) {
  .nav-link {
    font-size: 1rem !important;
    padding: 0.75rem 1.25rem !important;
    min-height: 48px !important;
  }
}

@media (min-width: 1024px) {
  .nav-link {
    font-size: 1.05rem !important;
    padding: 0.75rem 1.5rem !important;
  }
}

.navbar-toggler {
  border: 2px solid rgba(255, 255, 255, 0.5) !important;
  padding: 0.5rem;
}

.navbar-toggler-icon {
  filter: brightness(0) invert(1);
}

/* ============================================
   BUTTONS & CONTROLS
   ============================================ */

.btn {
  min-height: 44px;
  padding: 0.6rem 1.2rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  letter-spacing: 0.3px;
  box-shadow: var(--shadow-sm);
}

/* Mobile optimized buttons - full width */
@media (max-width: 640px) {
  .btn {
    min-height: 48px;
    padding: 0.7rem 1.4rem;
    font-size: 1rem;
    width: 100%;
  }
}

/* Tablet and above */
@media (min-width: 641px) {
  .btn {
    min-height: 44px;
    padding: 0.6rem 1.2rem;
    font-size: 0.95rem;
    width: auto;
  }
}

/* Laptop and above */
@media (min-width: 1024px) {
  .btn {
    min-height: 48px;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.btn:active {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light)) !important;
  color: white !important;
  border-color: var(--primary-color) !important;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-color)) !important;
  border-color: var(--primary-dark) !important;
  color: white !important;
}

.btn-success {
  background: linear-gradient(135deg, var(--success-color), #059b7f) !important;
  color: white !important;
  border-color: var(--success-color) !important;
}

.btn-success:hover {
  background: linear-gradient(135deg, #059b7f, var(--success-color)) !important;
  border-color: #059b7f !important;
  color: white !important;
}

.btn-danger {
  background: linear-gradient(135deg, var(--danger-color), #e63b68) !important;
  color: white !important;
  border-color: var(--danger-color) !important;
}

.btn-danger:hover {
  background: linear-gradient(135deg, #e63b68, var(--danger-color)) !important;
  border-color: #e63b68 !important;
  color: white !important;
}

/* Override Bootstrap info button */
.btn-info {
  background: linear-gradient(135deg, var(--info-color), #0a5f8f) !important;
  color: white !important;
  border-color: var(--info-color) !important;
}

.btn-info:hover {
  background: linear-gradient(135deg, #0a5f8f, var(--info-color)) !important;
  border-color: #0a5f8f !important;
  color: white !important;
}

.btn-outline-primary {
  background: white !important;
  color: var(--primary-color) !important;
  border: 2px solid var(--primary-color) !important;
}

.btn-outline-primary:hover {
  background: var(--primary-color) !important;
  color: white !important;
}

.btn-lg {
  min-height: 48px;
  padding: 0.9rem 1.8rem;
  font-size: 1rem;
}

@media (min-width: 1024px) {
  .btn-lg {
    min-height: 56px;
    padding: 1rem 2rem;
    font-size: 1.1rem;
  }
}

.btn-sm {
  min-height: 36px;
  padding: 0.4rem 0.8rem;
  font-size: 0.85rem;
}

@media (min-width: 1024px) {
  .btn-sm {
    min-height: 40px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ============================================
   FORMS & INPUTS
   ============================================ */

.form-control,
.form-select {
  min-height: 44px !important;
  padding: 0.6rem 0.9rem !important;
  font-size: 0.95rem !important;
  border: 2px solid var(--border-color) !important;
  border-radius: var(--radius-md) !important;
  font-family: inherit !important;
  transition: var(--transition) !important;
  background-color: white !important;
}

/* Mobile forms - larger touch targets */
@media (max-width: 640px) {
  .form-control,
  .form-select {
    min-height: 48px !important;
    padding: 0.7rem 1rem !important;
    font-size: 1rem !important;
  }
}

/* Tablet and above */
@media (min-width: 641px) {
  .form-control,
  .form-select {
    min-height: 44px !important;
    padding: 0.6rem 0.9rem !important;
    font-size: 0.95rem !important;
  }
}

/* Laptop and above */
@media (min-width: 1024px) {
  .form-control,
  .form-select {
    min-height: 48px !important;
    padding: 0.75rem 1rem !important;
    font-size: 1rem !important;
  }
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-color) !important;
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1) !important;
  outline: none !important;
}

.form-control::placeholder {
  color: var(--light-text) !important;
  font-weight: 500 !important;
}

.form-label {
  font-weight: 600 !important;
  color: var(--dark-text) !important;
  margin-bottom: 0.4rem !important;
  font-size: 0.9rem !important;
}

@media (min-width: 768px) {
  .form-label {
    margin-bottom: 0.5rem !important;
    font-size: 0.95rem !important;
  }
}

.form-group {
  margin-bottom: 1.5rem;
}

.input-group {
  display: flex;
  gap: 0.5rem;
}

.input-group .form-control {
  flex: 1;
}

/* CARDS & CONTAINERS */

.card {
  background: white !important;
  border: none !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: var(--shadow-sm) !important;
  margin-bottom: 1.5rem !important;
  overflow: hidden !important;
  transition: var(--transition) !important;
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  border: 1px solid var(--border-color) !important;
}

.card:hover {
  box-shadow: var(--shadow-lg) !important;
  transform: translateY(-8px) !important;
}

.card-header {
  background: linear-gradient(135deg, var(--light-bg), white) !important;
  border-bottom: 2px solid var(--border-color) !important;
  padding: 1.5rem !important;
  font-weight: 700 !important;
  font-size: 1.1rem !important;
  color: var(--dark-text) !important;
  text-align: center !important;
}

@media (min-width: 768px) {
  .card-header {
    padding: 1.75rem !important;
    font-size: 1.25rem !important;
  }
}

.card-body {
  padding: 1.5rem !important;
  flex-grow: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  text-align: center !important;
}

@media (min-width: 768px) {
  .card-body {
    padding: 1.75rem !important;
  }
}

.card-body i {
  font-size: 3rem !important;
  margin-bottom: 1rem !important;
  color: var(--primary-color) !important;
}

.card-body h5 {
  font-size: 1.15rem !important;
  margin-bottom: 1rem !important;
  word-wrap: break-word !important;
}

.card-body p {
  font-size: 0.95rem !important;
  color: var(--medium-text) !important;
  line-height: 1.6 !important;
  margin-bottom: 1rem !important;
}

.card-footer {
  background-color: var(--light-bg) !important;
  border-top: 1px solid var(--border-color) !important;
  padding: 1.25rem 1.5rem !important;
  margin-top: auto !important;
}

/* Section containers from catering-menu.css */
.section-container {
  background: white !important;
  border-radius: var(--radius-lg) !important;
  padding: 2rem !important;
  margin-bottom: 2rem !important;
  box-shadow: var(--shadow-sm) !important;
  border: none !important;
}

@media (max-width: 768px) {
  .section-container {
    padding: 1.5rem !important;
    margin-bottom: 1.5rem !important;
  }
}

.section-header {
  display: flex !important;
  align-items: center !important;
  margin-bottom: 2rem !important;
  border-bottom: 3px solid var(--primary-color) !important;
  padding-bottom: 1rem !important;
}

.section-icon {
  font-size: 2.5rem !important;
  margin-right: 1.5rem !important;
  color: var(--primary-color) !important;
}

.section-header h2 {
  margin: 0 !important;
  font-size: 1.8rem !important;
  color: var(--dark-text) !important;
  font-weight: 700 !important;
}

@media (max-width: 768px) {
  .section-header h2 {
    font-size: 1.5rem !important;
  }
}

.section-description {
  color: var(--medium-text) !important;
  font-size: 1rem !important;
  margin-bottom: 2rem !important;
  line-height: 1.6 !important;
}

/* ============================================
   HERO SECTIONS
   ============================================ */

.catering-hero {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%) !important;
  color: white !important;
  padding: 2rem 1rem !important;
  text-align: center !important;
  border-radius: var(--radius-lg) !important;
  margin-bottom: 1.5rem !important;
  position: relative !important;
  overflow: hidden !important;
}

@media (min-width: 640px) {
  .catering-hero {
    padding: 2.5rem 1.5rem !important;
    margin-bottom: 2rem !important;
  }
}

@media (min-width: 1024px) {
  .catering-hero {
    padding: 3rem 2rem !important;
    margin-bottom: 2rem !important;
  }
}

.catering-hero::before {
  content: '' !important;
  position: absolute !important;
  top: -50% !important;
  right: -50% !important;
  width: 100% !important;
  height: 100% !important;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%) !important;
  animation: pulse 4s ease-in-out infinite !important;
}

.catering-hero h1 {
  font-size: 1.75rem !important;
  margin-bottom: 0.75rem !important;
  position: relative !important;
  z-index: 1 !important;
}

@media (min-width: 640px) {
  .catering-hero h1 {
    font-size: 2rem !important;
    margin-bottom: 1rem !important;
  }
}

@media (min-width: 1024px) {
  .catering-hero h1 {
    font-size: 2.5rem !important;
    margin-bottom: 1.25rem !important;
  }
}

.catering-hero p {
  font-size: 1rem !important;
  margin-bottom: 0 !important;
  color: rgba(255, 255, 255, 0.95) !important;
  position: relative !important;
  z-index: 1 !important;
}

@media (min-width: 768px) {
  .catering-hero p {
    font-size: 1.1rem !important;
  }
}

.menu-hero {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%) !important;
  color: white !important;
  padding: 2rem 1rem !important;
  text-align: center !important;
  margin-bottom: 1.5rem !important;
  border-radius: var(--radius-lg) !important;
  position: relative !important;
  overflow: hidden !important;
}

@media (min-width: 768px) {
  .menu-hero {
    padding: 3rem 1.5rem !important;
    margin-bottom: 2rem !important;
  }
}

.menu-hero h1 {
  font-size: 2rem !important;
  font-weight: 700 !important;
  margin-bottom: 1rem !important;
  position: relative !important;
  z-index: 1 !important;
}

@media (min-width: 1024px) {
  .menu-hero h1 {
    font-size: 2.5rem !important;
  }
}

.menu-hero p {
  font-size: 1.1rem !important;
  opacity: 0.95 !important;
  max-width: 600px !important;
  margin: 0 auto !important;
  color: rgba(255, 255, 255, 0.95) !important;
  position: relative !important;
  z-index: 1 !important;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
}

/* ============================================
   MENU GRID & ITEMS
   ============================================ */

.menu-grid {
  display: grid;
  gap: 1rem;
  margin: 1.5rem 0;
}

/* Mobile - single column */
@media (max-width: 480px) {
  .menu-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* Small mobile - still single column */
@media (min-width: 481px) and (max-width: 640px) {
  .menu-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
}

/* Tablet portrait - 2 columns */
@media (min-width: 641px) and (max-width: 768px) {
  .menu-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
    margin: 1.5rem 0;
  }
}

/* Tablet landscape - 2-3 columns */
@media (min-width: 769px) and (max-width: 1024px) {
  .menu-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
  }
}

/* Laptop - 3 columns */
@media (min-width: 1025px) and (max-width: 1280px) {
  .menu-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
  }
}

/* Desktop - 3-4 columns */
@media (min-width: 1281px) {
  .menu-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
  }
}

.menu-item-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 1.2rem;
  box-shadow: var(--shadow-sm);
  border: 2px solid transparent;
  transition: var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Enhance padding on tablets and larger */
@media (min-width: 768px) {
  .menu-item-card {
    padding: 1.5rem;
    gap: 0.75rem;
  }
}

.menu-item-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.menu-item-card.selected {
  background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
  border-color: var(--primary-color);
  box-shadow: inset 0 0 0 2px var(--primary-color);
}

.menu-item-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark-text);
}

@media (min-width: 768px) {
  .menu-item-name {
    font-size: 1.1rem;
  }
}

.menu-item-description {
  font-size: 0.85rem;
  color: var(--medium-text);
  margin: 0.3rem 0;
  line-height: 1.4;
}

@media (min-width: 768px) {
  .menu-item-description {
    font-size: 0.9rem;
    margin: 0.5rem 0;
  }
}

.menu-item-price {
  font-size: 1.3rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--success-color), #059b7f);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-top: 0.5rem;
}

@media (min-width: 1024px) {
  .menu-item-price {
    font-size: 1.4rem;
  }
}

.menu-item-partner {
  font-size: 0.8rem;
  color: var(--light-text);
  font-weight: 500;
  margin-top: 0.4rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border-color);
}

@media (min-width: 768px) {
  .menu-item-partner {
    font-size: 0.85rem;
    margin-top: 0.5rem;
    padding-top: 0.75rem;
  }
}

/* ============================================
   QR CODE CARDS
   ============================================ */

.qr-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 2px solid transparent;
}

.qr-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-color);
}

.qr-card h3 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--dark-text);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.qr-card i {
  font-size: 1.5rem;
  color: var(--primary-color);
}

.qr-card img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
}

.qr-card p {
  font-size: 0.9rem;
  color: var(--medium-text);
  margin: 0;
}

/* ============================================
   ALERTS & MESSAGES
   ============================================ */

.alert {
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  border-left: 4px solid;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  font-weight: 500;
}

.alert-success {
  background-color: #ecfdf5;
  border-left-color: var(--success-color);
  color: #065f46;
}

.alert-danger {
  background-color: #fef2f2;
  border-left-color: var(--danger-color);
  color: #7f1d1d;
}

.alert-warning {
  background-color: #fffbeb;
  border-left-color: var(--warning-color);
  color: #78350f;
}

.alert-info {
  background-color: #ecf7ff;
  border-left-color: var(--info-color);
  color: #003d5c;
}

.alert i {
  font-size: 1.5rem;
  flex-shrink: 0;
}

/* ============================================
   RESPONSIVE LAYOUT
   ============================================ */

/* ============================================
   RESPONSIVE LAYOUT
   ============================================ */

.container {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 0.75rem;
}

/* Small mobile (SM) */
@media (min-width: 320px) {
  .container {
    max-width: 100%;
    padding: 0 0.75rem;
  }
}

/* Tablet portrait (MD) */
@media (min-width: 640px) {
  .container {
    max-width: 640px;
    padding: 0 1rem;
  }
}

/* Tablet landscape (LG) */
@media (min-width: 768px) {
  .container {
    max-width: 768px;
    padding: 0 1rem;
  }
}

/* Laptop (XL) */
@media (min-width: 1024px) {
  .container {
    max-width: 1024px;
    padding: 0 1.25rem;
  }
}

/* Desktop (2XL) */
@media (min-width: 1280px) {
  .container {
    max-width: 1200px;
    padding: 0 1.5rem;
  }
}

/* Large desktop (3XL) */
@media (min-width: 1536px) {
  .container {
    max-width: 1400px;
    padding: 0 2rem;
  }
}

.row {
  display: grid !important;
  gap: 1.5rem !important;
  margin-bottom: 2rem !important;
}

/* Mobile: 1 column */
@media (max-width: 640px) {
  .row {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }
}

/* Tablet: 2 columns */
@media (min-width: 641px) and (max-width: 1023px) {
  .row {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.5rem !important;
  }
}

/* Desktop: 3 columns */
@media (min-width: 1024px) {
  .row {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 2rem !important;
  }
}

/* 4 column layout on large desktop */
@media (min-width: 1536px) {
  .row {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 2rem !important;
  }
}

.col-lg-4,
.col-md-6,
.col-12 {
  width: 100% !important;
  max-width: 100% !important;
}

/* ============================================
   UTILITIES
   ============================================ */

.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

.shadow { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }

.rounded { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }

.opacity-50 { opacity: 0.5; }
.opacity-75 { opacity: 0.75; }

/* ============================================
   MOBILE TOUCH OPTIMIZATIONS
   ============================================ */

/* Extra small mobile (XS) - 320px to 480px */
@media (max-width: 480px) {
  body {
    font-size: 0.9rem;
  }
  
  .btn {
    min-height: 48px;
    padding: 0.7rem 1rem;
    width: 100%;
    font-size: 1rem;
  }
  
  .form-control,
  .form-select {
    min-height: 48px;
    padding: 0.7rem 1rem;
    font-size: 1rem;
  }
}

/* Small mobile (SM) - 481px to 640px */
@media (min-width: 481px) and (max-width: 640px) {
  body {
    font-size: 0.93rem;
  }
  
  .btn {
    min-height: 48px;
    width: 100%;
  }
  
  .form-control,
  .form-select {
    min-height: 48px;
  }
}

/* Tablet portrait (MD) - 641px to 768px */
@media (min-width: 641px) and (max-width: 768px) {
  .btn {
    width: auto;
    min-height: 44px;
  }
  
  .form-control,
  .form-select {
    min-height: 44px;
  }
}

/* Tablet and larger - responsive button groups */
@media (max-width: 640px) {
  .btn-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .btn-group .btn {
    width: 100%;
  }
  
  .sidebar {
    margin-top: 2rem;
  }
}

/* Compact spacing on small screens */
@media (max-width: 640px) {
  .card {
    margin-bottom: 1rem;
  }
  
  .card-body {
    padding: 1rem;
  }
  
  .qr-card {
    padding: 1rem;
    margin-bottom: 1rem;
  }
}

/* Better spacing on larger screens */
@media (min-width: 1024px) {
  .card {
    margin-bottom: 1.5rem;
  }
  
  .card-body {
    padding: 2rem;
  }
  
  .qr-card {
    padding: 1.5rem;
  }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

a:focus,
button:focus,
input:focus,
select:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

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