/* ============================================================
   WETRAVELS - Page-specific and component-level styles
   ============================================================ */

/* ---- LOGIN PAGE ---- */
.login-page {
  min-height: 100vh;
  background: var(--primary-900);
  display: flex;
  align-items: stretch;
}

.login-visual {
  flex: 1;
  background: linear-gradient(135deg, var(--primary-800) 0%, var(--primary-600) 50%, #1a3a5c 100%);
  position: relative;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  min-height: 300px;
}

.login-visual::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2300D4B4' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.login-visual-content {
  position: relative; z-index: 1;
  text-align: center; padding: 40px;
}

.login-visual-content .big-icon {
  font-size: 5rem;
  margin-bottom: 28px;
  display: block;
}

.login-visual-content h2 {
  font-size: 2rem; font-weight: 800; color: #fff;
  margin-bottom: 12px;
}

.login-visual-content p {
  color: rgba(255,255,255,0.6);
  font-size: 0.95rem;
  max-width: 340px;
  margin: 0 auto 32px;
}

.login-features {
  display: flex; flex-direction: column; gap: 12px;
  text-align: left;
}

.login-feature-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px;
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.09);
}
.login-feature-item .icon { font-size: 1.2rem; color: var(--teal-400); flex-shrink: 0; }
.login-feature-item .text { font-size: 0.83rem; color: rgba(255,255,255,0.75); }
.login-feature-item .text strong { color: #fff; }

.login-panel {
  width: 480px;
  background: var(--bg-surface);
  display: flex; flex-direction: column;
  justify-content: center;
  padding: 50px 48px;
  flex-shrink: 0;
}

.login-logo {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 40px;
}
.login-logo .logo-icon {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--teal-500), var(--teal-700));
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; box-shadow: var(--shadow-teal);
}
.login-logo .brand { font-size: 1.4rem; font-weight: 800; color: var(--text-primary); }
.login-logo .tagline { font-size: 0.68rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }

.login-title { font-size: 1.6rem; font-weight: 800; color: var(--text-primary); margin-bottom: 6px; }
.login-subtitle { font-size: 0.88rem; color: var(--text-secondary); margin-bottom: 36px; }

.role-selector {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 12px; margin-bottom: 28px;
}
.role-option {
  display: flex; flex-direction: column; align-items: center;
  gap: 8px; padding: 16px;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-base);
  text-align: center;
}
.role-option:hover { border-color: var(--teal-400); background: var(--teal-100); }
.role-option.selected { border-color: var(--teal-500); background: rgba(0,212,180,0.08); }
.role-option .role-icon { font-size: 1.8rem; }
.role-option .role-name { font-size: 0.85rem; font-weight: 700; color: var(--text-primary); }
.role-option .role-desc { font-size: 0.72rem; color: var(--text-secondary); }

.login-form .password-wrap {
  position: relative;
}
.login-form .password-wrap .toggle-pass {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  color: var(--text-muted); font-size: 0.9rem; cursor: pointer;
}

.login-options {
  display: flex; justify-content: space-between; align-items: center;
  margin: 14px 0 24px;
  font-size: 0.82rem;
}
.login-options a { color: var(--teal-600); font-weight: 600; }

.demo-accounts {
  margin-top: 32px; padding-top: 24px;
  border-top: 1px solid var(--border-color);
}
.demo-accounts h4 { font-size: 0.78rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 12px; font-weight: 600; }
.demo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.demo-account-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px;
  background: var(--gray-50);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  cursor: pointer; font-size: 0.78rem;
  transition: all var(--transition-fast);
  text-align: left;
}
.demo-account-btn:hover { background: var(--gray-100); border-color: var(--teal-400); }
.demo-account-btn .icon { font-size: 1rem; }
.demo-account-btn .acc-info .acc-name { font-weight: 700; color: var(--text-primary); }
.demo-account-btn .acc-info .acc-role { color: var(--text-muted); font-size: 0.7rem; }

@media (max-width: 900px) {
  .login-page { flex-direction: column; }
  .login-visual { min-height: 260px; }
  .login-panel { width: 100%; padding: 32px 28px; }
}

