﻿:root {
  --bg: #f8f0f5;
  --bg-soft: #fff7fb;
  --card: #ffffff;
  --card-strong: #fff4f9;
  --text: #29252a;
  --muted: #7d6f77;
  --accent: #f18ec2;
  --accent-2: #e667ad;
  --success: #3f9157;
  --danger: #be3f66;
  --border: #f0d9e6;
  --sidebar: #2d2d33;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "IBM Plex Sans", sans-serif;
  background: radial-gradient(circle at 20% 20%, #ffe6f3 0%, var(--bg) 42%),
    linear-gradient(180deg, #fdf6fb 0%, #f7edf4 100%);
  min-height: 100vh;
  color: var(--text);
}

.bg-blur {
  position: fixed;
  border-radius: 999px;
  filter: blur(70px);
  opacity: 0.25;
  pointer-events: none;
}

.bg-blur-1 {
  width: 340px;
  height: 340px;
  background: #ffc2df;
  top: -120px;
  left: -80px;
}

.bg-blur-2 {
  width: 320px;
  height: 320px;
  background: #ffd8ec;
  bottom: -100px;
  right: -40px;
}

.page {
  max-width: none;
  margin: 0;
  padding: 16px;
  position: relative;
  z-index: 1;
}

#appView {
  min-height: 100vh;
}

.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 0 16px 302px;
  width: calc(100% - 302px);
  position: sticky;
  top: 12px;
  z-index: 20;
  background: #ffffff;
  border-color: var(--border);
}

.app-header h2,
.app-header p {
  color: var(--text);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
  white-space: nowrap;
  flex-shrink: 0;
}

.notification-menu {
  position: relative;
  flex: 0 0 auto;
}

.profile-menu {
  flex: 0 0 auto;
}

.notification-button {
  display: flex;
  align-items: center;
  gap: 0;
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  justify-content: center;
  background: linear-gradient(180deg, #fff7fb, #ffeef7);
  color: var(--text);
  border: 1px solid var(--border);
}

.notification-bell {
  width: 24px;
  min-width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  background: #ffe7f4;
  font-size: 1rem;
  font-weight: 700;
}

.notification-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: #d85a7d;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.notification-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 320px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #ffffff;
  padding: 12px;
  box-shadow: 0 14px 32px rgba(116, 88, 106, 0.18);
}

.notification-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.notification-head h4 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
}

.notification-clear {
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 0.82rem;
}

.notification-list {
  display: grid;
  gap: 8px;
  max-height: 280px;
  overflow-y: auto;
}

.notification-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px;
  background: #fff9fc;
}

.notification-item.unread {
  border-color: #f3b6d5;
  box-shadow: inset 0 0 0 1px rgba(243, 182, 213, 0.45);
}

.notification-item p {
  margin: 0 0 4px;
  color: var(--text);
}

.notification-item small {
  color: var(--muted);
}

.calendar-widget {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fffafd;
  padding: 12px;
  margin-bottom: 12px;
}

#staffCalendarFullCalendar {
  min-height: 520px;
}

.fc .fc-toolbar-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.05rem;
}

