/*!
 * Assets/Modules/base.css
 * YatraPilot Studio — Core UI Base Styles (White Theme — Poppins)
 * (c) 2025 YatraPilot Systems — All rights reserved.
 *
 * TRADEMARK NOTICE:
 *  "YatraPilot" and "YatraPilot Studio" are trademarks of YatraPilot Systems.
 *  This stylesheet is proprietary and licensed exclusively for internal usage
 *  within the YatraPilot tourism platform, including admin panels, tools, and
 *  companion applications.
 *
 * VERSION:
 *  v2.0.0 — Core release (White theme with elevated 3D elements)
 *
 * PURPOSE:
 *  - Defines global UI variables and foundational UI components.
 *  - Provides consistent styling for the entire YatraPilot Studio panel.
 *  - Includes advanced button effects, cards, inputs, layouts, modals,
 *    toasts, micro-animations, and responsive utilities.
 *
 * LOCATION:
 *  Save as: /Assets/Modules/base.css
 *  Link in pages: <link rel="stylesheet" href="/Assets/Modules/base.css">
 *
 * USAGE:
 *  - Buttons:
 *       <button class="btn btn-outline">
 *       <button class="btn btn-dotted">
 *       <button class="btn btn-filled">
 *
 *  - Cards:
 *       <div class="card">...</div>
 *
 *  - Inputs:
 *       <input class="form-control">
 *
 *  - Modal:
 *       <div class="modal-backdrop"><div class="modal">...</div></div>
 *
 * NOTICE:
 *  - Keep this stylesheet static and version-controlled.
 *  - Custom overrides should be placed in: /Assets/Modules/base_overrides.css
 *  - Micro-interaction JS for ripple/press effects should be added separately.
 */

/* ====================================================================== */
/* THEME VARIABLES                                                         */
/* ====================================================================== */
:root{
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #fbfbfd;

  /* Primary brand color for YatraPilot Studio */
  --primary: #0b7c5f;
  --primary-2: #0a6f52;

  --accent: #7c3aed;

  --text: #0b1220;
  --muted: #6b7280;

  --success: #10b981;
  --danger: #ef4444;

  --glass: rgba(11,17,36,0.02);
  --glass-2: rgba(11,17,36,0.01);

  --card-border: rgba(6,10,18,0.06);

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;

  --shadow-xs: 0 6px 18px rgba(11,17,36,0.06);
  --shadow-sm: 0 10px 30px rgba(11,17,36,0.08);
  --shadow-md: 0 20px 60px rgba(11,17,36,0.10);
  --shadow-3d: 0 18px 36px rgba(11,17,36,0.12);

  --font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-weight-regular: 400;
  --font-weight-strong: 700;

  --ease: cubic-bezier(.2,.9,.2,1);
  --fast: 160ms;
  --med: 260ms;
  --slow: 420ms;

  --ripple-color: rgba(11,17,36,0.04);
}

/* Typography + Layout -------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700;800&display=swap');

html, body {
  height:100%;
  margin:0;
  font-family:var(--font-family);
  background:var(--bg);
  color:var(--text);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  line-height:1.4;
  transition: background var(--med) var(--ease), color var(--med) var(--ease);
}

.container { max-width:1200px; margin:0 auto; padding:18px; box-sizing:border-box; }

.h1 { font-size:20px; font-weight:var(--font-weight-strong); margin:0 0 8px 0; color:var(--text); }
.lead { color:var(--muted); margin:0 0 12px 0; }
.small { font-size:13px; color:var(--muted); }

.row { display:flex; gap:12px; align-items:center; }
.col { flex:1; }
.stack { display:flex; flex-direction:column; gap:10px; }

/* ====================================================================== */
/* CARD                                                                    */
/* ====================================================================== */
.card {
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border-radius: var(--radius);
  padding:16px;
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-xs);
  color:var(--text);
}
.card.interactive {
  cursor:pointer;
  transition: transform var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}
.card.interactive:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

/* ====================================================================== */
/* BUTTONS                                                                 */
/* ====================================================================== */
.btn {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:10px 14px;
  border-radius:10px;
  font-weight:700;
  cursor:pointer;
  border:0;
  user-select:none;
  -webkit-tap-highlight-color: transparent;
  position:relative;
  overflow:visible;
  transition: transform var(--fast) var(--ease),
              box-shadow var(--fast) var(--ease),
              opacity var(--fast) var(--ease);
  min-height:42px;
  line-height:1;
  color:var(--text);
  background: transparent;
}

.btn:focus {
  outline: 3px solid color-mix(in srgb, var(--primary) 28%, transparent);
  outline-offset:4px;
}

.btn:hover { transform: translateY(-3px); box-shadow: var(--shadow-xs); }
.btn:active, .btn.pressed {
  transform: translateY(0) scale(.998);
  box-shadow: 0 6px 18px rgba(11,17,36,0.04);
}

