/* ================================================================
   TECHCARE SERVICE PROVIDER (ENGINEER) APP STYLES
   Theme: Modern Tech Blue & White with Fluid Animations
   ================================================================ */

/* Auth Section Styles */
.auth-section {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2.5rem 0;
  animation: fadeInUp 0.4s ease both;
}

.auth-card {
  width: 100%;
  max-width: 560px;
  background: #ffffff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  border: 1.5px solid var(--border);
  overflow: hidden;
  transition: var(--transition-smooth);
}

.auth-card:hover {
  border-color: #bfdbfe;
}

.auth-header {
  padding: 2.25rem 2rem 1.35rem 2rem;
  text-align: center;
  background: linear-gradient(180deg, #eff6ff 0%, #ffffff 100%);
  border-bottom: 1px solid var(--border);
}

.auth-logo-badge {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border: 2px solid #3b82f6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2.3rem;
  margin-bottom: 1rem;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.2);
  animation: pulseDot 2.5s infinite ease-in-out;
}

.auth-header h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}

.auth-tabs {
  display: flex;
  gap: 0.4rem;
  background: #f1f5f9;
  padding: 4px;
  border-radius: var(--radius-full);
  margin-top: 1.25rem;
}

.auth-tab-btn {
  flex: 1;
  padding: 0.65rem 0.75rem;
  border: none;
  background: transparent;
  font-size: 0.88rem;
  font-weight: 700;
  color: #64748b;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.auth-tab-btn.active {
  background: #ffffff;
  color: #2563eb;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.auth-body {
  padding: 1.85rem 2rem 2.25rem 2rem;
}

.auth-notice {
  padding: 0.85rem 1.15rem;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  margin-bottom: 1.25rem;
  line-height: 1.5;
  animation: fadeInDown 0.25s ease;
}

.auth-notice.notice-warning {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
}

.auth-notice.notice-danger {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.auth-notice.notice-success {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
}

.alert-info-box {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-md);
  padding: 0.85rem 1.1rem;
  font-size: 0.84rem;
  color: #1e40af;
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.quick-hint-box {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  font-size: 0.82rem;
  color: #475569;
}

.quick-hint-box code {
  background: #eff6ff;
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  color: #1d4ed8;
  font-weight: 700;
  border: 1px solid #bfdbfe;
}

/* Auth User Pill in Header */
.auth-user-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #ffffff;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  border: 1px solid #cbd5e1;
  font-size: 0.84rem;
  font-weight: 700;
  color: #0f172a;
}

.auth-avatar {
  font-size: 1.2rem;
}

/* Engineer Hero Profile Banner */
.provider-banner {
  padding: 1.75rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.75rem;
  margin-bottom: 1.75rem;
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  color: #ffffff;
  border-radius: var(--radius-xl);
  box-shadow: 0 16px 30px -5px rgba(37, 99, 235, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.15);
  animation: fadeInUp 0.4s ease both;
}

.provider-profile-info {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.provider-avatar-circle {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border: 2px solid rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.3rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
}

.provider-name-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
  flex-wrap: wrap;
}

.provider-name-row h2 {
  font-size: 1.55rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.status-online-pill {
  font-size: 0.72rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(6px);
  color: #ffffff;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.banner-contact-chips {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.4rem;
  flex-wrap: wrap;
}

.chip {
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(6px);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.provider-quick-stats {
  display: flex;
  gap: 1rem;
}

.stat-box {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  padding: 0.85rem 1.25rem;
  text-align: center;
  min-width: 100px;
  transition: transform 0.2s;
}

.stat-box:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.18);
}

.stat-num {
  display: block;
  font-size: 1.5rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.1;
}

.stat-lbl {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #bfdbfe;
  letter-spacing: 0.04em;
  margin-top: 0.2rem;
  display: block;
}

/* Tab Navigation Bar */
.provider-tabs-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid #e2e8f0;
  margin-bottom: 1.75rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.provider-tabs {
  display: flex;
  gap: 0.5rem;
}

.tab-btn {
  padding: 0.75rem 1.25rem;
  background: transparent;
  border: none;
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: var(--transition-smooth);
}

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

.tab-btn.active {
  color: #2563eb;
  border-bottom-color: #2563eb;
}

.badge-count {
  background: #f1f5f9;
  color: #334155;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-full);
}

.tab-btn.active .badge-count {
  background: #2563eb;
  color: #ffffff;
}

.device-filter-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-notice {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-md);
  padding: 0.85rem 1.15rem;
  font-size: 0.88rem;
  color: #1e40af;
  margin-bottom: 1.35rem;
  line-height: 1.5;
}

