/* ===========================
   LAYE — Organizer Shared CSS
   =========================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0
}

:root {
  --primary: #ce492a;
  --primary-light: #e05a38;
  --primary-dark: #a33a20;
  --bg: #f7f5f3;
  --bg-card: #fff;
  --sidebar-bg: #111;
  --sidebar-width: 268px;
  --text: #1a1a1a;
  --text-muted: #888;
  --border: #e8e4e0;
  --shadow: 0 2px 12px rgba(0, 0, 0, .07);
  --shadow-md: 0 4px 24px rgba(0, 0, 0, .11);
  --radius: 14px;
  --radius-sm: 8px;
  --green: #27ae60;
  --blue: #2a6bce;
  --orange: #e67e22;
  --purple: #7c3aed;
}

html,
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  height: 100%
}

a {
  text-decoration: none;
  color: inherit
}

svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0
}

button {
  font-family: 'Inter', sans-serif
}

/* SIDEBAR */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background: var(--sidebar-bg);
  display: flex;
  flex-direction: column;
  z-index: 100;
  transition: transform .3s ease
}

.sidebar-logo {
  padding: 26px 22px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  display: flex;
  align-items: center;
  gap: 10px
}

.sidebar-logo img{width: 50%;}

.logo-badge {
  background: rgba(206, 73, 42, .2);
  color: var(--primary);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 50px;
  letter-spacing: .5px
}

.sidebar-nav {
  flex: 1;
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  overflow-y: auto
}

.nav-section {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, .25);
  font-weight: 700;
  padding: 12px 12px 6px
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 13px;
  border-radius: var(--radius-sm);
  color: rgba(255, 255, 255, .5);
  font-size: 13.5px;
  font-weight: 500;
  transition: all .2s
}

.nav-item:hover {
  background: rgba(255, 255, 255, .06);
  color: rgba(255, 255, 255, .9)
}

.nav-item.active {
  background: var(--primary);
  color: #fff
}

.nav-item .badge-count {
  margin-left: auto;
  background: rgba(255, 255, 255, .15);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 50px
}

.nav-item.active .badge-count {
  background: rgba(255, 255, 255, .25)
}

.sidebar-footer {
  padding: 14px 10px;
  border-top: 1px solid rgba(255, 255, 255, .07);
  display: flex;
  align-items: center;
  gap: 10px
}

.user-mini {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0
}

.user-info span {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

.user-info small {
  font-size: 11px;
  color: rgba(255, 255, 255, .4)
}

.logout-btn {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, .35);
  transition: all .2s;
  flex-shrink: 0
}

.logout-btn:hover {
  background: rgba(255, 255, 255, .07);
  color: #fff
}

/* MAIN */
.main-content {
  margin-left: var(--sidebar-width);
  min-height: 100vh;
  display: flex;
  flex-direction: column
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 28px
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text);
  padding: 4px
}

.topbar-left {
  flex: 1
}

.topbar-title {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2
}

.topbar-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 1px
}

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

.btn-primary {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--primary);
  color: #fff;
  padding: 9px 18px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap
}

.btn-primary:hover {
  background: var(--primary-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(206, 73, 42, .35)
}

.btn-primary svg {
  width: 16px;
  height: 16px
}

.page-body {
  padding: 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px
}

/* SHARED COMPONENTS */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  animation: fadeUp .4s ease both
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px 14px;
  border-bottom: 1px solid var(--border)
}

.card-header h2 {
  font-size: 15px;
  font-weight: 700
}

.link-more {
  font-size: 13px;
  color: var(--primary);
  font-weight: 600;
  transition: opacity .2s
}

.link-more:hover {
  opacity: .7
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 600
}

.badge--green {
  background: rgba(39, 174, 96, .12);
  color: #1a7a3f
}

.badge--orange {
  background: rgba(230, 126, 34, .12);
  color: #a0560a
}

.badge--red {
  background: rgba(231, 76, 60, .12);
  color: #c0392b
}

.badge--blue {
  background: rgba(42, 107, 206, .12);
  color: #1a4f9f
}

.badge--grey {
  background: rgba(150, 150, 150, .12);
  color: #555
}

.overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .4);
  z-index: 90
}

@media(max-width:768px) {
  .sidebar {
    transform: translateX(-100%)
  }

  .sidebar.open {
    transform: translateX(0)
  }

  .overlay.active {
    display: block
  }

  .main-content {
    margin-left: 0
  }

  .menu-toggle {
    display: flex
  }

  .topbar,
  .page-body {
    padding-left: 18px;
    padding-right: 18px
  }
}