/* ---- DASHBOARD ---- */
.welcome-banner {
  background: linear-gradient(135deg, var(--primary-700) 0%, var(--primary-500) 60%, #1B3D6E 100%);
  border-radius: var(--radius-xl);
  padding: 28px 32px;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
  display: flex; justify-content: space-between; align-items: center;
}

.welcome-banner::before {
  content: '';
  position: absolute; right: -40px; top: -40px;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(0,212,180,0.15), transparent 70%);
  border-radius: 50%;
}

.welcome-text h2 { font-size: 1.5rem; font-weight: 800; color: #fff; margin-bottom: 4px; }
.welcome-text p { font-size: 0.9rem; color: rgba(255,255,255,0.65); }
.welcome-badge {
  display: flex; align-items: center; gap: 8px;
  background: rgba(0,212,180,0.15);
  border: 1px solid rgba(0,212,180,0.3);
  border-radius: var(--radius-full);
  padding: 6px 14px;
  margin-top: 12px;
  width: fit-content;
  font-size: 0.78rem; font-weight: 600; color: var(--teal-300);
}

.welcome-stat-row {
  display: flex; gap: 24px;
  position: relative; z-index: 1;
}

.welcome-quick-stat {
  text-align: center;
  padding: 12px 18px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.12);
  min-width: 90px;
}
.welcome-quick-stat .wqs-val { font-size: 1.7rem; font-weight: 800; color: #fff; }
.welcome-quick-stat .wqs-label { font-size: 0.7rem; color: rgba(255,255,255,0.6); text-transform: uppercase; letter-spacing: 0.5px; }

/* ---- ENQUIRY CARD ---- */
.enquiry-card {
  display: flex; gap: 14px;
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  margin-bottom: 10px;
  transition: all var(--transition-fast);
  cursor: pointer;
}
.enquiry-card:hover { border-color: var(--teal-400); box-shadow: var(--shadow-sm); transform: translateX(2px); }
.enquiry-card.selected { border-color: var(--teal-500); background: rgba(0,212,180,0.05); }

.enquiry-indicator {
  width: 4px; border-radius: 2px; flex-shrink: 0;
  background: var(--teal-500);
  align-self: stretch;
}
.enquiry-indicator.warning { background: var(--amber-500); }
.enquiry-indicator.danger  { background: var(--rose-500); }
.enquiry-indicator.gray    { background: var(--gray-300); }

.enquiry-card-body { flex: 1; min-width: 0; }
.enquiry-card-title { font-size: 0.88rem; font-weight: 700; color: var(--text-primary); margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.enquiry-card-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.enquiry-card-meta span { font-size: 0.75rem; color: var(--text-secondary); display: flex; align-items: center; gap: 4px; }
.enquiry-card-right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex-shrink: 0; }

/* ---- BOOKING ROW ---- */
.booking-ref { font-size: 0.78rem; font-weight: 700; color: var(--teal-600); font-family: monospace; }
.pnr-badge { 
  font-family: monospace; font-size: 0.8rem; font-weight: 700; 
  background: var(--gray-100); color: var(--primary-700); 
  padding: 2px 10px; border-radius: 4px; border: 1px solid var(--gray-200);
}

/* Dark mode specific for PNR visibility */
body.dark-theme .pnr-badge {
  background: rgba(0, 255, 213, 0.08);
  color: var(--teal-500);
  border-color: rgba(0, 255, 213, 0.2);
}

/* ---- NOTIFICATION ITEM ---- */
.notif-item {
  display: flex; gap: 12px; padding: 14px 0;
  border-bottom: 1px solid var(--border-color);
  align-items: flex-start;
}
.notif-item:last-child { border-bottom: none; }
.notif-icon {
  width: 36px; height: 36px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; flex-shrink: 0;
}
.notif-icon.teal { background: rgba(0,212,180,0.12); color: var(--teal-600); }
.notif-icon.amber { background: rgba(245,166,35,0.12); color: var(--amber-600); }
.notif-icon.rose { background: rgba(255,78,106,0.12); color: var(--rose-500); }
.notif-icon.violet { background: rgba(124,92,252,0.12); color: var(--violet-500); }
.notif-body { flex: 1; min-width: 0; }
.notif-title { font-size: 0.85rem; font-weight: 600; color: var(--text-primary); margin-bottom: 2px; }
.notif-desc { font-size: 0.78rem; color: var(--text-secondary); }
.notif-time { font-size: 0.72rem; color: var(--text-muted); white-space: nowrap; flex-shrink: 0; margin-top: 2px; }
.notif-item.unread .notif-title::before {
  content: ''; display: inline-block;
  width: 6px; height: 6px;
  background: var(--teal-500); border-radius: 50%;
  margin-right: 6px; vertical-align: middle;
}

/* ---- CHART CONTAINERS ---- */
.chart-container {
  position: relative;
  width: 100%;
}

/* ---- KANBAN / PIPELINE ---- */
.pipeline {
  display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px;
}
.pipeline-col {
  min-width: 240px;
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  padding: 14px;
  flex-shrink: 0;
}
.pipeline-col-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 12px;
}
.pipeline-col-title { font-size: 0.82rem; font-weight: 700; color: var(--text-primary); }
.pipeline-col-count {
  font-size: 0.72rem; font-weight: 700;
  background: var(--gray-200); color: var(--text-secondary);
  padding: 2px 8px; border-radius: var(--radius-full);
}

