/* =========================================================
   Radiology Department - Styles
   Dark theme matching the screenshots
   ========================================================= */

.rad-page {
  min-height: 100vh;
  background: #0a1018;
  color: #e2e8f0;
  font-family: 'Inter', -apple-system, sans-serif;
  padding-bottom: 80px;
  max-width: 480px;
  margin: 0 auto;
}

/* Header */
.rad-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: #0f1923;
  border-bottom: 1px solid #1e293b;
}

.rad-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rad-logo {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, #14b8a6, #0d9488);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
}

.rad-brand-title {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #e2e8f0;
  line-height: 1.2;
}

.rad-header-right {
  display: flex;
  gap: 12px;
}

.rad-icon-btn {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 18px;
  cursor: pointer;
  padding: 6px;
}

/* Department Header */
.rad-dept-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 16px;
  background: #0f1923;
}

.rad-dept-left {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.rad-back-btn {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 18px;
  cursor: pointer;
  padding: 4px;
  margin-top: 4px;
}

.rad-dept-title {
  font-size: 20px;
  font-weight: 700;
  color: #f1f5f9;
  line-height: 1.2;
  margin: 0;
}

.rad-dept-sub {
  font-size: 12px;
  color: #64748b;
  margin: 4px 0 0;
  line-height: 1.3;
}

.rad-my-scans-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 20px;
  padding: 8px 14px;
  color: #e2e8f0;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
}

/* Tabs */
.rad-tabs {
  display: flex;
  padding: 0 16px;
  gap: 0;
  background: #0f1923;
  border-bottom: 1px solid #1e293b;
}

.rad-tab {
  flex: 1;
  padding: 12px 8px;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  color: #64748b;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all .2s;
}

.rad-tab.active {
  color: #14b8a6;
  border-bottom-color: #14b8a6;
}

/* Content */
.rad-content {
  padding: 0;
}

.rad-book-tab {
  padding: 16px;
}

/* Search */
.rad-search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 12px;
}

.rad-search i {
  color: #64748b;
  font-size: 14px;
}

.rad-search input {
  background: none;
  border: none;
  outline: none;
  color: #e2e8f0;
  font-size: 14px;
  flex: 1;
  width: 100%;
}

.rad-search input::placeholder {
  color: #64748b;
}

/* AI Suggestion */
.rad-ai-suggestion {
  display: flex;
  gap: 10px;
  background: #14b8a620;
  border: 1px solid #14b8a640;
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 14px;
}

.rad-ai-suggestion > i {
  color: #14b8a6;
  font-size: 16px;
  margin-top: 2px;
}

.rad-ai-suggestion strong {
  color: #14b8a6;
  font-size: 13px;
}

.rad-ai-suggestion p {
  color: #94a3b8;
  font-size: 12px;
  margin: 2px 0 0;
  line-height: 1.4;
}

/* Category Filters */
.rad-categories {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 12px;
  margin-bottom: 16px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.rad-categories::-webkit-scrollbar { display: none; }

.rad-cat-chip {
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid #334155;
  background: #1e293b;
  color: #94a3b8;
  cursor: pointer;
  white-space: nowrap;
  transition: all .2s;
}

.rad-cat-chip.active {
  background: #14b8a6;
  color: #fff;
  border-color: #14b8a6;
}

/* Centers Section */
.rad-section-title {
  font-size: 15px;
  font-weight: 600;
  color: #f1f5f9;
  margin: 0 0 12px;
}

.rad-centers-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 12px;
  margin-bottom: 20px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.rad-centers-scroll::-webkit-scrollbar { display: none; }

.rad-center-card {
  min-width: 160px;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 12px;
  padding: 12px;
  cursor: pointer;
  transition: all .2s;
}

.rad-center-card.selected {
  border-color: #14b8a6;
  background: #14b8a610;
}

.rad-center-img {
  width: 100%;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  background: #334155;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.rad-center-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rad-center-img i {
  font-size: 24px;
  color: #64748b;
}

.rad-center-name {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #e2e8f0;
  margin-bottom: 2px;
}

.rad-center-rating {
  font-size: 11px;
  color: #fbbf24;
}

.rad-center-rating i {
  font-size: 10px;
}

.rad-center-badges {
  display: flex;
  gap: 4px;
  margin-top: 6px;
}

.rad-badge {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  background: #14b8a620;
  color: #14b8a6;
  font-weight: 500;
}

/* Scan Cards */
.rad-scans-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rad-scan-card {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 12px;
  padding: 14px;
}

.rad-scan-top {
  display: flex;
  gap: 12px;
}

.rad-scan-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #14b8a620;
  color: #14b8a6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.rad-scan-info {
  flex: 1;
  min-width: 0;
}

