/* SrijanDev Production Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Courier+Prime:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:wght,FILL@100..700,0..1&display=swap');

:root {
  --color-primary: #00236f;
  --color-on-primary: #ffffff;
  --color-primary-container: #1e3a8a;
  --color-on-primary-container: #90a8ff;
  --color-secondary: #006c49;
  --color-on-secondary: #ffffff;
  --color-secondary-container: #6cf8bb;
  --color-on-secondary-container: #00714d;
  --color-tertiary: #5c0008;
  --color-tertiary-container: #860011;
  --color-on-tertiary-container: #ff8a83;
  --color-error: #ba1a1a;
  --color-on-error: #ffffff;
  --color-error-container: #ffdad6;
  --color-on-error-container: #93000a;
  --color-background: #f8f9ff;
  --color-on-background: #0b1c30;
  --color-surface: #f8f9ff;
  --color-surface-dim: #cbdbf5;
  --color-surface-bright: #f8f9ff;
  --color-surface-container-lowest: #ffffff;
  --color-surface-container-low: #eff4ff;
  --color-surface-container: #e5eeff;
  --color-surface-container-high: #dce9ff;
  --color-surface-container-highest: #d3e4fe;
  --color-on-surface: #0b1c30;
  --color-on-surface-variant: #444651;
  --color-outline: #757682;
  --color-outline-variant: #c5c5d3;
}

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

html, body {
  width: 100%;
  height: 100%;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--color-background);
  color: var(--color-on-background);
  font-size: 14px;
  line-height: 20px;
  min-height: 100vh;
  overflow-x: hidden;
}

.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
  vertical-align: middle;
}

.pulse-red, .status-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.trail-line {
  stroke-dasharray: 5;
  animation: dash 10s linear infinite;
}

@keyframes dash {
  to { stroke-dashoffset: -100; }
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #c5c5d3;
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: #757682;
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(11, 28, 48, 0.5);
  z-index: 45;
  opacity: 0;
  transition: opacity 0.3s ease;
}

aside.sidebar {
  width: 280px;
  position: fixed;
  left: 0;
  top: 0;
  height: 100vh;
  background-color: var(--color-surface);
  border-right: 1px solid var(--color-outline-variant);
  z-index: 50;
  transition: transform 0.3s ease-in-out;
}

header.top-header {
  position: fixed;
  top: 0;
  right: 0;
  width: calc(100% - 280px);
  height: 64px;
  background-color: var(--color-surface);
  border-bottom: 1px solid var(--color-outline-variant);
  z-index: 40;
  transition: width 0.3s ease, left 0.3s ease;
}

main.main-content {
  margin-left: 280px;
  padding-top: 80px;
  padding-left: 32px;
  padding-right: 32px;
  padding-bottom: 48px;
  min-height: 100vh;
  transition: margin-left 0.3s ease;
}

@media (max-width: 1023px) {
  aside.sidebar {
    transform: translateX(-100%);
  }
  body.sidebar-open aside.sidebar {
    transform: translateX(0);
  }
  body.sidebar-open .sidebar-overlay {
    display: block;
    opacity: 1;
  }
  header.top-header {
    width: 100% !important;
    left: 0 !important;
  }
  main.main-content {
    margin-left: 0 !important;
    padding-left: 16px;
    padding-right: 16px;
  }
}

.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(11, 28, 48, 0.6);
  backdrop-filter: blur(4px);
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-backdrop.active {
  display: flex;
}

.app-view {
  display: none;
}
.app-view.active {
  display: block;
}