/* ripple effect */
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, var(--ripple-color), transparent 40%);
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 160ms linear, transform 220ms var(--ease);
  pointer-events: none;
}
.btn:active::after { opacity: 1; transform: scale(1); }

/* Outlined -------------------------------------------------------------- */
.btn-outline {
  background: linear-gradient(180deg, rgba(11,17,36,0.02), rgba(11,17,36,0.01));
  color: var(--text);
  border: 2px solid rgba(11,17,36,0.08);
  box-shadow: 0 8px 18px rgba(11,17,36,0.04);
}
.btn-outline:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-3d);
  border-color: rgba(11,17,36,0.14);
}

/* Dotted --------------------------------------------------------------- */
.btn-dotted {
  background: transparent;
  color: var(--text);
  border: 2px dotted rgba(11,17,36,0.10);
  box-shadow: 0 6px 14px rgba(11,17,36,0.03);
}
.btn-dotted:hover {
  transform: translateY(-6px) rotateX(2deg);
  box-shadow: 0 18px 40px rgba(11,17,36,0.07);
}

/* Filled (Black CTA) --------------------------------------------------- */
.btn-filled {
  background: linear-gradient(180deg, #0b0b0b 0%, #0f0f0f 100%);
  color: #ffffff;
  border-radius:12px;
  box-shadow: 0 18px 40px rgba(11,17,36,0.16);
}
.btn-filled:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 30px 80px rgba(11,17,36,0.18);
}

/* sizes */
.btn-sm { padding:6px 10px; min-height:34px; font-size:13px; }
.btn-lg { padding:14px 20px; min-height:48px; font-size:15px; }

/* ====================================================================== */
/* INPUTS                                                                  */
/* ====================================================================== */
.form-control {
  background: transparent;
  border: 1px solid var(--card-border);
  padding:10px 12px;
  border-radius:10px;
  color:var(--text);
  min-height:44px;
  transition: border-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}
.form-control:focus {
  border-color: color-mix(in srgb, var(--primary) 30%, black 6%);
  box-shadow: 0 8px 24px rgba(11,17,36,0.06);
}

/* ====================================================================== */
/* TABLES                                                                  */
/* ====================================================================== */
.table {
  width:100%;
  border-collapse:collapse;
  font-size:14px;
  color:var(--text);
}
.table thead th {
  text-align:left;
  font-weight:700;
  padding:10px 8px;
  border-bottom: 1px solid rgba(6,10,18,0.04);
  color:var(--muted);
}
.table tbody td {
  padding:12px 8px;
  border-bottom: 1px solid rgba(6,10,18,0.02);
}

/* ====================================================================== */
/* MODALS                                                                  */
/* ====================================================================== */
.modal-backdrop {
  position:fixed;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(6,10,18,0.5);
  z-index:4000;
}
.modal {
  width:720px;
  max-width: calc(100% - 40px);
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border-radius: 14px;
  padding:18px;
  border:1px solid var(--card-border);
  box-shadow: var(--shadow-md);
}

/* ====================================================================== */
/* TOASTER                                                                 */
/* ====================================================================== */
.toaster {
  position:fixed;
  right:18px;
  top:18px;
  display:flex;
  flex-direction:column;
  gap:12px;
  z-index:5000;
}

.toast {
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border-radius:12px;
  padding:10px 14px;
  border:1px solid var(--card-border);
  display:flex; gap:12px; align-items:center;
  box-shadow:var(--shadow-sm);
  min-width:280px;
}

/* ====================================================================== */
/* NAVBAR                                                                  */
/* ====================================================================== */
.navbar {
  background: linear-gradient(180deg, rgba(11,17,36,0.01), rgba(11,17,36,0.004));
  border-bottom:1px solid var(--card-border);
  padding:10px 16px;
  display:flex; gap:12px; align-items:center;
}

.avatar {
  width:36px;
  height:36px;
  border-radius:10px;
  display:grid;
  place-items:center;
  background:linear-gradient(135deg,var(--primary),var(--accent));
  color:white;
  font-weight:800;
}

/* ====================================================================== */
/* MICRO ANIMATIONS                                                        */
/* ====================================================================== */
.fade-in { animation: fadeIn var(--med) var(--ease) both; }
@keyframes fadeIn { from { opacity:0; transform: translateY(6px);} to {opacity:1; transform: translateY(0);} }

.pop { transition: transform var(--fast) var(--ease); }
.pop:hover { transform: scale(1.02); }

/* ====================================================================== */
/* SCROLLBARS                                                              */
/* ====================================================================== */
::-webkit-scrollbar { height:10px; width:10px; }
::-webkit-scrollbar-thumb {
  background: rgba(6,10,18,0.06);
  border-radius:10px;
}

/* ====================================================================== */
/* END OF FILE — YatraPilot Studio                                         */
/* ====================================================================== */
