/* Sygmund Cruscotto — shared sidebar (Fase 4.1) */

.syg-sidebar {
  position: fixed;
  left: 0; top: 0; bottom: 0;
  width: 232px;
  background: #fff;
  border-right: 1px solid #E4E2DA;
  padding: 24px 0 0 0;
  display: flex; flex-direction: column;
  font-family: 'Lexend','DM Sans',system-ui,-apple-system,sans-serif;
  z-index: 50;
  box-shadow: 0 0 1px rgba(26,26,26,.04);
}

.syg-sidebar-brand {
  font-family: 'DM Serif Display',Georgia,serif;
  font-size: 26px;
  color: #2E2A6E;
  padding: 0 24px 18px;
  border-bottom: 1px solid #E4E2DA;
  margin-bottom: 14px;
  letter-spacing: -.01em;
  line-height: 1;
}

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

.syg-nav-item {
  margin: 2px 12px;
}

.syg-nav-link {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 14px;
  border-radius: 8px;
  color: #4A4A4A;
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  transition: background .15s, color .15s;
  cursor: pointer;
  min-height: 38px;
}

.syg-nav-link:hover {
  background: #F6F6F4;
  color: #1A1A1A;
}

.syg-nav-item.active > .syg-nav-link {
  background: #EEEDF6;
  color: #2E2A6E;
  font-weight: 600;
}

.syg-nav-item.disabled > .syg-nav-link {
  color: #B0B0B0;
  cursor: not-allowed;
  pointer-events: none;
}

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

.syg-nav-badge-soon {
  margin-left: auto;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .06em;
  background: #F1EEE9;
  color: #8A8A8A;
  padding: 2px 7px;
  border-radius: 10px;
  font-weight: 500;
  line-height: 1.3;
}

.syg-nav-badge {
  margin-left: auto;
  font-size: 11px;
  font-weight: 600;
  background: #2E2A6E;
  color: #fff;
  padding: 2px 7px;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
  line-height: 1.3;
}

.syg-nav-badge.alta {
  background: #B83232;
}

.syg-sidebar-user {
  padding: 14px 24px 18px;
  border-top: 1px solid #E4E2DA;
  margin-top: 12px;
  font-size: 13.5px;
}

.syg-user-name {
  display: block;
  font-weight: 500;
  color: #1A1A1A;
  margin-bottom: 8px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.syg-logout {
  border: 1px solid #D8D8D8;
  background: #fff;
  color: #4A4A4A;
  padding: 7px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  font-family: inherit;
  transition: background .15s, border-color .15s;
}

.syg-logout:hover {
  background: #F6F6F4;
  border-color: #B0B0B0;
}

/* Layout wrapper */
.syg-layout {
  min-height: 100vh;
  padding-left: 232px;
  display: flex; flex-direction: column;
  background: #FAFAF8;
}

.syg-layout-main {
  flex: 1;
  padding: 32px 40px;
  max-width: 1280px;
  width: 100%;
}

@media (max-width: 860px) {
  .syg-sidebar {
    position: static;
    width: 100%;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid #E4E2DA;
    padding: 18px 0 8px;
  }
  .syg-sidebar-nav {
    display: flex; flex-wrap: wrap;
    padding: 4px 0;
  }
  .syg-nav-item { margin: 2px 4px; }
  .syg-nav-link { padding: 8px 12px; min-height: 36px; }
  .syg-sidebar-user {
    padding: 10px 16px 14px;
    display: flex; align-items: center; gap: 14px;
    border-top: 1px solid #E4E2DA;
  }
  .syg-user-name { margin: 0; }
  .syg-layout { padding-left: 0; }
  .syg-layout-main { padding: 24px 20px; }
}
