.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 1.5rem;
  background: white;
  border-bottom: 1px solid #e0e0e0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

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

.header-left {
  flex: 1;
}

.header-center {
  flex: 0 0 auto;
}

.header-right {
  flex: 1;
  justify-content: flex-end;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  font-size: 1.125rem;
  color: #1a1a1a;
  text-decoration: none;
  border-radius: 8px;
  padding: 0.25rem 0;
  transition: opacity 0.2s;
}

.header-logo:hover {
  opacity: 0.8;
}

.header-logo-text {
  white-space: nowrap;
}

.header-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  border-radius: 8px;
  color: #666;
  cursor: pointer;
  transition: all 0.2s;
}

.header-icon-btn:hover {
  background: #f5f5f5;
  color: #1a1a1a;
}

.header-user {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
}

.header-user:hover {
  background: #f5f5f5;
}

.header-user-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #e0e0e0;
  color: #666;
}

.header-user-name {
  font-size: 0.875rem;
  font-weight: 500;
  color: #1a1a1a;
}

@media (max-width: 768px) {
  .header-logo-text {
    display: none;
  }

  .header-user-name {
    display: none;
  }
}
.nav-item {
  list-style: none;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.75rem 1rem;
  border: none;
  background: transparent;
  color: #666;
  font-size: 0.875rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}

.nav-link:hover {
  background: #f5f5f5;
  color: #1a1a1a;
}

.nav-link.active {
  background: #e8f5e9;
  color: #00b67a;
  font-weight: 600;
}

.nav-link.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #00b67a;
}

.nav-link.compact {
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
}

.nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.nav-label {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-chevron {
  flex-shrink: 0;
  opacity: 0.5;
  transform: rotate(-90deg);
  transition: transform 0.2s;
}

.nav-link[aria-expanded='true'] .nav-chevron {
  transform: rotate(0deg);
}

.nav-children {
  list-style: none;
  margin: 0;
  padding: 0;
  padding-left: 2.5rem;
}

.nav-children .nav-link {
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
}

@media (max-width: 768px) {
  .nav-link {
    padding: 1rem;
  }
}
.sidebar {
  width: 240px;
  display: flex;
  flex-direction: column;
  background: white;
  border-right: 1px solid #e0e0e0;
  overflow-y: auto;
  overflow-x: hidden;
}

.sidebar-section {
  display: flex;
  flex-direction: column;
}

.sidebar-primary {
  flex: 0 0 auto;
  padding: 1rem 0;
}

.sidebar-secondary {
  flex: 0 0 auto;
  padding: 1rem 0;
}

.sidebar-footer {
  flex: 0 0 auto;
  padding: 1rem 0;
  margin-top: auto;
}

.sidebar-nav {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar-divider {
  height: 1px;
  background: #e0e0e0;
  margin: 0.5rem 1rem;
}

/* Scrollbar styling */
.sidebar::-webkit-scrollbar {
  width: 6px;
}

.sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
  background: #e0e0e0;
  border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
  background: #bdbdbd;
}

@media (max-width: 768px) {
  .sidebar {
    position: fixed;
    left: 0;
    top: 64px;
    bottom: 0;
    transform: translateX(-100%);
    transition: transform 0.3s;
    z-index: 100;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
  }

  .sidebar.open {
    transform: translateX(0);
  }
}
.layout {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

.layout-body {
  display: flex;
  flex: 1;
  overflow: hidden;
}

.layout-content {
  flex: 1;
  overflow-y: auto;
  background: #f5f5f5;
  padding: 1.5rem;
}
/* Modern CSS Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
}

body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-family:
    -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell',
    'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

#root {
  isolation: isolate;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}
