/* ═══ Pharmacist Page CSS ═══ */

/* Warning Banner */
.warning-banner {
  background: #b91c1c;
  background: linear-gradient(135deg, #991b1b 0%, #b91c1c 50%, #991b1b 100%);
  color: #fff;
  padding: .85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-align: center;
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.6;
  border-bottom: 3px solid #7f1d1d;
  position: sticky;
  top: 0;
  z-index: 101;
  box-shadow: 0 3px 12px rgba(153,27,27,.5);
  animation: warnPulse 2.5s ease-in-out infinite;
}
.warning-banner strong {
  font-size: 1.05rem;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.warning-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
}
.warning-text {
  max-width: 820px;
}
@keyframes warnPulse {
  0%, 100% { box-shadow: 0 3px 12px rgba(153,27,27,.5); }
  50%       { box-shadow: 0 3px 24px rgba(153,27,27,.9); }
}
@media (max-width: 600px) {
  .warning-banner { font-size: .82rem; padding: .75rem 1rem; gap: .6rem; }
  .warning-icon   { font-size: 1.1rem; }
}

/* Info Banner */
.info-banner {
  background: #f0fdf4;
  border-bottom: 2px solid #86efac;
  color: #15803d;
  padding: .6rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  text-align: center;
  font-size: .9rem;
  font-weight: 600;
}
.info-banner strong { font-weight: 800; }
.info-banner-icon { font-size: 1.1rem; flex-shrink: 0; }
@media (max-width: 600px) {
  .info-banner { font-size: .82rem; padding: .5rem 1rem; }
}

/* Setup Screen */
.setup-screen {
  min-height: calc(100vh - 64px);
  display: flex; align-items: center; justify-content: center;
  padding: 2rem 1rem;
  background: linear-gradient(160deg, var(--gray-50) 0%, #e8f0fb 100%);
}
.setup-card {
  background: var(--white);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  width: 100%; max-width: 460px;
  box-shadow: var(--shadow-lg);
  text-align: center;
}
.setup-icon { font-size: 3rem; margin-bottom: 1rem; }
.setup-card h2 { margin-bottom: .5rem; }

/* Shift Buttons */
.shift-btns { display: flex; gap: .75rem; margin-top: .4rem; }
.shift-btn {
  flex: 1; padding: .75rem; border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm); background: var(--white);
  font-size: 1rem; font-weight: 600; cursor: pointer;
  transition: var(--transition); font-family: inherit;
}
.shift-btn:hover   { border-color: var(--blue-mid); color: var(--blue-mid); }
.shift-btn.active  { border-color: var(--blue-mid); background: var(--blue-mid); color: var(--white); }

/* Sticky Bar */
.sticky-bar {
  position: sticky; top: 64px; z-index: 50; /* below warning(101) and header(100) */
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: .75rem 1.5rem;
  display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap;
  box-shadow: 0 2px 8px rgba(15,36,83,.07);
}
.sticky-info { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.sticky-item { display: flex; flex-direction: column; }
.si-label { font-size: .7rem; color: var(--gray-400); text-transform: uppercase; }
.si-val   { font-size: .9rem; font-weight: 700; color: var(--navy); }
.sticky-progress { flex: 1; min-width: 200px; }

/* Product Card */
.product-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1.5px solid var(--gray-200);
  margin-bottom: 1rem;
  overflow: hidden;
  transition: var(--transition);
}
.product-card:hover { border-color: var(--blue-light); box-shadow: var(--shadow); }
.product-card.status-completed { border-color: #86efac; }
.product-card.status-main_uploaded { border-color: #7dd3fc; }

.product-header {
  padding: 1rem 1.25rem;
  display: flex; align-items: center; justify-content: space-between;
  cursor: pointer; user-select: none;
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
}
.product-header:hover { background: #eef2ff; }
.product-meta  { display: flex; align-items: center; gap: .75rem; }
.product-sku   { font-size:.75rem; font-weight:700; background:var(--blue); color:var(--white); padding:.2rem .6rem; border-radius:6px; }
.product-name  { font-weight: 600; color: var(--navy); font-size: .95rem; }
.product-toggle { font-size: 1rem; color: var(--gray-400); transition: transform .2s; }
.product-card.open .product-toggle { transform: rotate(180deg); }

.product-body { display: none; padding: 1.25rem; }
.product-card.open .product-body { display: block; }

/* Upload Zones */
.upload-zones { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.upload-zone {
  border: 2px dashed var(--gray-200);
  border-radius: var(--radius);
  padding: 1.5rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}
.upload-zone:hover, .upload-zone.drag-over {
  border-color: var(--blue-mid);
  background: #eef2ff;
}
.upload-zone.zone-main:hover, .upload-zone.zone-main.drag-over {
  border-color: var(--teal);
  background: #f0fdf4;
}
.upload-zone input[type=file] { display: none; }
.zone-icon  { font-size: 2rem; margin-bottom: .5rem; }
.zone-label { font-size: .85rem; font-weight: 600; color: var(--gray-600); }
.zone-sub   { font-size: .75rem; color: var(--gray-400); margin-top: .25rem; }
.zone-uploading .zone-icon { animation: pulse .8s infinite alternate; }
@keyframes pulse { from { opacity:.5; } to { opacity:1; } }

/* Thumbnails in card */
.uploaded-images { margin-top: .75rem; }
.uploaded-images-label { font-size: .8rem; font-weight: 600; color: var(--gray-600); margin-bottom: .5rem; }

/* Status bar */
.product-status-bar {
  display: flex; align-items: center; gap: .75rem;
  padding: .6rem 1rem;
  border-top: 1px solid var(--gray-100);
  background: var(--gray-50);
  font-size: .8rem; color: var(--gray-600);
}
.status-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.status-dot.pending       { background: var(--warning); }
.status-dot.main_uploaded { background: var(--info); }
.status-dot.completed     { background: var(--success); }

@media (max-width: 600px) {
  .upload-zones { grid-template-columns: 1fr; }
  .sticky-bar { padding: .6rem 1rem; gap: 1rem; }
}
