/* ==========================================================================
   NetworkPulse Gentle & Minimal Design System
   Aesthetic: Gentle, Uncluttered, Calm Enterprise SaaS
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  /* Gentle Color Palette */
  --bg-app: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-subtle: #f8fafc;
  --bg-surface-hover: #f1f5f9;
  
  --border-subtle: #f1f5f9;
  --border-card: #e2e8f0;
  --border-strong: #cbd5e1;
  --border-focus: #2563eb;

  /* Typography Colors */
  --text-primary: #1e293b;    /* Clean dark slate */
  --text-secondary: #475569;  /* Muted slate */
  --text-muted: #64748b;      /* Gentle subtle gray */
  --text-light: #94a3b8;
  --text-inverse: #ffffff;

  /* Primary Deep Brand Blue */
  --primary-50: #eff6ff;
  --primary-100: #dbeafe;
  --primary-200: #bfdbfe;
  --primary-600: #2563eb;
  --primary-700: #1d4ed8;     /* Button & Brand Blue */
  --primary-800: #1e40af;

  /* Gentle Pastel Status Colors */
  --status-blue-bg: #eff6ff;
  --status-blue-text: #2563eb;

  --status-green-bg: #f0fdf4;
  --status-green-text: #16a34a;

  --status-amber-bg: #fffbeb;
  --status-amber-text: #d97706;

  --status-red-bg: #fef2f2;
  --status-red-text: #dc2626;

  --status-purple-bg: #f5f3ff;
  --status-purple-text: #7c3aed;

  /* Geometry & Subtle Shadows */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-full: 9999px;

  --shadow-none: none;
  --shadow-subtle: 0 1px 2px 0 rgba(0, 0, 0, 0.02);
  --shadow-card: 0 1px 3px 0 rgba(0, 0, 0, 0.02), 0 1px 2px -1px rgba(0, 0, 0, 0.02);
  --shadow-modal: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);

  /* Layout */
  --sidebar-width: 240px;
  --header-height: 64px;
  --transition-fast: 150ms ease;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Noto Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-app);
  color: var(--text-primary);
  font-size: 13.5px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

a {
  color: var(--primary-700);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* App Shell */
#app {
  display: flex;
  min-height: 100vh;
}

/* Left Sidebar */
.app-sidebar {
  width: var(--sidebar-width);
  background-color: var(--bg-surface);
  border-right: 1px solid var(--border-card);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 40;
}

.sidebar-brand {
  height: var(--header-height);
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-icon-box {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background-color: var(--primary-700);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}

.brand-text {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.2px;
}

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.sidebar-divider {
  height: 1px;
  background-color: var(--border-card);
  margin: 10px 4px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.nav-item:hover {
  background-color: var(--bg-surface-hover);
  color: var(--text-primary);
  text-decoration: none;
}

.nav-item.active {
  background-color: #eef4ff;
  color: var(--primary-800);
  font-weight: 600;
}

.nav-item svg {
  width: 17px;
  height: 17px;
  color: var(--text-muted);
}

.nav-item.active svg {
  color: var(--primary-700);
}

.sidebar-bottom {
  padding: 16px 14px;
  border-top: 1px solid var(--border-subtle);
}

.workspace-badge-box {
  padding: 10px 12px;
  background-color: #f1f5f9;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.workspace-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.workspace-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Main Area */
.app-main {
  flex: 1;
  margin-left: var(--sidebar-width);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Top App Header */
.app-header {
  height: var(--header-height);
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-card);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 32px;
  position: sticky;
  top: 0;
  z-index: 30;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-input-wrap {
  position: relative;
  width: 320px;
}

.search-input-wrap input {
  width: 100%;
  height: 36px;
  padding: 0 12px 0 34px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-card);
  background-color: #ffffff;
  font-size: 13px;
  color: var(--text-primary);
}

.search-input-wrap input:focus {
  outline: none;
  border-color: var(--border-focus);
}

.search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.btn-add-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  padding: 0 16px;
  background-color: var(--primary-700);
  color: #ffffff;
  font-weight: 600;
  font-size: 13px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.btn-add-primary:hover {
  background-color: var(--primary-800);
}

/* Page View Content */
.page-container {
  flex: 1;
  padding: 32px;
  max-width: 1240px;
  width: 100%;
}

.page-header-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.page-header-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* Mobile Navigation */
.mobile-nav {
  display: none;
}

/* Responsive */
@media (max-width: 900px) {
  .app-sidebar {
    transform: translateX(-100%);
    transition: transform var(--transition-fast);
  }
  .app-sidebar.open {
    transform: translateX(0);
  }
  .app-main {
    margin-left: 0;
    padding-bottom: 60px;
  }
  .page-container {
    padding: 16px;
  }
  .search-input-wrap {
    width: 200px;
  }
  .mobile-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 56px;
    background-color: var(--bg-surface);
    border-top: 1px solid var(--border-card);
    align-items: center;
    justify-content: space-around;
    z-index: 50;
  }
  .mobile-nav .nav-item {
    font-size: 11px;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
  }
  .mobile-nav .nav-item.active {
    color: var(--primary-700);
    font-weight: 600;
  }
}

