/* Main CSS for MGB POS System */
:root {
  --accent-color: #3b82f6;
  --accent-color-rgb: 59, 130, 246;
  --bg-primary: #ffffff;
  --bg-secondary: #f3f4f6;
  --text-primary: #111827;
  --text-secondary: #4b5563;
  --border-color: #e5e7eb;
  --border-radius: 0.375rem;
  --shadow-sm: 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);
}

/* Base styles */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text-primary);
  margin: 0;
  padding: 0;
}

/* Layout */
.fixed { position: fixed; }
.absolute { position: absolute; }
.relative { position: relative; }
.hidden { display: none !important; }
.flex { display: flex; }
.grid { display: grid; }

/* Position utilities */
.inset-0 {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.top-0 { top: 0; }
.left-0 { left: 0; }
.right-0 { right: 0; }
.top-12 { top: 3rem; }
.right-4 { right: 1rem; }

/* Z-index utilities */
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-50 { z-index: 50; }
.z-1000 { z-index: 1000; }

/* Dimensions */
.h-screen { height: 100vh; }
.h-full { height: 100%; }
.h-10 { height: 2.5rem; }
.h-20 { height: 5rem; }
.h-6 { height: 1.5rem; }
.h-8 { height: 2rem; }
.h-7 { height: 1.75rem; }
.h-30px { height: 30px; }
.h-calc-100vh-95px { height: calc(100vh - 95px); }
.h-calc-100vh-150px { height: calc(100vh - 150px); }
.h-calc-100vh-70px { height: calc(100vh - 70px); }
.h-calc-100-56px { height: calc(100% - 56px); }

.w-full { width: 100%; }
.w-8 { width: 2rem; }
.w-7 { width: 1.75rem; }
.w-90 { width: 90%; }

.min-w-100px { min-width: 100px; }
.min-w-160px { min-width: 160px; }
.min-w-300px { min-width: 300px; }

.max-w-500px { max-width: 500px; }
.max-h-80vh { max-height: 80vh; }
.max-w-md { max-width: 28rem; }
.max-w-1200px { max-width: 1200px; }
.max-w-1600px { max-width: 1600px; }

/* Flexbox utilities */
.flex-1 { flex: 1; }
.flex-2 { flex: 2; }
.flex-3 { flex: 3; }
.flex-shrink-0 { flex-shrink: 0; }
.flex-col { flex-direction: column; }
.flex-container { display: flex; }
.space-between { justify-content: space-between; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }

/* Gap utilities */
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }

.space-x-2 > :not(:first-child) {
  margin-left: 0.5rem;
}

