/* css/style.css */

/* --- LSI Print Switchboard: Global Aurora Theme --- */
:root {
  --bg-main: #0f172a;
  --card-bg: #ffffff;
  --text-light: #f8fafc;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  --accent-blue: #4f46e5;
  --hover-blue: #4338ca;
  --price-green: #059669;
}

*, *::before, *::after {
  box-sizing: border-box;
}

body, html {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--text-light);
  background-color: var(--bg-main); 
  background-image: 
    radial-gradient(circle at 15% 50%, rgba(59, 130, 246, 0.25), transparent 50%),
    radial-gradient(circle at 85% 30%, rgba(139, 92, 246, 0.2), transparent 50%),
    radial-gradient(circle at 50% 80%, rgba(14, 165, 233, 0.2), transparent 50%);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden; /* Fixes horizontal scrollbar overflow */
}

/* Typography Base */
h1, h2, h3, h4, h5, h6 { margin-top: 0; font-weight: 700; }
p { line-height: 1.6; }
a { text-decoration: none; transition: all 0.2s ease; }

/* Global Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: 12px; font-weight: 600; text-decoration: none;
  cursor: pointer; border: none; transition: all 0.2s ease; font-size: 1rem; color: #ffffff;
}
.btn-primary { background: var(--accent-blue); color: #ffffff !important; }
.btn-primary:hover { background: var(--hover-blue); box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3); }
.btn-secondary { background: #f1f5f9; color: var(--text-main) !important; border: 1px solid var(--border-color); }
.btn-secondary:hover { background: #e2e8f0; }
.btn-danger { background: #fee2e2; color: #dc2626 !important; border: 1px solid #fecaca; }
.btn-danger:hover { background: #fecaca; }

/* Global Forms */
label { display: block; margin-bottom: 8px; font-weight: 600; font-size: 0.9rem; color: var(--text-main); }
input[type="text"], input[type="email"], input[type="password"], input[type="number"], select, textarea {
  width: 100%; padding: 12px 16px; border-radius: 10px; border: 1px solid var(--border-color);
  background: #f8fafc; color: var(--text-main); box-sizing: border-box; transition: all 0.2s ease;
  font-family: inherit; font-size: 1rem;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent-blue); outline: none; background: #ffffff; box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1); }

/* Global Cards */
.card-panel { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 20px; box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1); color: var(--text-main); }

/* Utility Classes */
.text-center { text-align: center; }
.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; }

/* Alert Messages */
.alert { padding: 12px; border-radius: 8px; margin-bottom: 16px; font-size: 0.95rem; display: flex; align-items: center; gap: 10px; }
.alert-error { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.alert-success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }

/* Uniform Status Badges for Orders and Packages */
.badge-status-uniform {
  min-width: 145px;
  height: 34px;
  padding: 0 16px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  box-sizing: border-box;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
  white-space: nowrap;
}

/* Animated Printer Icon with Moving Paper */
.anim-printer-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25em;
  height: 1.25em;
  vertical-align: -2px;
}
.anim-printer-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.anim-printer-svg .paper-top {
  animation: paperSlideIn 1.5s ease-in-out infinite;
  transform-origin: center top;
}
.anim-printer-svg .paper-bottom {
  animation: paperSlideOut 1.5s ease-in-out infinite;
  transform-origin: center top;
}
@keyframes paperSlideIn {
  0%   { transform: translateY(0);    opacity: 0.85; }
  50%  { transform: translateY(3.5px); opacity: 0.2; }
  51%  { transform: translateY(-3px); opacity: 0;   }
  70%  { transform: translateY(-1px); opacity: 0.5; }
  100% { transform: translateY(0);    opacity: 0.85; }
}
@keyframes paperSlideOut {
  0%   { transform: translateY(-2px); opacity: 0.3; }
  50%  { transform: translateY(1.5px); opacity: 1;   }
  80%  { transform: translateY(3.5px); opacity: 0.9; }
  100% { transform: translateY(5.5px); opacity: 0;   }
}

i.anim-printer-paper, .anim-printer-paper {
  position: relative;
  display: inline-block;
  width: 1.2em;
  height: 1.1em;
  vertical-align: -2px;
}
i.anim-printer-paper::before, .anim-printer-paper::before {
  content: "\f02f";
  font-family: 'Font Awesome 5 Free', 'Font Awesome 6 Free';
  font-weight: 900;
  position: relative;
  z-index: 2;
  display: block;
}
i.anim-printer-paper::after, .anim-printer-paper::after {
  content: "";
  position: absolute;
  top: 1px;
  left: 3px;
  width: 8px;
  height: 11px;
  background: currentColor;
  opacity: 0.5;
  border-radius: 1px;
  z-index: 1;
  animation: paperFeedThrough 1.5s ease-in-out infinite;
}
@keyframes paperFeedThrough {
  0%   { transform: translateY(-2px); opacity: 0.8; }
  50%  { transform: translateY(2px);  opacity: 1;   }
  80%  { transform: translateY(4px);  opacity: 0.7; }
  100% { transform: translateY(6px);  opacity: 0;   }
}