/* ═══════════════════════════════════════════════════════════════════════════════
   Quick Job Modal Styles
   Hybrid Compute Model - Serverless Job UI
   ═══════════════════════════════════════════════════════════════════════════════ */

.quick-job-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.2s ease;
}

.quick-job-modal {
  background: var(--bg-card, #1a1a2e);
  border: 1px solid var(--border, #2a2a3e);
  border-radius: var(--radius-lg, 16px);
  width: 90%;
  max-width: 480px;
  box-shadow: var(--shadow-lg, 0 16px 48px rgba(0, 0, 0, 0.4));
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.quick-job-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border, #2a2a3e);
}

.quick-job-header h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text, #fff);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
}

.quick-job-header h3 svg {
  color: var(--warning, #ffaa00);
}

.quick-job-close {
  background: transparent;
  border: none;
  color: var(--text-muted, #888);
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  transition: color 0.2s;
}

.quick-job-close:hover {
  color: var(--text, #fff);
}

.quick-job-body {
  padding: 1.5rem;
}

.quick-job-info {
  color: var(--text-muted, #888);
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.quick-job-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.quick-job-label {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.quick-job-label span {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted, #888);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.quick-job-input,
.quick-job-select {
  background: var(--bg, #0d0d1a);
  border: 1px solid var(--border, #2a2a3e);
  border-radius: var(--radius-sm, 6px);
  padding: 0.75rem 1rem;
  color: var(--text, #fff);
  font-size: 0.9375rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.quick-job-input:focus,
.quick-job-select:focus {
  outline: none;
  border-color: var(--primary, #00d4ff);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.quick-job-input::placeholder {
  color: var(--text-muted, #666);
}

.quick-job-cost {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: var(--radius-sm, 6px);
  margin-top: 1rem;
}

.cost-label {
  font-size: 0.875rem;
  color: var(--text-muted, #888);
}

.cost-value {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--primary, #00d4ff);
}

.quick-job-footer {
  display: flex;
  gap: 0.75rem;
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--border, #2a2a3e);
}

.quick-job-footer .btn-cancel {
  flex: 1;
  padding: 0.75rem 1.5rem;
  background: transparent;
  border: 1px solid var(--border, #2a2a3e);
  border-radius: var(--radius-sm, 6px);
  color: var(--text-muted, #888);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.quick-job-footer .btn-cancel:hover {
  background: var(--bg-hover, #1a1a2e);
  color: var(--text, #fff);
}

.quick-job-footer .btn-submit {
  flex: 2;
  padding: 0.75rem 1.5rem;
  background: var(--gradient-primary, linear-gradient(135deg, #00d4ff, #0088aa));
  border: none;
  border-radius: var(--radius-sm, 6px);
  color: #000;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.2s;
}

.quick-job-footer .btn-submit:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-glow-primary, 0 0 20px rgba(0, 212, 255, 0.3));
}

.quick-job-footer .btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Service Card Actions (Quick Job Button)
   ───────────────────────────────────────────────────────────────────────────── */

.service-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.service-actions .btn-service {
  flex: 1;
}

.btn-quick-job {
  background: transparent !important;
  border: 1px solid var(--warning, #ffaa00) !important;
  color: var(--warning, #ffaa00) !important;
}

.btn-quick-job:hover {
  background: rgba(255, 170, 0, 0.1) !important;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Free Runtime Badge
   ───────────────────────────────────────────────────────────────────────────── */

.service-free-runtime {
  display: flex;
  align-items: center;
}

.free-badge {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--success, #00ff88);
  background: rgba(0, 255, 136, 0.1);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm, 6px);
  border: 1px solid rgba(0, 255, 136, 0.2);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Instance Card - Updated for Hybrid Model
   ───────────────────────────────────────────────────────────────────────────── */

.instance-price-free {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--success, #00ff88);
  background: rgba(0, 255, 136, 0.1);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm, 6px);
  border: 1px solid rgba(0, 255, 136, 0.2);
}

/* ─────────────────────────────────────────────────────────────────────────────
   Idle Timeout Warning
   ───────────────────────────────────────────────────────────────────────────── */

.idle-warning {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: rgba(255, 170, 0, 0.1);
  border: 1px solid rgba(255, 170, 0, 0.2);
  border-radius: var(--radius-sm, 6px);
  font-size: 0.75rem;
  color: var(--warning, #ffaa00);
  margin-top: 0.5rem;
}

.idle-warning svg {
  flex-shrink: 0;
}
