/* Custom System UI Styling Parameters */
:root {
  --bg-dark: #0a0c10;
  --panel-glass: rgba(22, 26, 30, 0.65);
  --border-light: rgba(255, 255, 255, 0.07);
  --cyan-accent: #00e5ff;
  --amber-accent: #ffb300;
  --text-main: #f5f6f9;
  --error-red: #ff5252;
}

[v-cloak] { display: none !important; }

html, body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  height: 100%;
}

/* Master Responsive Layout Mapping Container */
.dashboard-container {
  min-height: 100vh;
  box-sizing: border-box;
  position: relative;
  padding: env(safe-area-inset-top, 44px) 16px env(safe-area-inset-bottom, 34px) 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.bg-blur-layer {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, #11141a 0%, #050608 100%);
  z-index: -1;
  pointer-events: none;
}

/* Header Component Configuration */
.mobile-header {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 10px;
  margin-top: 6px;
  position: relative;
  z-index: 10;
}

.panel-time-mini, .panel-weather-mini {
  background: var(--panel-glass);
  border: 1px solid var(--border-light);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.panel-weather-mini {
  position: relative;
  z-index: 20;
}

.time-string {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--cyan-accent);
  letter-spacing: -0.5px;
}
.date-string {
  font-size: 0.8rem;
  opacity: 0.6;
  margin-top: 2px;
}

.weather-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.temp-val {
  font-size: 1.5rem;
  font-weight: 600;
}
.cond-text {
  font-size: 0.85rem;
  opacity: 0.8;
}
.loc-text {
  font-size: 0.75rem;
  color: var(--amber-accent);
  margin-top: 6px;
}

/* Main Dashboard Module Feed Stack */
.dashboard-feed {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex-grow: 1;
  position: relative;
  z-index: 5;
}

.glass-card {
  background: var(--panel-glass);
  border: 1px solid var(--border-light);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.card-header h3 {
  margin: 0;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  opacity: 0.9;
}

/* Sync Engine Dragzone */
.dropzone-area {
  border: 1.5px dashed rgba(0, 229, 255, 0.3);
  background: rgba(0, 229, 255, 0.02);
  border-radius: 12px;
  padding: 18px;
  text-align: center;
  transition: all 0.25s ease;
}
.dropzone-area.is-dragging {
  border-color: var(--cyan-accent);
  background: rgba(0, 229, 255, 0.08);
}
.upload-icon {
  font-size: 1.4rem;
  color: var(--cyan-accent);
  margin-bottom: 6px;
}
.dropzone-area p {
  margin: 0;
  font-size: 0.85rem;
  opacity: 0.7;
}
.hidden-input { display: none; }

/* Status Indicators */
.status-dot {
  width: 8px; height: 8px;
  background-color: rgba(255,255,255,0.2);
  border-radius: 50%;
}
.status-dot.processing {
  background-color: var(--cyan-accent);
  box-shadow: 0 0 8px var(--cyan-accent);
  animation: pulse 1s infinite alternate;
}

/* Metrics Grid Panel Layout */
.metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}
.metric-block {
  background: rgba(0,0,0,0.2);
  border-radius: 10px;
  padding: 12px;
  border-left: 3px solid var(--border-light);
}
.metric-block.standard-span {
  grid-column: span 2;
  border-left-color: var(--amber-accent);
}
.metric-block:nth-child(2) { border-left-color: rgba(255,255,255,0.2); }
.metric-block:nth-child(3) { border-left-color: var(--cyan-accent); }

.metric-label {
  font-size: 0.7rem;
  opacity: 0.5;
  display: block;
  margin-bottom: 4px;
}
.metric-value {
  font-size: 1.3rem;
  font-weight: 700;
}
.metric-value small { font-size: 0.8rem; font-weight: 400; }

/* Tax Ledger Breakdown Block */
.tax-breakdown-panel {
  background: rgba(0, 0, 0, 0.25);
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border: 1px solid var(--border-light);
}
.tax-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  opacity: 0.85;
}
.text-error { color: var(--error-red); font-weight: 600; }

