/* ==========================================================================
   ORCHA AGENT PANEL STYLES (Partner Portal Dark Theme)
   ========================================================================== */

.agent-page-wrap {
  min-height: 100vh;
  background: radial-gradient(circle at 50% 0%, #0d1935 0%, #050a17 100%);
  color: #F8FAFC;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  display: flex;
  flex-direction: column;
  padding-bottom: 90px;
  box-sizing: border-box;
}

/* Top Navigation Bar */
.agent-top-nav {
  height: 64px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 14, 28, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.agent-nav-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.agent-nav-logo {
  font-size: 1.4rem;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.agent-nav-logo::before {
  content: "●";
  color: #0284C7;
  font-size: 1.1rem;
}

.agent-nav-sep {
  color: #334155;
  font-size: 1.1rem;
  font-weight: 300;
}

.agent-portal-badge {
  display: flex;
  flex-direction: column;
}

.agent-portal-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #F8FAFC;
}

.agent-portal-sub {
  font-size: 0.72rem;
  color: #38BDF8;
  font-weight: 600;
}

.agent-nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.agent-bell-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94A3B8;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.95rem;
  transition: all 0.2s;
}

.agent-bell-btn:hover {
  color: #FFFFFF;
  border-color: #38BDF8;
}

.agent-user-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.agent-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #0284C7;
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 12px rgba(2, 132, 199, 0.5);
}

.agent-user-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.agent-user-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: #FFFFFF;
}

.agent-user-role {
  font-size: 0.72rem;
  color: #94A3B8;
}

/* Main Two-Column Layout */
.agent-main-container {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 28px;
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  gap: 24px;
  box-sizing: border-box;
}

@media (max-width: 1100px) {
  .agent-main-container {
    grid-template-columns: 1fr;
  }
}

/* Left Column */
.agent-left-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.agent-hero-banner {
  display: flex;
  align-items: center;
  gap: 18px;
}

.agent-hero-icon-circle {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #0284C7;
  color: #FFFFFF;
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 24px rgba(2, 132, 199, 0.6);
  flex-shrink: 0;
}

.agent-hero-text h1 {
  font-size: 1.65rem;
  font-weight: 800;
  color: #FFFFFF;
  margin: 0 0 4px 0;
  letter-spacing: -0.4px;
}

.agent-hero-text p {
  font-size: 0.92rem;
  color: #94A3B8;
  margin: 0;
}

/* 3-Step Stepper */
.agent-stepper {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 0;
}

.agent-step-node {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: #64748B;
  font-weight: 600;
}

.agent-step-node.active {
  color: #FFFFFF;
  font-weight: 700;
}

.agent-step-dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #0F172A;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #94A3B8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.76rem;
  font-weight: 800;
}

.agent-step-node.active .agent-step-dot {
  background: #0284C7;
  border-color: #38BDF8;
  color: #FFFFFF;
  box-shadow: 0 0 12px rgba(2, 132, 199, 0.6);
}

.agent-step-line {
  flex: 1;
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
}

/* Form Card */
.agent-form-card {
  background: rgba(13, 22, 41, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.agent-form-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0;
}

.agent-input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.agent-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #94A3B8;
  display: flex;
  align-items: center;
  gap: 6px;
}

.agent-text-input {
  width: 100%;
  background: rgba(8, 14, 28, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 12px 16px;
  color: #FFFFFF;
  font-size: 0.92rem;
  outline: none;
  transition: all 0.2s;
  box-sizing: border-box;
}

.agent-text-input:focus {
  border-color: #38BDF8;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.3);
}

/* Ride Type Cards Row */
.agent-type-cards-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

@media (max-width: 600px) {
  .agent-type-cards-row {
    grid-template-columns: 1fr;
  }
}

.agent-type-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.2s ease;
}

.agent-type-card:hover {
  background: rgba(15, 23, 42, 0.9);
  border-color: rgba(56, 189, 248, 0.4);
}

.agent-type-card.active {
  background: rgba(2, 132, 199, 0.2);
  border-color: #0284C7;
  box-shadow: 0 0 18px rgba(2, 132, 199, 0.35);
}

.agent-type-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.agent-type-card.active .agent-type-icon {
  background: #0284C7;
  color: #FFFFFF;
}

.agent-type-text {
  display: flex;
  flex-direction: column;
}

.agent-type-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #FFFFFF;
}

.agent-type-desc {
  font-size: 0.72rem;
  color: #94A3B8;
  margin-top: 2px;
}

/* Locations Row */
.agent-locations-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 600px) {
  .agent-locations-row {
    grid-template-columns: 1fr;
  }
}

.agent-select {
  width: 100%;
  background: rgba(8, 14, 28, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 12px 14px;
  color: #FFFFFF;
  font-size: 0.9rem;
  outline: none;
  cursor: pointer;
  box-sizing: border-box;
}

.agent-select:focus {
  border-color: #38BDF8;
}

/* Details 3-Col Row (Time, Pax, Luggage) */
.agent-details-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
}

@media (max-width: 600px) {
  .agent-details-row {
    grid-template-columns: 1fr;
  }
}