.rad-scan-name {
  font-size: 14px;
  font-weight: 600;
  color: #f1f5f9;
  margin: 0 0 2px;
}

.rad-scan-desc {
  font-size: 12px;
  color: #94a3b8;
  margin: 0 0 2px;
}

.rad-scan-prep {
  font-size: 11px;
  color: #64748b;
  margin: 0 0 6px;
}

.rad-scan-badges {
  display: flex;
  gap: 8px;
  align-items: center;
}

.rad-scan-badge {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 4px;
  background: #334155;
  color: #94a3b8;
  font-weight: 500;
}

.rad-scan-turnaround {
  font-size: 11px;
  color: #64748b;
}

.rad-scan-turnaround i {
  font-size: 10px;
  margin-right: 3px;
}

.rad-scan-price-area {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}

.rad-scan-old-price {
  font-size: 11px;
  color: #64748b;
  text-decoration: line-through;
}

.rad-scan-price {
  font-size: 15px;
  font-weight: 700;
  color: #14b8a6;
}

.rad-book-btn {
  padding: 6px 14px;
  border-radius: 6px;
  background: #14b8a6;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.rad-book-btn:active {
  transform: scale(0.95);
}

/* Empty state */
.rad-empty {
  text-align: center;
  color: #64748b;
  padding: 30px 0;
  font-size: 14px;
}

.rad-empty-state {
  text-align: center;
  padding: 60px 20px;
}

.rad-empty-state i {
  font-size: 48px;
  color: #334155;
  margin-bottom: 16px;
}

.rad-empty-state h3 {
  font-size: 18px;
  color: #e2e8f0;
  margin: 0 0 8px;
}

.rad-empty-state p {
  font-size: 14px;
  color: #64748b;
  margin: 0 0 20px;
}

.rad-empty-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.rad-btn-primary {
  padding: 10px 24px;
  border-radius: 8px;
  background: #14b8a6;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
}

.rad-btn-outline {
  padding: 10px 18px;
  border-radius: 8px;
  background: none;
  border: 1px solid #334155;
  color: #e2e8f0;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

/* AI Tab */
.rad-ai-tab {
  padding: 40px 20px;
  text-align: center;
}

.rad-ai-hero {
  margin-bottom: 30px;
}

.rad-ai-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #14b8a620;
  color: #14b8a6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  margin: 0 auto 16px;
}

.rad-ai-hero h3 {
  font-size: 20px;
  font-weight: 700;
  color: #f1f5f9;
  margin: 0 0 8px;
}

.rad-ai-hero p {
  font-size: 14px;
  color: #94a3b8;
  margin: 0;
}

.rad-ai-info {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 12px;
  padding: 16px 20px;
  text-align: left;
  margin-bottom: 24px;
}

.rad-ai-info h4 {
  font-size: 14px;
  font-weight: 600;
  color: #e2e8f0;
  margin: 0 0 10px;
}

.rad-ai-info ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.rad-ai-info li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #94a3b8;
  padding: 6px 0;
}

.rad-ai-info li i {
  color: #14b8a6;
  font-size: 12px;
}

.rad-upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 12px;
  background: linear-gradient(135deg, #14b8a6, #0d9488);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
}

/* Reports */
.rad-reports-list {
  padding: 16px;
}

.rad-report-card {
  display: flex;
  gap: 12px;
  align-items: center;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 10px;
}

.rad-report-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #14b8a620;
  color: #14b8a6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.rad-report-info h4 {
  font-size: 14px;
  font-weight: 600;
  color: #e2e8f0;
  margin: 0 0 2px;
}

.rad-report-info p {
  font-size: 12px;
  color: #64748b;
  margin: 0 0 4px;
}

.rad-report-status {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 4px;
  background: #334155;
  color: #94a3b8;
}

