.ob-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 24px 16px;
}

.ob-container {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
}

/* Header */
.ob-header {
  margin-bottom: 28px;
}


.ob-form-card {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border: 1px solid rgba(34, 211, 238, 0.15);
  border-radius: 20px;
  padding: 28px;
  position: relative; 
  max-height: 80vh;
  display: flex;
  flex-direction: column;
}

.ob-form-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #22d3ee, #3b82f6, #8b5cf6);
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  z-index: 1;
}

.ob-form-fields {
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow-y: auto;
  padding-right: 4px;
}

.ob-form-fields::-webkit-scrollbar {
  width: 5px;
}

.ob-form-fields::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 3px;
}

.ob-form-fields::-webkit-scrollbar-thumb {
  background: rgba(34, 211, 238, 0.25);
  border-radius: 3px;
}

.ob-form-fields::-webkit-scrollbar-thumb:hover {
  background: rgba(34, 211, 238, 0.4);
}
.ob-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  margin-bottom: 12px;
  transition: color 0.2s ease;
}

.ob-back-link:hover {
  color: #22d3ee;
}

.ob-back-link svg {
  width: 16px;
  height: 16px;
}

.ob-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: #f1f5f9;
  margin: 0;
  letter-spacing: -0.02em;
}

.ob-subtitle {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.35);
  margin-top: 4px;
}


/* Field group */
.ob-field {
  display: flex;
  flex-direction: column;
}

/* Labels */
.ob-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ob-label-required {
  color: #f87171;
  margin-left: 2px;
}

/* Text inputs */
.ob-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.95rem;
  font-weight: 500;
  color: #e2e8f0;
  outline: none;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.ob-input::placeholder {
  color: rgba(255, 255, 255, 0.25);
}

.ob-input:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.2);
}

.ob-input:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: #22d3ee;
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.1);
}

.ob-input:disabled,
.ob-input-readonly {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.4);
  cursor: not-allowed;
}

.ob-input-error {
  border-color: rgba(239, 68, 68, 0.5) !important;
  background: rgba(239, 68, 68, 0.05) !important;
}


/* ─── TOAST ─── */
.ob-toast {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #ffffff;
  z-index: 9999;
  animation: ob-toast-in 0.3s ease, ob-toast-out 0.3s ease 2.7s forwards;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.ob-toast-success {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.ob-toast-error {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

@keyframes ob-toast-in {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

@keyframes ob-toast-out {
  from {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  to {
    opacity: 0;
    transform: translateX(-50%) translateY(-20px);
  }
}
/* ─── CUSTOM SELECT ─── */
.ob-custom-select {
  position: relative;
}

.ob-custom-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 10px 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ob-custom-trigger:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.2);
}

.ob-custom-trigger-open {
  background: rgba(255, 255, 255, 0.08);
  border-color: #22d3ee;
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.1);
}

.ob-custom-value {
  font-size: 0.95rem;
  font-weight: 500;
  color: #e2e8f0;
}

.ob-custom-arrow {
  color: rgba(255, 255, 255, 0.4);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.ob-custom-arrow.open {
  transform: rotate(180deg);
}

/* Dropdown */
.ob-custom-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #0f172a;
  border: 1px solid rgba(34, 211, 238, 0.2);
  border-radius: 10px;
  overflow: hidden;
  z-index: 100;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  animation: ob-dropdown-in 0.15s ease;
}

/* Options */
.ob-custom-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #e2e8f0;
  background: #0f172a;
  cursor: pointer;
  transition: all 0.15s ease;
}

.ob-custom-option:hover {
  background: rgba(34, 211, 238, 0.15);
  color: #ffffff;
}

.ob-custom-option-selected {
  background: rgba(34, 211, 238, 0.1);
  color: #22d3ee;
}

.ob-custom-option-selected:hover {
  background: rgba(34, 211, 238, 0.2);
  color: #22d3ee;
}

.ob-custom-option svg {
  color: #22d3ee;
  flex-shrink: 0;
}

@keyframes ob-dropdown-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Badge / Tag styles for readonly selects */
.ob-badge-field {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  cursor: not-allowed;
}

.ob-badge {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.ob-badge-teal {
  background: rgba(34, 211, 238, 0.15);
  color: #22d3ee;
  border: 1px solid rgba(34, 211, 238, 0.3);
}

.ob-badge-green {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.ob-badge-blue {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.ob-badge-pink {
  background: rgba(236, 72, 153, 0.15);
  color: #f472b6;
  border: 1px solid rgba(236, 72, 153, 0.3);
}

.ob-badge-amber {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.ob-badge-indigo {
  background: rgba(99, 102, 241, 0.15);
  color: #818cf8;
  border: 1px solid rgba(99, 102, 241, 0.3);
}

/* Helper text */
.ob-helper {
  font-size: 0.75rem;
  color: rgba(34, 211, 238, 0.5);
  margin-bottom: 6px;
}

/* Error text */
.ob-error {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  color: #f87171;
  margin-top: 4px;
}

.ob-error svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* Divider */
.ob-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
  margin: 4px 0;
}

/* Info banner */
.ob-info-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 500;
  color: #1e40af;
}

.ob-info-banner-warning {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.2);
  color: #fbbf24;
}

.ob-info-banner-success {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.2);
  color: #4ade80;
}

/* ─── RECORD CARD ─── */
.ob-record-card {
  background: rgba(34, 197, 94, 0.05);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: 16px;
  padding: 20px;
}

.ob-info-banner-error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}
.ob-record-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.ob-record-icon {
  width: 32px;
  height: 32px;
  background: rgba(34, 197, 94, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4ade80;
}

.ob-record-icon svg {
  width: 18px;
  height: 18px;
}

.ob-record-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #4ade80;
  margin: 0;
}

.ob-record-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.ob-record-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(34, 197, 94, 0.15);
  border-radius: 10px;
  padding: 10px 12px;
}

.ob-record-item-label {
  font-size: 0.7rem;
  color: rgba(34, 197, 94, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}

.ob-record-item-value {
  font-size: 0.88rem;
  font-weight: 600;
  color: #e2e8f0;
}

/* ─── BUTTONS ─── */
.ob-btn {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  text-align: center;
}

.ob-btn:active {
  transform: scale(0.98);
}

.ob-btn-check {
  background: linear-gradient(135deg, #22d3ee 0%, #3b82f6 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(34, 211, 238, 0.3);
}

.ob-btn-check:hover {
  box-shadow: 0 6px 20px rgba(34, 211, 238, 0.4);
}

.ob-btn-check:disabled {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.25);
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

.ob-btn-submit {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
}

.ob-btn-submit:hover {
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4);
}

.ob-btn-submit:disabled {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.25);
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

/* Spinner */
.ob-spinner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.ob-spinner svg {
  animation: ob-spin 0.8s linear infinite;
}

@keyframes ob-spin {
  to { transform: rotate(360deg); }
}

/* Footer */
.ob-footer {
  text-align: center;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.2);
  margin-top: 24px;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 480px) {
  .ob-form-card {
    padding: 20px;
    border-radius: 16px;
  }

  .ob-title {
    font-size: 1.5rem;
  }

  .ob-record-grid {
    grid-template-columns: 1fr;
  }
}