/* Layout Mimarisi */
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  font-family: var(--font-family);
  background-color: var(--bg-body);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
}

.app-wrapper {
  display: flex;
  min-height: 100vh;
}

/* SIDEBAR (Slate 900 Antrasit) */
.sidebar {
  width: 250px;
  background-color: var(--sidebar-bg);
  border-right: 1px solid var(--sidebar-border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 50;
}

.sidebar-header {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--sidebar-border);
}

.brand-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #0284c7 0%, #6366f1 100%);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 800;
  font-size: 18px;
}

.brand-info h1 {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  letter-spacing: -0.3px;
}

.brand-info span {
  font-size: 11.5px;
  color: var(--sidebar-text);
  font-weight: 500;
}

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

.nav-section-title {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #475569;
  padding: 12px 12px 6px 12px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  color: var(--sidebar-text);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  transition: background-color 0.15s, color 0.15s;
  cursor: pointer;
  border: 1px solid transparent;
}

.nav-item:hover {
  background-color: var(--sidebar-item-hover);
  color: #f1f5f9;
}

.nav-item.active {
  background-color: var(--sidebar-item-active);
  color: var(--sidebar-text-active);
  border-color: rgba(255, 255, 255, 0.08);
}

.nav-item .material-symbols-outlined {
  font-size: 20px;
}

.nav-item.disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.nav-item.disabled .badge-soon {
  margin-left: auto;
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 6px;
  background: #334155;
  color: #94a3b8;
  border-radius: 4px;
}

/* ALT MENÜ (İş Takibi → İş Kategorileri) */
.nav-group {
  display: flex;
  flex-direction: column;
}

.nav-submenu-toggle {
  margin-left: auto;
  padding: 2px;
  border: none;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transform: none !important; /* Zero Hover Float */
}

.nav-submenu-toggle .material-symbols-outlined {
  font-size: 18px;
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-submenu-toggle:hover {
  color: #f1f5f9;
  transform: none !important; /* Zero Hover Float */
}

.nav-submenu-toggle.expanded .material-symbols-outlined {
  transform: rotate(180deg);
}

.nav-submenu {
  display: flex;
  flex-direction: column;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  margin-left: 26px;
  border-left: 1px solid transparent;
  padding-left: 4px;
  transition: max-height 0.32s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.24s ease,
              border-color 0.24s ease,
              visibility 0.32s ease;
}

.nav-submenu.open {
  max-height: 240px;
  opacity: 1;
  visibility: visible;
  border-left-color: var(--sidebar-border);
}

.nav-submenu-item {
  padding: 8px 12px;
  font-size: 12px;
  border: none !important;
  background: transparent !important;
}

.nav-submenu-item .material-symbols-outlined {
  font-size: 16px;
}

/* Alt menü öğesi aktifken kutu (border + zemin) YOK — yalnızca metin/ikon vurgusu */
.nav-submenu-item.active {
  background: transparent !important;
  border-color: transparent !important;
  color: var(--sidebar-text-active);
}

.nav-submenu-item:hover {
  background: transparent !important;
  transform: none !important; /* Zero Hover Float */
}

.sidebar-footer {
  padding: 12px 14px 14px 14px;
  border-top: 1px solid var(--sidebar-border);
}

/* MAIN CONTENT */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background-color: var(--bg-body);
}

/* TOPBAR */
.topbar {
  height: 64px;
  background-color: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  position: sticky;
  top: 0;
  z-index: 40;
}

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

.page-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
  color: var(--text-main);
  letter-spacing: -0.3px;
}

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

/* PAGE CONTAINER */
/* Üstteki .topbar ile BİREBİR hizalı: tam genişlik + aynı 32px yatay padding.
   Sabit max-width/margin:auto kaldırıldı — geniş ekranda kenarlarda boşluk kalıyordu,
   başlığın ilk harfi ile kutu border'ı, sağda buton bitişi ile kutu border'ı aynı hizada. */
.page-container {
  padding: 28px 32px;
  width: 100%;
  max-width: none;
  margin: 0;
  box-sizing: border-box;
}

