/* ==========================================================================
   Mausam Mobile Application - Core Design System & Base Styles
   Offset-White Palette with 3D Depth & Zero Emojis
   India Meteorological Department / Ministry of Earth Sciences
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* Offset-White Foundation */
  --bg-app-backdrop: #E9ECEF;
  --bg-primary: #F4F6F9;
  --bg-surface: #FFFFFF;
  --bg-surface-glass: rgba(255, 255, 255, 0.85);
  --bg-surface-elevated: #F8FAFC;
  --bg-surface-dim: #EDF2F7;

  /* Typography Colors */
  --text-main: #0F172A;
  --text-muted: #64748B;
  --text-light: #94A3B8;
  --text-inverse: #FFFFFF;

  /* Brand Accents */
  --brand-blue: #0284C7;
  --brand-blue-light: #E0F2FE;
  --brand-sky: #0EA5E9;
  --brand-emerald: #10B981;
  --brand-emerald-light: #D1FAE5;
  --brand-amber: #F59E0B;
  --brand-amber-light: #FEF3C7;
  --brand-orange: #EA580C;
  --brand-rose: #EF4444;
  --brand-rose-light: #FEE2E2;
  --brand-purple: #8B5CF6;
  --brand-purple-light: #EDE9FE;
  --brand-pink: #EC4899;
  --brand-indigo: #6366F1;

  /* 3D Shadows & Depth */
  --shadow-sm: 0 2px 4px rgba(15, 23, 42, 0.03), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-card: 0 10px 25px -5px rgba(15, 23, 42, 0.06), 0 8px 10px -6px rgba(15, 23, 42, 0.04), 0 0 1px rgba(15, 23, 42, 0.08);
  --shadow-card-hover: 0 20px 35px -10px rgba(15, 23, 42, 0.1), 0 10px 15px -5px rgba(15, 23, 42, 0.06), 0 0 1px rgba(15, 23, 42, 0.12);
  --shadow-dock: 0 15px 35px -5px rgba(15, 23, 42, 0.12), 0 0 1px rgba(15, 23, 42, 0.1);
  --shadow-3d-button: 0 4px 6px -1px rgba(15, 23, 42, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.8), inset 0 -1px 0 rgba(15, 23, 42, 0.05);

  /* Borders & Radii */
  --border-subtle: rgba(226, 232, 240, 0.8);
  --border-glass: rgba(255, 255, 255, 0.6);
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-xl: 30px;
  --radius-full: 9999px;

  /* Typography Scale */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Transitions */
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-bounce: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ==========================================================================
   DARK MODE SYSTEM (User Controllable)
   ========================================================================== */
[data-theme="dark"] {
  --bg-app-backdrop: #070B12;
  --bg-primary: #0F172A;
  --bg-surface: #1E293B;
  --bg-surface-glass: rgba(30, 41, 59, 0.88);
  --bg-surface-elevated: #243248;
  --bg-surface-dim: #131B2A;

  --text-main: #F8FAFC;
  --text-muted: #94A3B8;
  --text-light: #64748B;
  --text-inverse: #0F172A;

  --brand-blue-light: #1E3A5F;
  --brand-emerald-light: #064E3B;
  --brand-amber-light: #78350F;
  --brand-rose-light: #7F1D1D;
  --brand-purple-light: #4C1D95;

  --border-subtle: rgba(51, 65, 85, 0.85);
  --border-glass: rgba(255, 255, 255, 0.1);

  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
  --shadow-card: 0 10px 25px -5px rgba(0, 0, 0, 0.45), 0 0 1px rgba(255, 255, 255, 0.08);
  --shadow-card-hover: 0 20px 35px -10px rgba(0, 0, 0, 0.6), 0 0 2px rgba(56, 189, 248, 0.3);
  --shadow-dock: 0 15px 35px -5px rgba(0, 0, 0, 0.6), 0 0 1px rgba(255, 255, 255, 0.15);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-app-backdrop);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-x: hidden;
  user-select: none;
}

/* Master Desktop Stage Container */
.desktop-stage-layout {
  width: 100vw;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
}

/* Top Studio Navigation Bar */
.studio-top-bar {
  width: 100%;
  max-width: 900px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  z-index: 50;
}

.studio-brand-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.imd-logo-emblem {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #0284C7, #0369A1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 4px 10px rgba(2, 132, 199, 0.3);
}

.studio-title-box {
  display: flex;
  flex-direction: column;
}

.studio-app-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

.studio-app-sub {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

.studio-actions-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Buttons System */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, #0284C7, #0369A1);
  color: white;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(2, 132, 199, 0.35);
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-main);
  border-color: var(--border-subtle);
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover {
  background: var(--bg-surface-elevated);
  border-color: #CBD5E1;
}

.btn-secondary-sm {
  padding: 6px 12px;
  font-size: 11px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--text-main);
  cursor: pointer;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-fast);
}
.btn-secondary-sm:hover {
  background: var(--bg-surface-dim);
}

/* Icon Helper Sizing */
.icon {
  width: 20px;
  height: 20px;
  stroke: currentColor;
}
.icon-xs {
  width: 14px;
  height: 14px;
}
.icon-sm {
  width: 18px;
  height: 18px;
}
.icon-md {
  width: 22px;
  height: 22px;
}
.icon-lg {
  width: 28px;
  height: 28px;
}
.icon-large {
  width: 44px;
  height: 44px;
}

/* Utilities */
.text-sky { color: var(--brand-sky); }
.text-blue { color: var(--brand-blue); }
.text-emerald { color: var(--brand-emerald); }
.text-amber { color: var(--brand-amber); }
.text-orange { color: var(--brand-orange); }
.text-rose { color: var(--brand-rose); }
.text-purple { color: var(--brand-purple); }
.text-pink { color: var(--brand-pink); }
.text-indigo { color: var(--brand-indigo); }
.text-muted { color: var(--text-muted); }
.text-slate-800 { color: #1E293B; }

.bg-emerald-light { background: var(--brand-emerald-light); }
.bg-blue-light { background: var(--brand-blue-light); }
.bg-sky-light { background: #E0F2FE; }
.bg-amber-light { background: var(--brand-amber-light); }
.bg-rose-light { background: var(--brand-rose-light); }
.bg-purple-light { background: var(--brand-purple-light); }
.bg-pink-light { background: #FCE7F3; }
.bg-indigo-light { background: #E0E7FF; }

.rotate-90 { transform: rotate(90deg); }
.rotate-270 { transform: rotate(270deg); }

@media screen and (max-width: 900px), screen and (max-device-width: 900px), screen and (hover: none) and (pointer: coarse) {
  body {
    background-color: var(--bg-primary);
    padding: 0;
    margin: 0;
    overflow: hidden;
    height: 100%;
    min-height: 100%;
  }

  .desktop-stage-layout {
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    height: 100%;
    padding: 0;
    margin: 0;
  }
}