.rad-report-status.completed { background: #14b8a620; color: #14b8a6; }
.rad-report-status.pending { background: #f59e0b20; color: #f59e0b; }

/* Modal */
.rad-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  transition: opacity .3s;
}

.rad-modal-overlay.show {
  opacity: 1;
}

.rad-modal {
  background: #1a2332;
  border-radius: 20px 20px 0 0;
  width: 100%;
  max-width: 480px;
  max-height: 85vh;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform .3s;
}

.rad-modal-overlay.show .rad-modal {
  transform: translateY(0);
}

.rad-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid #334155;
}

.rad-modal-header h3 {
  font-size: 17px;
  font-weight: 600;
  color: #f1f5f9;
  margin: 0;
}

.rad-modal-close {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 18px;
  cursor: pointer;
}

.rad-modal-body {
  padding: 16px 20px;
}

.rad-booking-scan {
  display: flex;
  gap: 12px;
  align-items: center;
  background: #0f1923;
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 14px;
}

.rad-booking-scan-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #14b8a620;
  color: #14b8a6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.rad-booking-scan strong {
  font-size: 14px;
  color: #f1f5f9;
  display: block;
}

.rad-booking-scan p {
  font-size: 12px;
  color: #64748b;
  margin: 2px 0 0;
}

.rad-prep-guide {
  display: flex;
  gap: 10px;
  background: #f59e0b15;
  border: 1px solid #f59e0b40;
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 14px;
}

.rad-prep-guide > i {
  color: #f59e0b;
  font-size: 14px;
  margin-top: 2px;
}

.rad-prep-guide strong {
  font-size: 13px;
  color: #f59e0b;
  display: block;
}

.rad-prep-guide p {
  font-size: 12px;
  color: #94a3b8;
  margin: 2px 0 0;
}

.rad-home-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #0f1923;
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 14px;
}

.rad-home-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rad-home-info > i {
  color: #14b8a6;
  font-size: 16px;
}

.rad-home-info strong {
  font-size: 13px;
  color: #e2e8f0;
  display: block;
}

.rad-home-info p {
  font-size: 11px;
  color: #64748b;
  margin: 2px 0 0;
}

/* Toggle Switch */
.rad-switch {
  position: relative;
  width: 44px;
  height: 24px;
}

.rad-switch input { opacity: 0; width: 0; height: 0; }

.rad-slider {
  position: absolute;
  inset: 0;
  background: #334155;
  border-radius: 24px;
  cursor: pointer;
  transition: .3s;
}

.rad-slider:before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: .3s;
}

.rad-switch input:checked + .rad-slider {
  background: #14b8a6;
}

.rad-switch input:checked + .rad-slider:before {
  transform: translateX(20px);
}

/* Date/Time */
.rad-booking-datetime {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.rad-field label {
  font-size: 12px;
  color: #94a3b8;
  display: block;
  margin-bottom: 4px;
}

.rad-field select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  background: #0f1923;
  border: 1px solid #334155;
  color: #e2e8f0;
  font-size: 13px;
  appearance: none;
  -webkit-appearance: none;
}

/* Price Summary */
.rad-price-summary {
  background: #0f1923;
  border-radius: 10px;
  padding: 12px;
}

.rad-price-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #94a3b8;
  padding: 4px 0;
}

.rad-price-row.total {
  border-top: 1px solid #334155;
  padding-top: 8px;
  margin-top: 4px;
  font-weight: 700;
  color: #f1f5f9;
}

.rad-total-price {
  color: #14b8a6 !important;
}

/* Modal Footer */
.rad-modal-footer {
  display: flex;
  gap: 10px;
  padding: 16px 20px;
  border-top: 1px solid #334155;
}

.rad-btn-cancel {
  flex: 1;
  padding: 12px;
  border-radius: 10px;
  background: #1e293b;
  border: 1px solid #334155;
  color: #e2e8f0;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.rad-btn-confirm {
  flex: 1.5;
  padding: 12px;
  border-radius: 10px;
  background: #14b8a6;
  border: none;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

/* Bottom Nav */
.rad-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: #0f1923;
  border-top: 1px solid #1e293b;
  padding: 8px 0;
  z-index: 100;
}

.rad-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-decoration: none;
  color: #64748b;
  font-size: 10px;
  padding: 4px 8px;
}

.rad-nav-item.active {
  color: #14b8a6;
}

.rad-nav-item i {
  font-size: 18px;
}