.pipeline-item {
  background: var(--bg-surface); border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  padding: 12px; margin-bottom: 8px;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.pipeline-item:hover { border-color: var(--teal-400); box-shadow: var(--shadow-sm); }
.pipeline-item-title { font-size: 0.82rem; font-weight: 700; color: var(--text-primary); margin-bottom: 6px; }
.pipeline-item-meta { font-size: 0.72rem; color: var(--text-secondary); }

/* ---- AGENT CARD ---- */
.agent-card {
  display: flex; align-items: center; gap: 14px;
  padding: 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  transition: all var(--transition-fast);
}
.agent-card:hover { box-shadow: var(--shadow-sm); border-color: var(--gray-300); }

.agent-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-300), var(--teal-600));
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; font-weight: 700; color: #fff; flex-shrink: 0;
}

.agent-info { flex: 1; min-width: 0; }
.agent-name { font-size: 0.88rem; font-weight: 700; color: var(--text-primary); }
.agent-meta { font-size: 0.75rem; color: var(--text-secondary); }

.agent-stats { display: flex; gap: 18px; text-align: center; }
.agent-stat-item .val { font-size: 1.1rem; font-weight: 800; color: var(--text-primary); }
.agent-stat-item .lbl { font-size: 0.68rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }

/* ---- CUSTOMER PROFILE ---- */
.customer-avatar-lg {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--violet-500), var(--teal-600));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; font-weight: 800; color: #fff;
  flex-shrink: 0;
}

/* ---- TASK ITEM ---- */
.task-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 13px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  transition: all var(--transition-fast);
  cursor: pointer;
}
.task-item:hover { box-shadow: var(--shadow-sm); }
.task-item.done { opacity: 0.55; }
.task-item.done .task-title { text-decoration: line-through; }

.task-check {
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 2px solid var(--border-color);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 1px;
  cursor: pointer; transition: all var(--transition-fast);
}
.task-check.checked { border-color: var(--teal-500); background: var(--teal-500); color: #fff; font-size: 0.65rem; }

.task-body { flex: 1; min-width: 0; }
.task-title { font-size: 0.85rem; font-weight: 600; color: var(--text-primary); margin-bottom: 3px; }
.task-meta { font-size: 0.75rem; color: var(--text-secondary); display: flex; gap: 10px; flex-wrap: wrap; }
.task-due { font-size: 0.72rem; color: var(--rose-500); font-weight: 600; }

/* ---- FINANCE SUMMARY ---- */
.finance-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.85rem;
}
.finance-row:last-child { border-bottom: none; }
.finance-label { color: var(--text-secondary); }
.finance-value { font-weight: 700; color: var(--text-primary); }
.finance-value.positive { color: #0ab85e; }
.finance-value.negative { color: var(--rose-500); }

.finance-total {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 0 0;
  border-top: 2px solid var(--border-color);
  font-size: 0.95rem;
}
.finance-total .lbl { font-weight: 700; color: var(--text-primary); }
.finance-total .val { font-size: 1.3rem; font-weight: 800; color: var(--teal-600); }
