/* ==========================================================================
   Medicare Pulse - Views Stylesheet
   Specific layouts for OP Tickets, Patient Directory, Lab Uploader, Billing, Pharmacy, Doctor Consultation, Summary Analytics, Hospital Services, Tele-Consultation, Vaccination & Expenses
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. OP Tickets & OPD Queue View
   -------------------------------------------------------------------------- */
.op-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 28px;
}

.live-queue-banner {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.15), rgba(16, 185, 129, 0.1));
  border: 1px solid rgba(6, 182, 212, 0.3);
  border-radius: var(--radius-xl);
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.queue-current-token {
  text-align: center;
  background: var(--bg-input);
  padding: 16px 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--primary-500);
  box-shadow: var(--shadow-glow);
}

.queue-token-number {
  font-family: var(--font-heading);
  font-size: 38px;
  font-weight: 800;
  color: var(--primary-400);
}

.queue-token-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
}

.doctor-slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.slot-btn {
  padding: 10px;
  border-radius: var(--radius-md);
  background: var(--bg-input);
  border: var(--glass-border);
  color: var(--text-main);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.slot-btn:hover {
  border-color: var(--primary-500);
  background: rgba(6, 182, 212, 0.1);
}

.slot-btn.selected {
  background: var(--primary-500);
  color: #fff;
  border-color: var(--primary-400);
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.4);
}

.op-ticket-card-pass {
  background: #ffffff;
  color: #0f172a;
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
  border-top: 6px solid var(--primary-500);
}

.pass-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px dashed #cbd5e1;
  padding-bottom: 16px;
  margin-bottom: 16px;
}

.pass-clinic-name {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
}

.pass-token-badge {
  background: #ecfeff;
  color: #0891b2;
  font-size: 20px;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid #a5f3fc;
}

.pass-detail-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 13px;
}

.pass-label {
  color: #64748b;
  font-weight: 500;
}

.pass-value {
  font-weight: 700;
  color: #0f172a;
}

.pass-qr-mock {
  width: 70px;
  height: 70px;
  background: #f1f5f9;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: #334155;
  margin: 16px auto 0 auto;
}

/* --------------------------------------------------------------------------
   2. Patient EMR & Records View
   -------------------------------------------------------------------------- */
.vitals-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.vital-box {
  background: var(--bg-input);
  border: var(--glass-border);
  padding: 16px;
  border-radius: var(--radius-lg);
  text-align: center;
}

.vital-val {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  color: var(--primary-400);
}

.vital-unit {
  font-size: 11px;
  color: var(--text-muted);
}

.timeline {
  position: relative;
  padding-left: 28px;
  border-left: 2px dashed rgba(6, 182, 212, 0.3);
  margin-top: 20px;
}

.timeline-item {
  position: relative;
  margin-bottom: 24px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -35px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary-500);
  box-shadow: 0 0 10px var(--primary-500);
}

.timeline-date {
  font-size: 12px;
  color: var(--primary-400);
  font-weight: 700;
  margin-bottom: 4px;
}

.timeline-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
}

.timeline-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* --------------------------------------------------------------------------
   3. Lab Test Upload & Results View
   -------------------------------------------------------------------------- */
.upload-dropzone {
  border: 2px dashed var(--primary-500);
  background: rgba(6, 182, 212, 0.04);
  border-radius: var(--radius-xl);
  padding: 40px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 28px;
}

.upload-dropzone:hover {
  background: rgba(6, 182, 212, 0.1);
  border-color: var(--primary-400);
}

.upload-icon {
  font-size: 48px;
  color: var(--primary-400);
  margin-bottom: 12px;
}

.param-table {
  width: 100%;
  margin-top: 16px;
}

.param-table td {
  padding: 10px 14px;
}

.range-normal {
  color: var(--emerald-500);
  font-weight: 600;
}

.range-high {
  color: var(--rose-500);
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   4. Billing & Invoicing View
   -------------------------------------------------------------------------- */
.billing-layout {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 28px;
}

.invoice-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: var(--glass-border);
}

.bill-summary-box {
  background: var(--bg-input);
  border: var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-top: 20px;
}

.bill-summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 14px;
  color: var(--text-muted);
}

