/* ==========================================================================
   YOUR LABOR - Daily Morning Duty & Job Alert Styles
   ========================================================================== */

/* Duty Header */
.worker-header-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.worker-user-block {
  display: flex;
  align-items: center;
  gap: 12px;
}

.worker-header-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2.5px solid var(--worker-primary);
  object-fit: cover;
  box-shadow: var(--shadow-md);
}

.worker-header-info h2 {
  font-size: 1.1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 4px;
}

.worker-header-info p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.lang-picker-select {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  padding: 6px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

/* GIANT MORNING GO ONLINE SWITCH */
.duty-switch-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px 20px;
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
  margin-bottom: 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.duty-circle-button {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: #f1f5f9;
  border: 8px solid #cbd5e1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  margin-bottom: 16px;
  box-shadow: inset 0 4px 8px rgba(0,0,0,0.08);
}

.duty-circle-button:hover {
  transform: scale(1.04);
}

.duty-icon-state {
  font-size: 2.2rem;
  margin-bottom: 4px;
  transition: transform 0.2s ease;
}

.duty-btn-text {
  font-size: 0.95rem;
  font-weight: 900;
  font-family: var(--font-heading);
  letter-spacing: 0.05em;
  color: #64748b;
}

/* ONLINE ACTIVE STATE (GLOWING EMERALD) */
.duty-switch-container.is-online {
  background: linear-gradient(180deg, #ffffff 0%, #ecfdf5 100%);
  border-color: #a7f3d0;
}

.duty-switch-container.is-online .duty-circle-button {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border-color: #34d399;
  box-shadow: var(--shadow-green-pulse);
  animation: dutyPulse 2s infinite;
}

.duty-switch-container.is-online .duty-btn-text {
  color: #ffffff;
}

.duty-switch-container.is-online .duty-icon-state {
  transform: scale(1.15);
}

@keyframes dutyPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6);
  }
  70% {
    box-shadow: 0 0 0 22px rgba(16, 185, 129, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.duty-status-caption {
  font-size: 0.92rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 4px;
}

.duty-status-desc {
  font-size: 0.75rem;
  color: #64748b;
  max-width: 280px;
}

/* Today Performance Stats Row */
.performance-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.perf-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 12px 10px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.perf-val {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--text-main);
  font-family: var(--font-heading);
}

.perf-val.green {
  color: var(--online-green-dark);
}

.perf-label {
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Quick Action / Labor Hub Banner on Home */
.hub-enroll-callout {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: white;
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-md);
  border: 1px solid #334155;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.hub-enroll-callout:hover {
  transform: translateY(-2px);
}

.hub-callout-text h4 {
  color: white;
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.hub-callout-text p {
  color: #94a3b8;
  font-size: 0.72rem;
  margin-top: 2px;
}

.hub-badge-enrolled {
  background: var(--worker-primary);
  color: white;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 800;
}

/* ==========================================================================
   RAPIDO CAPTAIN STYLE INCOMING JOB ALERT POPUP
   ========================================================================== */
.job-alert-modal {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  z-index: 500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: alertFadeIn 0.25s ease forwards;
}

.job-alert-modal.active {
  display: flex;
}

@keyframes alertFadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.job-alert-card {
  width: 100%;
  max-width: 360px;
  background: #ffffff;
  border-radius: var(--radius-xl);
  padding: 24px 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  text-align: center;
  position: relative;
  overflow: hidden;
  border: 2px solid var(--worker-primary);
}

/* 30-Second Countdown Timer Bar */
.countdown-bar-wrap {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: #e2e8f0;
}

.countdown-bar-fill {
  height: 100%;
  background: var(--worker-gradient);
  width: 100%;
  transition: width 1s linear;
}

.alert-ring-pulse {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: #fff7ed;
  border: 3px solid var(--worker-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 8px auto 14px;
  box-shadow: var(--shadow-orange-glow);
  animation: pulse-ring 1.2s infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); }
  50% { transform: scale(1.1); }
  100% { transform: scale(0.95); }
}

.alert-header-tag {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--worker-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.alert-job-title {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--text-main);
  margin-bottom: 12px;
}

.alert-details-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 12px;
  text-align: left;
  margin-bottom: 20px;
}

.alert-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  margin-bottom: 8px;
}

.alert-row:last-child {
  margin-bottom: 0;
}

.alert-row strong {
  color: var(--text-main);
}

.alert-wage-highlight {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--online-green-dark);
  font-family: var(--font-heading);
}

.alert-actions-row {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 10px;
}

.btn-decline-job {
  padding: 12px;
  background: #f1f5f9;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--danger-red);
  transition: 0.15s ease;
}

.btn-decline-job:hover {
  background: #fee2e2;
}

.btn-accept-job {
  padding: 12px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  font-weight: 900;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: 0.15s ease;
}

.btn-accept-job:hover {
  transform: scale(1.02);
}

/* ==========================================================================
   ACTIVE JOB DUTY SCREEN
   ========================================================================== */
.active-job-duty-card {
  background: var(--bg-card);
  border: 2px solid var(--worker-primary);
  border-radius: var(--radius-xl);
  padding: 18px;
  box-shadow: var(--shadow-lg);
  margin-bottom: 20px;
}

.duty-step-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #fff7ed;
  color: var(--worker-primary);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.otp-verification-box {
  background: #eff6ff;
  border: 1.5px dashed #3b82f6;
  border-radius: var(--radius-md);
  padding: 14px;
  margin: 14px 0;
  text-align: center;
}

.otp-input-field {
  width: 140px;
  height: 44px;
  font-size: 1.4rem;
  letter-spacing: 8px;
  text-align: center;
  font-weight: 900;
  border: 2px solid #3b82f6;
  border-radius: 8px;
  background: white;
  margin-top: 8px;
}