/* Textarea with Character Counter */
.agent-textarea-wrap {
  position: relative;
}

.agent-textarea {
  width: 100%;
  min-height: 80px;
  background: rgba(8, 14, 28, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 12px 14px 28px 14px;
  color: #FFFFFF;
  font-size: 0.88rem;
  font-family: inherit;
  outline: none;
  resize: vertical;
  box-sizing: border-box;
}

.agent-textarea:focus {
  border-color: #38BDF8;
}

.agent-char-count {
  position: absolute;
  bottom: 8px;
  right: 12px;
  font-size: 0.72rem;
  color: #64748B;
}

/* Form Action Buttons */
.agent-form-actions {
  display: flex;
  gap: 12px;
  margin-top: 4px;
  flex-wrap: wrap;
}

.agent-btn-submit {
  flex: 1.5;
  background: #0284C7;
  color: #FFFFFF;
  border: none;
  border-radius: 10px;
  padding: 14px 22px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 18px rgba(2, 132, 199, 0.5);
  transition: all 0.2s;
  min-width: 180px;
}

.agent-btn-submit:hover {
  background: #0369A1;
  box-shadow: 0 6px 24px rgba(2, 132, 199, 0.7);
  transform: translateY(-1px);
}

.agent-btn-secondary {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #CBD5E1;
  border-radius: 10px;
  padding: 14px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.agent-btn-secondary:hover {
  background: rgba(30, 41, 59, 0.9);
  color: #FFFFFF;
}

.agent-footnote-note {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: #94A3B8;
  margin-top: -6px;
}

/* Right Column */
.agent-right-col {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.agent-side-card {
  background: rgba(13, 22, 41, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.agent-side-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.agent-side-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.agent-side-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0;
}

.agent-badge-pill {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 9999px;
}

.agent-badge-pill.blue {
  background: rgba(2, 132, 199, 0.2);
  color: #38BDF8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.agent-badge-pill.green {
  background: rgba(16, 185, 129, 0.15);
  color: #10B981;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

/* Card 1: What Happens Next (3 steps) */
.agent-flow-steps-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 8px;
}

.agent-flow-step-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
}

.agent-flow-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(2, 132, 199, 0.2);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #38BDF8;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.agent-step-mini-num {
  position: absolute;
  top: -2px;
  left: -2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #0284C7;
  color: #FFFFFF;
  font-size: 0.62rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.agent-flow-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: #FFFFFF;
}

.agent-flow-desc {
  font-size: 0.68rem;
  color: #94A3B8;
  line-height: 1.35;
}

.agent-flow-arrow {
  color: #475569;
  font-size: 1.1rem;
}

/* Card 2: Send to Client Options */
.agent-share-options-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.agent-share-btn {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 10px 8px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
  transition: all 0.2s;
}

.agent-share-btn:hover {
  background: rgba(30, 41, 59, 0.8);
  border-color: #38BDF8;
}

.agent-share-btn.active {
  background: rgba(2, 132, 199, 0.2);
  border-color: #0284C7;
}

.agent-share-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: #FFFFFF;
}

.agent-share-sub {
  font-size: 0.65rem;
  color: #94A3B8;
}

.agent-btn-send-client {
  background: #0284C7;
  color: #FFFFFF;
  border: none;
  border-radius: 10px;
  padding: 12px;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(2, 132, 199, 0.4);
  transition: all 0.2s;
}

.agent-btn-send-client:hover {
  background: #0369A1;
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.6);
}

/* Card 3: Driver Status 6-Point Timeline */
.agent-driver-timeline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  position: relative;
  padding: 12px 0 6px 0;
}

.agent-timeline-track {
  position: absolute;
  top: 24px;
  left: 5%;
  right: 5%;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  z-index: 1;
}

.agent-timeline-fill {
  height: 100%;
  width: 60%;
  background: #10B981;
  box-shadow: 0 0 10px #10B981;
}

.agent-tl-node {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 16%;
  text-align: center;
}

.agent-tl-circle {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #0B1329;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #94A3B8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
}

.agent-tl-node.done .agent-tl-circle {
  background: #0284C7;
  border-color: #0284C7;
  color: #FFFFFF;
}

.agent-tl-node.current .agent-tl-circle {
  background: #10B981;
  border-color: #10B981;
  color: #FFFFFF;
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.8);
  transform: scale(1.2);
}

.agent-tl-label {
  font-size: 0.65rem;
  color: #94A3B8;
  line-height: 1.25;
}

.agent-tl-node.current .agent-tl-label {
  color: #10B981;
  font-weight: 700;
}

/* Card 4: What Can the Guest See? */
.agent-guest-view-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.agent-gv-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 10px;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.agent-gv-icon {
  font-size: 1.1rem;
  margin-top: 1px;
}

.agent-gv-text h5 {
  font-size: 0.76rem;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0 0 2px 0;
}

.agent-gv-text p {
  font-size: 0.68rem;
  color: #94A3B8;
  margin: 0;
  line-height: 1.3;
}
