.app-container {
  display: grid;
  grid-template-columns: 240px 1fr;
  grid-template-rows: 48px 1fr;
  height: 100vh;
  width: 100vw;
}

/* Header Styles */
.main-header {
  grid-column: 1 / -1;
  background-color: var(--header-bg);
  color: white;
  display: flex;
  align-items: center;
  padding: 0 16px;
  justify-content: space-between;
  z-index: 1000;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.waffle-btn {
  color: white;
  font-size: 20px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.waffle-btn:hover {
  background-color: rgba(0, 0, 0, 0.1);
}

.brand {
  font-weight: 600;
  font-size: 16px;
}

.header-center {
  flex: 1;
  max-width: 460px;
  margin: 0 auto;
  position: relative;
}

.search-bar {
  width: 100%;
  background-color: #ffffff;
  border: 1px solid #d1d1d1;
  height: 32px;
  border-radius: 4px;
  padding: 0 12px 0 36px;
  color: #323130;
  font-size: 13px;
}

.search-bar::placeholder {
  color: #605e5d;
}

.search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #605e5d;
  pointer-events: none;
  font-size: 16px;
}

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

.header-icon {
  color: white;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  font-size: 16px;
}

.header-icon:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.profile-pic {
  width: 32px;
  height: 32px;
  background-color: #0078d4;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 12px;
  color: white;
  margin-left: 8px;
}

/* Sidebar Styles */
.main-sidebar {
  background-color: var(--sidebar-bg);
  border-right: 1px solid var(--border-color);
  padding: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.sidebar-toggle-btn {
  height: 48px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  color: var(--text-main);
  font-size: 20px;
  cursor: pointer;
}

.sidebar-toggle-btn:hover {
  background-color: var(--row-hover);
}

.nav-link {
  display: flex;
  align-items: center;
  padding: 0 20px;
  height: 40px;
  color: var(--text-main);
  text-decoration: none;
  font-size: 13px;
  transition: background-color var(--transition-speed);
  position: relative;
  gap: 12px;
}

.nav-link .nav-icon {
  font-size: 18px;
  color: #605e5d;
  width: 20px;
  display: flex;
  justify-content: center;
}

.nav-link:hover {
  background-color: rgba(0, 0, 0, 0.04);
}

.nav-link.active {
  background-color: #edebe9;
  font-weight: 600;
}

.nav-link.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background-color: var(--primary-blue);
}

/* Collapsible Nav Group */
.nav-group {
  display: flex;
  flex-direction: column;
}

.nav-group-header {
  padding: 0 20px;
  height: 40px;
  font-weight: 400;
  color: var(--text-main);
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  transition: background-color var(--transition-speed);
}

.nav-group-header:hover {
  background-color: rgba(0, 0, 0, 0.04);
}

.nav-group-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-group-header-left .nav-icon {
  font-size: 18px;
  color: #605e5d;
  width: 20px;
  display: flex;
  justify-content: center;
}

.nav-group-header .chevron {
  font-size: 16px;
  color: #605e5d;
  transition: transform var(--transition-speed);
}

.nav-group.collapsed .chevron {
  transform: rotate(-90deg);
}

.nav-group-content {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: max-height 0.25s ease-in-out;
  background-color: rgba(0, 0, 0, 0.01);
}

.nav-group.collapsed .nav-group-content {
  max-height: 0 !important;
}

.nav-group-item {
  padding-left: 52px !important;
  height: 36px;
}

.sidebar-bottom {
  border-top: 1px solid var(--border-color);
  padding: 8px 0;
}

/* Main Content Area */
.main-content {
  overflow-y: auto;
  padding: 24px 40px;
  position: relative;
}

.content-header {
  margin-bottom: 20px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  font-size: 12px;
  margin-bottom: 8px;
}

.breadcrumb span.sep {
  color: #a19f9d;
  font-size: 10px;
  display: flex;
  align-items: center;
}

.page-title {
  font-size: 28px;
  font-weight: 600;
  color: var(--text-main);
  letter-spacing: -0.5px;
}