/* Request Cards (Animated & Blue & White) */
.requests-grid {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.request-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem;
  transition: var(--transition-smooth);
  animation: fadeInUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.request-card:hover {
  border-color: #93c5fd;
  box-shadow: 0 12px 28px -5px rgba(37, 99, 235, 0.12);
  transform: translateY(-2px);
}

.request-card.card-active {
  border-left: 5px solid #2563eb;
}

.req-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 1.15rem;
  flex-wrap: wrap;
}

.req-title-group {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.req-service-name {
  font-size: 1.22rem;
  font-weight: 800;
  color: #0f172a;
}

.req-earning {
  font-size: 1.35rem;
  font-weight: 900;
  color: #2563eb;
}

/* Customer & Service Info Box */
.info-columns {
  display: grid;
  grid-template-columns: 1.2fr 1.5fr 1fr;
  gap: 1.25rem;
  background: #f8fafc;
  padding: 1.1rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid #e2e8f0;
  margin-bottom: 1.15rem;
}

.info-block-lbl {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 0.35rem;
  letter-spacing: 0.04em;
}

.customer-name {
  font-size: 1rem;
  font-weight: 800;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.customer-phone-link {
  font-size: 0.88rem;
  font-weight: 700;
  color: #2563eb;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.25rem;
  text-decoration: underline;
}

.customer-phone-link:hover {
  color: #1d4ed8;
}

.issue-box {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-md);
  padding: 0.85rem 1.15rem;
  font-size: 0.9rem;
  color: #1e293b;
  margin-bottom: 1.15rem;
  border-left: 4px solid #2563eb;
}

/* Action button strip */
.req-action-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #f1f5f9;
  flex-wrap: wrap;
}

.action-buttons {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.job-stepper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-md);
  font-size: 0.84rem;
  color: #1e40af;
  font-weight: 600;
}

/* ==============================================================
   MOBILE RESPONSIVE ENHANCEMENTS FOR PROVIDER APP (<= 640px)
   ============================================================== */
@media (max-width: 860px) {
  .provider-banner {
    flex-direction: column;
    align-items: flex-start;
  }
  .provider-quick-stats {
    width: 100%;
    justify-content: space-between;
  }
  .info-columns {
    grid-template-columns: 1fr;
  }
}

.payment-modal-box {
  width: min(100% - 2rem, 440px);
}

.payment-amount-line {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.4rem;
  color: #475569;
  font-size: 0.92rem;
}

.payment-amount-line strong {
  color: #071c49;
  font-size: 1.2rem;
}

.payment-visit-note,
.payment-qr-panel > p,
.payment-collected-panel > p {
  margin: 0.55rem 0 1rem;
  color: #64748b;
  font-size: 0.82rem;
  line-height: 1.5;
}

.payment-choice-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.payment-qr-panel {
  display: grid;
  justify-items: center;
  gap: 0.25rem;
  margin-top: 1.2rem;
  padding: 1rem;
  border: 1px solid #dce8f4;
  border-radius: 14px;
  background: #f3f8fd;
  text-align: center;
}

.payment-qr-code {
  min-width: 240px;
  min-height: 240px;
  display: grid;
  place-items: center;
  padding: 8px;
  border-radius: 12px;
  background: #fff;
}

.payment-qr-code img,
.payment-qr-code canvas {
  max-width: 100%;
  height: auto;
}

.payment-collected-panel {
  margin-top: 1rem;
}

.provider-payment-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.15rem;
  padding-top: 1rem;
  border-top: 1px solid #e2e8f0;
  color: #475569;
  font-size: 0.88rem;
}

.provider-payment-summary strong {
  color: #071c49;
}

[hidden] {
  display: none !important;
}

@media (max-width: 640px) {
  .provider-payment-summary {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .auth-section {
    padding: 0.75rem 0;
  }

  .auth-header {
    padding: 1.35rem 1rem 1rem 1rem;
  }

  .auth-body {
    padding: 1.25rem 1rem;
  }

  .provider-banner {
    padding: 1.15rem 1rem;
    gap: 1.15rem;
  }

  .provider-quick-stats {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
  }

  .stat-box {
    min-width: unset;
    padding: 0.65rem 0.4rem;
  }

  .stat-num {
    font-size: 1.2rem;
  }

  .stat-lbl {
    font-size: 0.65rem;
  }

  .provider-tabs-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .provider-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
    width: 100%;
    padding-bottom: 2px;
  }

  .tab-btn {
    min-width: 0;
    white-space: normal;
    padding: 0.55rem 0.5rem;
    font-size: 0.78rem;
  }

  .device-filter-group {
    justify-content: space-between;
  }

  .req-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .req-action-strip {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .action-buttons {
    flex-direction: column;
    width: 100%;
  }

  .action-buttons .btn {
    width: 100%;
    min-height: 46px;
  }

  .info-columns {
    padding: 0.85rem;
    gap: 0.75rem;
  }
}