.fc .fc-button {
  border-radius: 10px;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.fc .fc-button:not(:disabled).fc-button-active,
.fc .fc-button:not(:disabled):active {
  background: #d85a7d;
}

.fc .fc-daygrid-day-number {
  color: var(--text);
}

.fc .fc-daygrid-event {
  border-radius: 8px;
  border: 0;
  background: #ef8db8;
}

.fc-event-staff {
  display: flex;
  align-items: center;
  gap: 6px;
}

.fc-event-avatar {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  object-fit: cover;
  background: #fff;
}

.fc-event-staff-name {
  font-size: 0.72rem;
  line-height: 1.1;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.calendar-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.calendar-toolbar h4 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
}

.calendar-toolbar button {
  padding: 6px 10px;
  border-radius: 10px;
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 6px;
}

.calendar-weekday {
  text-align: center;
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 700;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.calendar-day {
  min-height: 72px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 6px;
  background: #fff;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 4px;
}

.calendar-day.is-outside {
  opacity: 0.45;
}

.calendar-day.is-today {
  border-color: #f3b6d5;
  box-shadow: inset 0 0 0 1px rgba(243, 182, 213, 0.5);
}

.calendar-day-number {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text);
}

.calendar-day-events {
  font-size: 0.72rem;
  color: #7f3b5d;
  line-height: 1.3;
}

.profile-menu {
  position: relative;
}

.profile-button {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(180deg, #fff7fb, #ffeef7);
  color: var(--text);
  border: 1px solid var(--border);
}

.profile-button-text {
  font-weight: 600;
}

.avatar-img {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 2px solid #f3bfd8;
  background: #fff5fb;
}

.profile-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 280px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #ffffff;
  padding: 12px;
  box-shadow: 0 14px 32px rgba(116, 88, 106, 0.18);
}

.profile-summary {
  border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
  padding-bottom: 8px;
}

.profile-dropdown h4 {
  margin: 0 0 6px;
  font-family: "Space Grotesk", sans-serif;
}

.profile-dropdown p {
  margin: 0 0 6px;
  color: var(--text);
}

.dropdown-item,
.dropdown-logout {
  width: 100%;
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-start;
  border-radius: 10px;
  padding: 10px 12px;
}

.dropdown-item {
  background: #fff9fc;
  border: 1px solid var(--border);
  color: #6f3a57;
}

.dropdown-item:hover,
.dropdown-logout:hover {
  background: #ffeef7;
}

.dropdown-icon {
  width: 22px;
  min-width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  background: #ffe7f4;
  font-size: 0.85rem;
}

.profile-section-meta {
  display: grid;
  gap: 10px;
}

.dashboard-shell {
  display: block;
}

.content-area {
  min-width: 0;
  margin-left: 302px;
}

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 278px;
  height: 100vh;
  border-radius: 0;
  margin: 0;
  overflow-y: auto;
  z-index: 30;
  transition: width 0.2s ease;
}

.sidebar-toggle {
  width: 100%;
  margin-bottom: 10px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #f7d0e7;
}

.sidebar-logo {
  width: 100%;
  max-width: 180px;
  height: auto;
  display: block;
  margin: 4px auto 12px;
  object-fit: contain;
  transition: all 0.2s ease;
}

.sidebar-sub {
  margin-bottom: 12px;
}

.side-nav {
  display: grid;
  gap: 8px;
}

.side-group {
  display: grid;
  gap: 6px;
}

.side-group-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: #f5f5f8;
  padding: 10px 12px;
  border-radius: 10px;
}

.side-group-toggle.active {
  border-color: rgba(241, 142, 194, 0.65);
}

.group-caret {
  margin-left: auto;
  font-weight: 700;
}

.side-submenu {
  display: grid;
  gap: 6px;
  padding-left: 10px;
}

.side-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: #f5f5f8;
  padding: 10px 12px;
  border-radius: 10px;
}

.side-icon {
  width: 24px;
  min-width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.15);
  font-weight: 700;
}

.side-label {
  white-space: nowrap;
}

