:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  --danger: #dc2626;
  --success: #16a34a;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.5;
}

#app-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.auth-screen-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
}

.auth-card {
  text-align: center;
  width: 100%;
  max-width: 360px;
}

.auth-subtitle {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.app-header {
  background-color: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
}

.brand {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--primary);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.user-email {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.app-main {
  flex: 1;
  padding: 1rem;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

.hidden {
  display: none !important;
}

.view-section {
  display: block;
}

.view-section.hidden {
  display: none !important;
}

@media (min-width: 768px) {
  .dashboard-layout {
    display: grid !important;
    grid-template-columns: 240px 1fr;
    grid-template-rows: auto 1fr;
    min-height: 100vh;
  }
  .app-header {
    grid-column: 1 / -1;
  }
  .app-sidebar {
    background-color: var(--bg-card);
    border-right: 1px solid var(--border-color);
    padding: 1.5rem 1rem;
    height: calc(100vh - 65px);
    position: sticky;
    top: 65px;
  }
  .app-main {
    padding: 2rem;
  }
}