/* Typography */
.text-white { color: white; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.font-size-xs { font-size: 0.75rem; }
.font-size-sm { font-size: 0.875rem; }
.font-size-base { font-size: 1rem; }
.font-size-lg { font-size: 1.125rem; }
.font-size-xl { font-size: 1.25rem; }
.font-size-2xl { font-size: 1.5rem; }
.font-size-4xl { font-size: 2.25rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-4xl { font-size: 2.25rem; }

.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }
.text-align-center { text-align: center; }
.text-align-right { text-align: right; }
.text-align-left { text-align: left; }
.align-left { text-align: left; }
.align-right { text-align: right; }
.align-center { text-align: center; }
.whitespace-nowrap { white-space: nowrap; }
.leading-tight { line-height: 1.25; }
.no-underline { text-decoration: none; }
.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.italic { font-style: italic; }

/* Backgrounds and colors */
.bg-white { background-color: white; }
.bg-black { background-color: black; }
.bg-transparent { background-color: transparent; }
.bg-green-500 { background-color: #10b981; }
.bg-red-500 { background-color: #ef4444; }
.bg-blue-500 { background-color: #3b82f6; }
.bg-bg-primary { background-color: var(--bg-primary); }
.bg-bg-secondary { background-color: var(--bg-secondary); }
.bg-accent-color { background-color: var(--accent-color); }
.bg-gray-200 { background-color: #e5e7eb; }

.text-text-primary { color: var(--text-primary); }
.text-text-secondary { color: var(--text-secondary); }
.text-accent-color { color: var(--accent-color); }
.text-gray-500 { color: #6b7280; }

.border-accent-color { border-color: var(--accent-color); }
.border-border-color { border-color: var(--border-color); }
.border-t-accent-color { border-top-color: var(--accent-color); }

/* Opacity utilities */
.bg-opacity-50 { background-color: rgba(var(--accent-color-rgb), 0.5); }
.bg-opacity-10 { background-color: rgba(var(--accent-color-rgb), 0.1); }
.opacity-50 { opacity: 0.5; }
.opacity-60 { opacity: 0.6; }

/* Spacing */
.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }

.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.px-1 { padding-left: 0.25rem; padding-right: 0.25rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }

.pt-5 { padding-top: 1.25rem; }
.pt-10 { padding-top: 2.5rem; }
.pb-2 { padding-bottom: 0.5rem; }
.pb-4 { padding-bottom: 1rem; }
.pl-5 { padding-left: 1.25rem; }

.m-0 { margin: 0; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mx-0-15rem { margin-left: 0.15rem; margin-right: 0.15rem; }
.my-1 { margin-top: 0.25rem; margin-bottom: 0.25rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.ml-5px { margin-left: 5px; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.mt-auto { margin-top: auto; }
.mt-45px { margin-top: 45px; }

/* Borders */
.border {
  border-width: 1px;
  border-style: solid;
  border-color: var(--border-color);
}
.border-0 { border-width: 0; }
.border-t { border-top-width: 1px; }
.border-b { border-bottom-width: 1px; }
.border-t-4 { border-top-width: 4px; }
.border-none { border-style: none; }

.rounded { border-radius: var(--border-radius); }
.rounded-md { border-radius: var(--border-radius); }
.rounded-lg { border-radius: 0.5rem; }
.rounded-full { border-radius: 9999px; }

/* Effects */
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.overflow-hidden { overflow: hidden; }
.overflow-x-auto { overflow-x: auto; }
.overflow-y-auto { overflow-y: auto; }
.rotate-1 { transform: rotate(1deg); }

/* Transitions */
.transition-transform {
  transition-property: transform;
  transition-timing-function: ease;
  transition-duration: 200ms;
}
.transition-colors {
  transition-property: background-color, border-color, color, fill, stroke;
  transition-timing-function: ease;
  transition-duration: 200ms;
}
.duration-200 { transition-duration: 200ms; }
.duration-300 { transition-duration: 300ms; }

/* Interactive states */
.hover-bg-34495e:hover { background-color: #34495e; }
.hover-translate-y-4px:hover { transform: translateY(-4px); }
.hover-shadow-md:hover { box-shadow: var(--shadow-md); }
.hover-translate-y-1:hover { transform: translateY(-0.25rem); }
.hover-bg-secondary:hover { background-color: var(--bg-secondary); }

.active-scale-98:active { transform: scale(0.98); }
.active-bg-secondary:active { background-color: var(--bg-secondary); }

.focus-ring:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(var(--accent-color-rgb), 0.5);
}
.focus-ring-accent:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--accent-color);
}
.focus-outline-none:focus { outline: none; }

.disabled-opacity-50:disabled { opacity: 0.5; }
.disabled-cursor-not-allowed:disabled { cursor: not-allowed; }

/* Other utilities */
.cursor-pointer { cursor: pointer; }
.cursor-move { cursor: move; }
.cursor-not-allowed { cursor: not-allowed; }
.resize-none { resize: none; }
.border-collapse { border-collapse: collapse; }

/* Component Styles */
.panel {
  display: none;
  width: 100%;
  height: 100%;
}

.panel.active {
  display: block;
}

.btn-primary {
  padding: 0.5rem 1rem;
  background-color: var(--accent-color);
  color: white;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-weight: 500;
}

.btn-primary:hover {
  background-color: #2563eb;
}

.btn-secondary {
  padding: 0.5rem 1rem;
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  cursor: pointer;
  font-weight: 500;
}

.btn-secondary:hover {
  background-color: #e5e7eb;
}

.btn-danger {
  padding: 0.5rem 1rem;
  background-color: #ef4444;
  color: white;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-weight: 500;
}

.btn-danger:hover {
  background-color: #dc2626;
}

/* Media Queries */
@media (min-width: 640px) {
  .sm-grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sm-grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .md-grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .md-grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .md-grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .lg-grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .lg-grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .lg-grid-cols-5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .lg-grid-cols-6 {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
} 