.bill-summary-row.total {
  font-size: 20px;
  font-weight: 800;
  color: var(--emerald-500);
  border-top: 1px dashed var(--border-color);
  padding-top: 12px;
  margin-top: 12px;
}

.receipt-modal-paper {
  background: #ffffff;
  color: #0f172a;
  padding: 32px;
  border-radius: var(--radius-lg);
  font-family: var(--font-main);
}

.receipt-header {
  text-align: center;
  border-bottom: 2px dashed #cbd5e1;
  padding-bottom: 20px;
  margin-bottom: 20px;
}

.receipt-header h2 {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
}

.receipt-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

.receipt-table th {
  border-bottom: 2px solid #e2e8f0;
  text-align: left;
  padding: 8px 0;
  color: #475569;
}

.receipt-table td {
  border-bottom: 1px solid #f1f5f9;
  padding: 10px 0;
  color: #0f172a;
}

/* --------------------------------------------------------------------------
   5. Pharmacy & Inventory View
   -------------------------------------------------------------------------- */
.pharmacy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.drug-card {
  background: var(--glass-bg);
  border: var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  position: relative;
  transition: all 0.2s ease;
}

.drug-card:hover {
  border-color: var(--primary-500);
}

.drug-name {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
}

.drug-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

.drug-price-stock {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 12px;
  border-top: var(--glass-border);
}

.drug-price {
  font-weight: 800;
  font-size: 16px;
  color: var(--emerald-500);
}

/* --------------------------------------------------------------------------
   6. Doctor Clinical Consultation & e-Prescription (Rx) View
   -------------------------------------------------------------------------- */
.doctor-consult-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 28px;
}

.rx-builder-card {
  background: var(--bg-card);
  border: 2px solid var(--primary-500);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: 0 8px 30px rgba(6, 182, 212, 0.2);
  transition: all 0.3s ease;
}

body.light-mode .rx-builder-card {
  background: #ffffff;
  border-color: var(--primary-500);
  box-shadow: 0 10px 30px rgba(6, 182, 212, 0.15);
}

.rx-table-header {
  display: grid;
  grid-template-columns: 3fr 1.5fr 1.5fr 1.2fr 48px;
  gap: 14px;
  font-size: 13px;
  font-weight: 800;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 10px 14px;
  background: rgba(6, 182, 212, 0.12);
  border-radius: var(--radius-md);
  margin-bottom: 14px;
  border: 1px solid rgba(6, 182, 212, 0.25);
}

body.light-mode .rx-table-header {
  background: #ecfeff;
  color: #0891b2;
  border-color: #a5f3fc;
}

.rx-item-row {
  display: grid;
  grid-template-columns: 3fr 1.5fr 1.5fr 1.2fr 48px;
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  transition: all 0.2s ease;
}

body.light-mode .rx-item-row {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.rx-item-row:hover {
  border-color: var(--primary-500);
  box-shadow: 0 4px 14px rgba(6, 182, 212, 0.15);
}

.rx-item-row select.form-control {
  font-weight: 600;
  font-size: 13px;
}

/* --------------------------------------------------------------------------
   7. Daily & Weekly Summary Analytics View
   -------------------------------------------------------------------------- */
.period-filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-input);
  padding: 6px;
  border-radius: var(--radius-lg);
  border: var(--glass-border);
}

.period-filter-btn {
  padding: 8px 18px;
  border-radius: var(--radius-md);
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.period-filter-btn.active {
  background: var(--primary-500);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(6, 182, 212, 0.4);
}

/* --------------------------------------------------------------------------
   8. Hospital Services & Tariff Master View
   -------------------------------------------------------------------------- */
.service-cat-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.service-cat-tab {
  padding: 8px 16px;
  border-radius: var(--radius-md);
  background: var(--bg-input);
  border: var(--glass-border);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.service-cat-tab.active {
  background: var(--primary-500);
  color: #ffffff;
  border-color: var(--primary-400);
  box-shadow: 0 2px 10px rgba(6, 182, 212, 0.3);
}

/* --------------------------------------------------------------------------
   9. Jio KiviHealth Module Suite (TeleConsult, Video Studio)
   -------------------------------------------------------------------------- */
.teleconsult-screen {
  position: relative;
  width: 100%;
  height: 380px;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 2px solid var(--primary-500);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}