.side-link.active {
  background: linear-gradient(135deg, #f29ccb, #e871b3);
  color: #ffffff;
  border-color: transparent;
}

.sub-link {
  background: rgba(255, 255, 255, 0.08);
}

.dashboard-section {
  animation: fadeInUp 0.35s ease;
}

.panel {
  background: linear-gradient(155deg, var(--card), var(--card-strong));
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 8px 24px rgba(130, 102, 119, 0.14);
  margin-bottom: 16px;
  animation: fadeInUp 0.45s ease;
}

.auth-panel {
  max-width: 620px;
  margin: 70px auto;
}

h1,
h2,
h3 {
  font-family: "Space Grotesk", sans-serif;
  margin: 0 0 8px;
}

.eyebrow {
  display: inline-block;
  padding: 4px 10px;
  margin-bottom: 10px;
  border-radius: 999px;
  color: #a85282;
  background: #ffe7f4;
  border: 1px solid #f6cbe1;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

p {
  margin-top: 0;
  color: var(--muted);
}

.grid-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 600;
  font-size: 0.95rem;
}

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

input,
select,
textarea {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  background: #fff;
}

textarea {
  min-height: 100px;
  resize: vertical;
}

.full {
  grid-column: 1 / -1;
}

button {
  border: 0;
  border-radius: 12px;
  padding: 11px 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #ffffff;
  font-weight: 700;
  cursor: pointer;
}

button:hover {
  transform: translateY(-1px);
}

.error {
  color: var(--danger);
  min-height: 1.2em;
}

.hidden {
  display: none;
}

.stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.stat {
  background: linear-gradient(180deg, #ffffff, #fff3f9);
  border-radius: 14px;
  padding: 12px;
  border: 1px solid var(--border);
}

.stat strong {
  display: block;
  font-size: 1.4rem;
  font-family: "Space Grotesk", sans-serif;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.filters {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 12px;
}

.inline-toggle {
  justify-content: center;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  border: 1px dashed var(--border);
  border-radius: 10px;
  padding: 10px;
  margin-top: auto;
}

.inline-toggle input {
  width: 16px;
  height: 16px;
}

.insights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.list li {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fffafd;
  padding: 10px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}

.section-head p {
  font-size: 0.9rem;
}

.tasks {
  display: grid;
  gap: 10px;
}

.task {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  background: #fffafd;
}

.task-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.badge {
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
}

.status-OPEN,
.status-IN_PROGRESS {
  background: #607d8b;
}

.status-COMPLETED_PENDING {
  background: #ef8db8;
}

.status-APPROVED {
  background: var(--success);
}

.status-REJECTED {
  background: var(--danger);
}

.task-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.task-meta {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 8px 0;
}

.empty {
  color: var(--muted);
  font-style: italic;
}

.task-actions button {
  padding: 8px 10px;
}

.updates-list {
  display: grid;
  gap: 10px;
}

.update-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  background: #fffafd;
}

.update-image {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: 10px;
  margin: 10px 0;
  border: 1px solid var(--border);
}

.update-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.update-head h4 {
  margin: 0;
}

.update-tag {
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 0.75rem;
  background: #ffe8f4;
  color: #7f3b5d;
  border: 1px solid #f3c4dc;
}

.danger-btn {
  background: linear-gradient(135deg, #d85a7d, #c8466c);
}

.muted-note {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.sidebar.panel {
  background: linear-gradient(180deg, #303037, #26262d);
  border-color: #3a3a44;
  padding-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sidebar h3,
.sidebar p {
  color: #f4f4f8;
}

.sidebar .eyebrow {
  background: rgba(255, 255, 255, 0.1);
  color: #f6c5df;
  border-color: rgba(255, 255, 255, 0.18);
}

.sidebar-presence {
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 10px;
}

.presence-title {
  color: #d8ced6;
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.presence-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.presence-user {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  overflow: hidden;
  border: 2px solid transparent;
  background: #2b2830;
  transition: transform 0.15s ease, filter 0.15s ease, border-color 0.15s ease;
}

.presence-user img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.presence-user.is-active {
  border-color: #f6b2d3;
  box-shadow: 0 0 0 2px rgba(242, 153, 198, 0.25);
  filter: brightness(1.08);
}

.presence-user.is-inactive {
  filter: grayscale(0.9) brightness(0.45);
}

body.sidebar-collapsed .sidebar {
  width: 88px;
}

body.sidebar-collapsed .content-area,
body.sidebar-collapsed .app-header {
  margin-left: 112px;
  width: calc(100% - 112px);
}

body.sidebar-collapsed .sidebar h3,
body.sidebar-collapsed .sidebar-sub,
body.sidebar-collapsed .sidebar .eyebrow,
body.sidebar-collapsed .side-label {
  display: none;
}

body.sidebar-collapsed .sidebar-logo {
  max-width: 52px;
}

body.sidebar-collapsed .side-link {
  justify-content: center;
  padding-left: 8px;
  padding-right: 8px;
}

body.sidebar-collapsed .side-group-toggle {
  justify-content: center;
}

body.sidebar-collapsed .side-submenu,
body.sidebar-collapsed .group-caret {
  display: none;
}

body.sidebar-collapsed .sidebar-presence {
  display: none;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

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

@media (max-width: 900px) {
  .app-header {
    position: static;
  }

  .profile-button-text {
    display: none;
  }

  .profile-dropdown {
    width: 220px;
  }

  .notification-dropdown {
    width: 250px;
  }

  .dashboard-shell {
    display: block;
  }

  .sidebar {
    position: static;
    width: auto;
    height: auto;
    border-radius: 18px;
    margin-bottom: 12px;
  }

  .content-area,
  .app-header {
    margin-left: 0;
    width: auto;
  }

  body.sidebar-collapsed .content-area,
  body.sidebar-collapsed .app-header {
    margin-left: 0;
    width: auto;
  }

  .side-nav {
    grid-template-columns: 1fr 1fr;
  }

  .side-submenu {
    padding-left: 0;
  }

  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split,
  .grid-two,
  .filters,
  .insights {
    grid-template-columns: 1fr;
  }
}