/* Sandbox Storage Card Styling */
.db-details {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: rgba(0, 0, 0, 0.18);
  padding: 12px;
  border-radius: 10px;
}
.db-stat-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
}
.db-label { opacity: 0.5; }
.db-val { font-weight: 600; }
.db-badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  text-transform: uppercase;
}
.db-badge.ready { background: rgba(0, 229, 255, 0.15); color: var(--cyan-accent); border: 1px solid rgba(0, 229, 255, 0.3); }
.db-badge.offline { background: rgba(255, 255, 255, 0.1); color: #aaa; }

/* Timeline Activity Streams */
.timeline-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 180px;
  overflow-y: auto;
}
.timeline-row {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.02);
  padding: 10px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.02);
}
.time-tag {
  font-size: 0.8rem;
  font-weight: 600;
  width: 70px;
  color: var(--cyan-accent);
}
.detail-tag {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-grow: 1;
}
.label-text { font-size: 0.85rem; }
.multiplier-badge {
  font-size: 0.65rem;
  background: rgba(255, 179, 0, 0.15);
  color: var(--amber-accent);
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
  border: 1px solid rgba(255, 179, 0, 0.25);
}

.count-badge { font-size: 0.7rem; background: rgba(255,255,255,0.1); padding: 2px 6px; border-radius: 10px; }
.empty-state { text-align: center; padding: 20px 0; opacity: 0.4; font-size: 0.85rem; }
.text-cyan { color: var(--cyan-accent); }
.text-amber { color: var(--amber-accent); }

/* --- INTERACTIVE MODAL COMPONENT STYLES --- */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 999;
  display: flex;
  align-items: flex-end;
}

.ios-bottom-sheet {
  width: 100%;
  background: rgba(26, 32, 40, 0.94);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border-radius: 24px 24px 0 0;
  padding: 12px 20px calc(env(safe-area-inset-bottom, 24px) + 16px) 20px;
  box-shadow: 0 -10px 30px rgba(0,0,0,0.5);
  box-sizing: border-box;
}

.sheet-handle {
  width: 40px; height: 5px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 3px;
  margin: 0 auto 14px auto;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.modal-header h4 { margin: 0; font-size: 1.1rem; letter-spacing: 0.5px; }
.close-btn {
  background: none; border: none;
  color: rgba(255,255,255,0.4);
  font-size: 1.4rem;
  cursor: pointer; padding: 4px;
}
.close-btn:active { color: var(--cyan-accent); }

.forecast-days-list { display: flex; flex-direction: column; gap: 10px; }
.forecast-row {
  display: grid;
  grid-template-columns: 1.11fr 1.1fr 0.8fr;
  align-items: center;
  padding: 12px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.02);
}
.day-name { font-weight: 600; font-size: 0.95rem; }
.day-condition { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; opacity: 0.9; }
.day-condition i { color: var(--cyan-accent); width: 16px; text-align: center; }
.day-temps { text-align: right; font-weight: 600; font-size: 0.95rem; }
.temp-low { opacity: 0.4; margin-left: 8px; font-weight: 400; }

/* Vue Structural Sheet Transitions Animation Configurations */
.sheet-slide-enter-active, .sheet-slide-leave-active {
  transition: opacity 0.28s ease;
}
.sheet-slide-enter-active .ios-bottom-sheet,
.sheet-slide-leave-active .ios-bottom-sheet {
  transition: transform 0.3s cubic-bezier(0.15, 1, 0.3, 1);
}
.sheet-slide-enter-from { opacity: 0; }
.sheet-slide-enter-from .ios-bottom-sheet { transform: translateY(100%); }
.sheet-slide-leave-to { opacity: 0; }
.sheet-slide-leave-to .ios-bottom-sheet { transform: translateY(100%); }

@keyframes pulse { to { transform: scale(1.1); opacity: 0.7; } }