:root {
  --admin-navy: #061d4f;
  --admin-navy-2: #031338;
  --admin-blue: #095dde;
  --admin-sky: #22b8f2;
  --admin-cyan: #15d1dc;
  --admin-bg: #eef6ff;
  --admin-panel: #ffffff;
  --admin-soft: #f4f9ff;
  --admin-line: #dce9f7;
  --admin-text: #061d4f;
  --admin-muted: #647aa3;
  --admin-danger: #d93044;
  --admin-shadow: 0 18px 42px rgba(16, 49, 103, 0.12);
  --admin-soft-shadow: 0 10px 24px rgba(18, 70, 128, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  scrollbar-color: #0e6fea #e8f2ff;
  scrollbar-width: thin;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--admin-text);
  background:
    radial-gradient(circle at 70% 0%, rgba(61, 180, 255, 0.18), transparent 32%),
    linear-gradient(135deg, #f7fbff 0%, #edf6ff 48%, #f8fbff 100%);
}

body::-webkit-scrollbar {
  width: 10px;
}

body::-webkit-scrollbar-track {
  background: #e8f2ff;
}

body::-webkit-scrollbar-thumb {
  background: #0e6fea;
  border-radius: 999px;
}

a {
  color: inherit;
}

.eyebrow {
  margin: 0 0 8px;
  color: #005ee8;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand-mark {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 14px;
  background: linear-gradient(135deg, #05d6ff, #1259ff 48%, #002563);
  box-shadow: 0 16px 32px rgba(0, 132, 255, 0.32);
  transform: rotate(30deg);
}

.brand-mark span {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 0 18px rgba(255, 255, 255, 0.45);
}

.btn,
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn:hover,
.icon-btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, #0872ff, #0647c7);
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(9, 93, 222, 0.25);
}

.btn-secondary,
.btn-outline {
  background: #ffffff;
  border-color: var(--admin-line);
  color: var(--admin-blue);
  box-shadow: var(--admin-soft-shadow);
}

.btn-light {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.btn-danger,
.icon-btn.danger {
  background: #fff1f3;
  color: var(--admin-danger);
  border-color: #ffd1d8;
}

.btn-full {
  width: 100%;
}

.admin-login-page {
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(3, 19, 56, 0.92), rgba(9, 93, 222, 0.62)),
    url("site-development-bg.png") center/cover no-repeat;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 460px;
}

.login-visual {
  display: flex;
  align-items: flex-end;
  padding: 56px;
}

.brand-card {
  max-width: 620px;
  color: #ffffff;
}

.brand-card .eyebrow {
  color: #bfeeff;
}

.brand-card h1 {
  margin: 0 0 16px;
  font-size: 46px;
  line-height: 1.05;
}

.brand-card p {
  max-width: 560px;
  margin: 0;
  color: #eaf6ff;
  font-size: 17px;
  line-height: 1.7;
}

.login-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  padding: 48px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.14);
}

.back-link {
  position: absolute;
  top: 28px;
  color: var(--admin-blue);
  font-weight: 800;
  text-decoration: none;
}

.panel-heading h2 {
  margin: 0 0 10px;
  color: var(--admin-navy);
  font-size: 34px;
}

.panel-heading p:last-child {
  margin: 0 0 28px;
  color: var(--admin-muted);
  line-height: 1.6;
}

.admin-form {
  display: grid;
  gap: 18px;
}

.form-group {
  display: grid;
  gap: 8px;
}

.form-group label {
  color: var(--admin-text);
  font-size: 14px;
  font-weight: 800;
}

.form-group input,
.form-group textarea {
  width: 100%;
  border: 1px solid var(--admin-line);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--admin-text);
  background: #f8fbff;
  font: inherit;
}

.form-group input {
  min-height: 48px;
}

.form-group textarea {
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: 3px solid rgba(34, 184, 242, 0.18);
  border-color: var(--admin-sky);
  background: #ffffff;
}

.form-row-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--admin-muted);
  font-size: 13px;
}

.check-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.alert {
  margin-bottom: 20px;
  border-radius: 8px;
  padding: 13px 14px;
  font-weight: 800;
  box-shadow: var(--admin-soft-shadow);
}

.alert-error {
  background: #fff1f3;
  color: var(--admin-danger);
  border: 1px solid #ffd1d8;
}

.alert-success {
  background: #eefaf3;
  color: #167245;
  border: 1px solid #bfe9cf;
}

.test-account {
  display: grid;
  gap: 5px;
  margin-top: 26px;
  padding: 16px;
  border: 1px solid var(--admin-line);
  border-radius: 8px;
  background: #f8fbff;
  color: var(--admin-muted);
  font-size: 13px;
}

.test-account strong {
  color: var(--admin-navy);
}

.admin-app-page {
  min-height: 100vh;
  overflow-x: hidden;
}

.admin-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  width: 318px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 34px 24px 24px;
  color: #ffffff;
  background:
    radial-gradient(circle at 20% 18%, rgba(0, 210, 255, 0.28), transparent 24%),
    radial-gradient(circle at 100% 92%, rgba(0, 96, 255, 0.18), transparent 34%),
    linear-gradient(160deg, #031338 0%, #06265f 48%, #001436 100%);
  box-shadow: 26px 0 60px rgba(4, 22, 64, 0.16);
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 4px 6px 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.17);
}

.sidebar-brand strong,
.sidebar-brand span {
  display: block;
}

.sidebar-brand strong {
  font-size: 29px;
  line-height: 1;
}

.sidebar-brand > div > span {
  margin-top: 7px;
  color: #b8c9e8;
  font-size: 17px;
}

.sidebar-nav {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.sidebar-nav a {
  position: relative;
  display: grid;
  grid-template-columns: 42px 1fr 32px;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 8px 12px;
  color: #e8f3ff;
  text-decoration: none;
  font-weight: 800;
}

.sidebar-nav a span {
  justify-self: end;
  color: #a8bbdd;
  font-size: 14px;
  font-weight: 500;
}

.sidebar-nav a.active,
.sidebar-nav a:hover {
  background: linear-gradient(135deg, #0c91ff, #083cc4);
  border-color: rgba(32, 214, 255, 0.8);
  box-shadow: 0 12px 32px rgba(0, 130, 255, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.sidebar-footer {
  display: grid;
  gap: 18px;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.17);
}

.sidebar-user {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 14px;
  align-items: center;
  min-height: 92px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.05);
}

.sidebar-user strong,
.sidebar-user span,
.sidebar-user em {
  display: block;
}

.sidebar-user strong {
  line-height: 1.2;
}

.sidebar-user span {
  margin-top: 4px;
  color: #c7d7f3;
  font-size: 13px;
}

.sidebar-user em {
  position: relative;
  margin-top: 7px;
  padding-left: 16px;
  color: #dbe9ff;
  font-size: 13px;
  font-style: normal;
}

.sidebar-user em::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #20d88c;
}

.admin-avatar {
  display: inline-grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: linear-gradient(135deg, #e9f7ff, #a8d8ff);
  color: var(--admin-blue);
  font-weight: 900;
}

.admin-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sidebar-avatar {
  width: 58px;
  height: 58px;
  border: 3px solid rgba(255, 255, 255, 0.86);
}

.top-avatar {
  width: 44px;
  height: 44px;
}

.admin-main {
  min-height: 100vh;
  margin-left: 318px;
  padding: 24px 34px 34px;
}

.admin-globalbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 16px;
}

.menu-button {
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid var(--admin-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: var(--admin-soft-shadow);
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 2px 0;
  border-radius: 999px;
  background: #3b6aa0;
}

.globalbar-right {
  display: grid;
  grid-template-columns: 72px minmax(250px, 306px);
  justify-content: flex-end;
  align-items: start;
  gap: 14px;
}

.notification-wrap,
.date-wrap {
  position: relative;
}

.notification-wrap {
  grid-column: 1;
}

.date-wrap {
  grid-column: 2;
}

.notification-pill,
.top-user-card,
.date-widget {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 68px;
  border: 1px solid var(--admin-line);
  border-radius: 28px;
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: var(--admin-soft-shadow);
  text-decoration: none;
}

.notification-pill {
  position: relative;
  width: 72px;
  justify-content: center;
  cursor: pointer;
}

.notification-pill strong {
  position: absolute;
  top: 8px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #0d62f2;
  color: #ffffff;
  font-size: 12px;
}

.bell-mark {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: #0d62f2;
}

.admin-svg-icon svg,
.bell-mark svg,
.button-icon svg,
.chevron-icon svg,
.date-icon svg,
.stat-icon svg,
.module-icon svg,
.nav-ico svg {
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.top-user-card {
  min-width: 252px;
  color: var(--admin-text);
}

.top-user-card div strong,
.top-user-card div span {
  display: block;
  text-align: right;
}

.top-user-card div span,
.date-widget span {
  margin-top: 4px;
  color: var(--admin-muted);
  font-size: 13px;
}

.top-user-card em,
.date-widget em {
  color: #426da5;
  font-style: normal;
}

.date-widget {
  position: relative;
  width: 100%;
  min-width: 240px;
  border-radius: 14px;
  cursor: pointer;
}

.date-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: #e6f3ff;
  color: #0d62f2;
  font-size: 24px;
}

.date-widget strong {
  display: block;
  color: #0d62f2;
}

.top-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 60;
  display: none;
  border: 1px solid var(--admin-line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 60px rgba(8, 36, 86, 0.18);
}

.top-panel.is-open {
  display: block;
}

.notification-panel {
  width: 300px;
  padding: 18px;
}

.notification-panel h3 {
  margin: 0 0 12px;
  color: #005ee8;
  font-size: 14px;
  text-transform: uppercase;
}

.notification-panel a {
  display: block;
  border-radius: 12px;
  padding: 12px;
  color: var(--admin-navy);
  text-decoration: none;
  font-weight: 800;
}

.notification-panel a:hover {
  background: #eef6ff;
}

.notification-panel span {
  display: block;
  margin-top: 4px;
  color: var(--admin-muted);
  font-size: 12px;
  font-weight: 600;
}

.calendar-panel {
  width: 330px;
  padding: 18px;
}

.calendar-head {
  display: grid;
  grid-template-columns: 36px 1fr 36px;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.calendar-head strong {
  color: var(--admin-navy);
  text-align: center;
}

.calendar-head button,
.calendar-grid button {
  border: 0;
  cursor: pointer;
}

.calendar-head button {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #e7f2ff;
  color: #0d62f2;
  font-weight: 900;
}

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

.calendar-weekdays {
  margin-bottom: 8px;
  color: var(--admin-muted);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.calendar-grid span,
.calendar-grid button {
  display: grid;
  place-items: center;
  height: 36px;
  border-radius: 10px;
  font-weight: 800;
}

.calendar-grid button {
  background: #f4f8fd;
  color: var(--admin-navy);
}

.calendar-grid button:hover,
.calendar-grid button.is-selected {
  background: #0d62f2;
  color: #ffffff;
}

.sidebar-collapsed .admin-sidebar {
  transform: translateX(-100%);
}

.sidebar-collapsed .admin-main {
  margin-left: 0;
}

.admin-topbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.admin-topbar h1 {
  margin: 0;
  color: var(--admin-navy);
  font-size: 40px;
  line-height: 1.08;
}

.dashboard-titlebar h1 {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 44px;
}

.title-dot {
  display: inline-block;
  width: 24px;
  height: 24px;
  margin-right: 10px;
  border: 8px solid #dcecff;
  border-radius: 50%;
  background: #1168f4;
  vertical-align: middle;
}

.page-subtitle {
  max-width: 760px;
  margin: 10px 0 0;
  color: var(--admin-muted);
  line-height: 1.6;
}

.topbar-actions,
.welcome-actions,
.table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.welcome-card,
.admin-card,
.stat-card {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--admin-line);
  border-radius: 8px;
  box-shadow: var(--admin-shadow);
}

a.stat-card,
a.module-item {
  color: inherit;
  text-decoration: none;
}

.welcome-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px;
  margin-bottom: 24px;
}

.dashboard-hero {
  position: relative;
  min-height: 246px;
  overflow: hidden;
  align-items: center;
  padding: 40px;
  color: #ffffff;
  background:
    linear-gradient(90deg, rgba(2, 14, 47, 0.99), rgba(2, 35, 112, 0.88) 46%, rgba(7, 85, 226, 0.08)),
    url("admin-hero-dashboard.png?v=20260531") center right/cover no-repeat;
}

.dashboard-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 38%, rgba(35, 205, 255, 0.16), transparent 20%),
    linear-gradient(115deg, transparent 0 56%, rgba(9, 93, 222, 0.12) 56% 100%);
  pointer-events: none;
}

.dashboard-hero > div {
  position: relative;
  z-index: 1;
  max-width: 620px;
}

.dashboard-hero .eyebrow {
  color: #14d9ff;
}

.welcome-card h2 {
  margin: 0 0 16px;
  color: inherit;
  font-size: 33px;
}

.welcome-card p:last-child {
  max-width: 720px;
  margin: 0;
  color: inherit;
  line-height: 1.75;
  opacity: 0.9;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(130px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.stat-card {
  position: relative;
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 13px;
  min-height: 136px;
  padding: 22px 18px 18px;
  overflow: hidden;
}

.stat-card::after {
  content: "";
  position: absolute;
  right: 36px;
  bottom: 0;
  width: 58px;
  height: 4px;
  border-radius: 999px 999px 0 0;
  background: currentColor;
}

.stat-icon,
.module-icon,
.nav-ico {
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  font-weight: 900;
}

.stat-icon {
  width: 58px;
  height: 58px;
  background: #e7f2ff;
  color: #0d62f2;
  font-size: 20px;
}

.module-icon,
.nav-ico {
  width: 38px;
  height: 38px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

.module-icon {
  width: 42px;
  height: 42px;
  background: #e7f2ff;
  color: #0d62f2;
}

.stat-card strong {
  display: block;
  color: var(--admin-navy);
  font-size: 30px;
  line-height: 1;
}

.stat-card p {
  margin: 6px 0 0;
  color: var(--admin-muted);
  font-size: 13px;
}

.stat-card em {
  grid-column: 2;
  align-self: end;
  color: #005ee8;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.stat-card em::after,
.inline-link::after {
  content: " >";
}

.stat-announcements { color: #0d6efd; }
.stat-notes { color: #23b26d; }
.stat-formations { color: #7a4ee6; }
.stat-events { color: #ff7a1a; }
.stat-productions { color: #ef476f; }
.stat-gallery { color: #10b7bd; }

.stat-announcements .stat-icon,
.module-icon.icon-announce { background: #e7f2ff; color: #0d62f2; }
.stat-notes .stat-icon,
.module-icon.icon-note { background: #dff8eb; color: #23b26d; }
.stat-formations .stat-icon,
.module-icon.icon-formation { background: #efe7ff; color: #7a4ee6; }
.stat-events .stat-icon,
.module-icon.icon-event { background: #fff0df; color: #ff7a1a; }
.stat-productions .stat-icon,
.module-icon.icon-folder { background: #ffe6ed; color: #ef476f; }
.stat-gallery .stat-icon,
.module-icon.icon-image { background: #defbfc; color: #10b7bd; }
.stat-messages .stat-icon,
.module-icon.icon-message { background: #e4f8ec; color: #14a44d; }

.content-grid,
.dashboard-grid {
  display: grid;
  gap: 16px;
  margin-bottom: 24px;
}

.content-grid {
  grid-template-columns: minmax(320px, 0.85fr) minmax(480px, 1.15fr);
}

.dashboard-grid {
  grid-template-columns: minmax(280px, 0.9fr) minmax(360px, 1.15fr) minmax(310px, 1fr);
}

.manager-grid {
  grid-template-columns: minmax(340px, 0.75fr) minmax(560px, 1.25fr);
}

.admin-card {
  padding: 24px;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.card-header h2 {
  margin: 0;
  color: var(--admin-navy);
  font-size: 21px;
}

.module-list,
.event-row-list {
  display: grid;
  gap: 12px;
}

.module-item,
.event-row {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 14px;
  min-height: 58px;
  padding: 10px;
  border: 1px solid var(--admin-line);
  border-radius: 8px;
  background: #fbfdff;
  box-shadow: 0 8px 18px rgba(19, 59, 112, 0.05);
}

.event-row {
  grid-template-columns: 62px 1fr auto;
}

.module-item strong,
.module-item span,
.event-row strong,
.event-row span {
  display: block;
}

.module-item span,
.event-row span {
  margin-top: 4px;
  color: var(--admin-muted);
  font-size: 13px;
}

.activity-item em,
.arrow-mark {
  color: #5b75a5;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.inline-link {
  display: inline-block;
  margin-top: 16px;
  color: #005ee8;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.empty-state {
  border: 1px dashed var(--admin-line);
  border-radius: 8px;
  padding: 18px;
  color: var(--admin-muted);
  background: #fbfdff;
}

.icon-btn {
  min-height: 34px;
  padding: 8px 10px;
  background: #edf6ff;
  color: var(--admin-blue);
  font-size: 12px;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.admin-table th,
.admin-table td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--admin-line);
  text-align: left;
  vertical-align: middle;
}

.admin-table td {
  max-width: 320px;
  overflow-wrap: anywhere;
  line-height: 1.35;
}

.admin-table th {
  color: var(--admin-muted);
  font-size: 12px;
  text-transform: uppercase;
}

.admin-table th:last-child,
.admin-table td.actions-cell {
  width: 180px;
}

.row-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.row-actions form {
  margin: 0;
}

.row-actions .icon-btn {
  min-width: 92px;
}

.date-box {
  display: grid;
  place-items: center;
  width: 62px;
  height: 58px;
  border-radius: 8px;
  background: #edf6ff;
  color: var(--admin-navy);
  font-size: 20px;
  font-weight: 900;
}

.date-box span {
  margin: 0;
  color: var(--admin-muted);
  font-size: 11px;
}

.current-file {
  padding: 10px 12px;
  border-radius: 8px;
  background: #edf6ff;
  color: var(--admin-muted);
  font-size: 13px;
}

.current-file a {
  color: var(--admin-blue);
  font-weight: 800;
}

.table-thumb {
  width: 78px;
  height: 54px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--admin-line);
}

.table-muted {
  display: block;
  margin-top: 5px;
  color: var(--admin-muted);
  font-size: 12px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.status-nouveau {
  background: #e7f2ff;
  color: #095dde;
}

.status-lu {
  background: #fff5df;
  color: #9a5b00;
}

.status-repondu {
  background: #e4f8ec;
  color: #167245;
}

.messages-table th:last-child,
.messages-table td.actions-cell {
  width: 280px;
}

.message-admin-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  gap: 18px;
}

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

.message-detail-grid div,
.message-content-box {
  border: 1px solid var(--admin-line);
  border-radius: 8px;
  padding: 13px 14px;
  background: #fbfdff;
}

.message-detail-grid span,
.message-content-box span {
  display: block;
  margin-bottom: 6px;
  color: var(--admin-muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.message-detail-grid strong {
  overflow-wrap: anywhere;
}

.message-content-box {
  margin-top: 16px;
}

.message-content-box p {
  margin: 0;
  color: var(--admin-text);
  line-height: 1.7;
  white-space: pre-wrap;
}

.reply-preview {
  margin: 0 0 18px;
}

.detail-actions {
  margin-top: 16px;
}

.pagination-wrap {
  margin-top: 18px;
}

.profile-layout {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 20px;
}

.profile-card {
  text-align: center;
}

.profile-photo-box {
  width: 160px;
  height: 160px;
  margin: 0 auto 18px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #edf6ff;
  color: var(--admin-blue);
  font-size: 54px;
  font-weight: 900;
  border: 1px solid var(--admin-line);
  box-shadow: var(--admin-soft-shadow);
}

.profile-photo-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-card h2 {
  margin: 0 0 8px;
  color: var(--admin-navy);
}

.profile-card p {
  margin: 0 0 16px;
  color: var(--admin-muted);
}

.profile-meta {
  display: grid;
  gap: 10px;
  text-align: left;
}

.profile-meta span {
  padding: 10px 12px;
  border-radius: 8px;
  background: #f8fbff;
  border: 1px solid var(--admin-line);
  color: var(--admin-muted);
  overflow-wrap: anywhere;
}

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

.donut-wrap {
  display: grid;
  place-items: center;
  padding: 10px 0 16px;
}

.donut-chart {
  display: grid;
  place-items: center;
  width: 178px;
  height: 178px;
  border-radius: 50%;
  background: conic-gradient(#0d6efd 0 70deg, #23b26d 70deg 130deg, #7a4ee6 130deg 190deg, #ff7a1a 190deg 245deg, #ef476f 245deg 300deg, #10b7bd 300deg 360deg);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.9), var(--admin-soft-shadow);
}

.donut-chart span {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--admin-navy);
}

.donut-chart strong {
  font-size: 29px;
  line-height: 1;
}

.donut-chart small {
  color: var(--admin-muted);
}

.chart-legend {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
  font-size: 13px;
  color: var(--admin-text);
}

.chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.chart-legend i {
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.admin-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--admin-line);
  border-radius: 8px;
  padding: 18px 22px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--admin-muted);
  font-size: 13px;
  box-shadow: var(--admin-soft-shadow);
}

@media (max-width: 1280px) {
  .stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .dashboard-grid,
  .content-grid,
  .manager-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .admin-sidebar {
    position: static;
    width: auto;
  }

  .admin-main {
    margin-left: 0;
    padding: 22px;
  }

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

  .sidebar-footer {
    grid-template-columns: 1fr 220px;
    align-items: center;
  }

  .login-shell {
    grid-template-columns: 1fr;
  }

  .login-visual {
    min-height: 320px;
    padding: 32px;
  }

  .login-panel {
    min-height: auto;
    padding: 36px 24px;
  }
}

@media (max-width: 720px) {
  .admin-globalbar,
  .admin-topbar,
  .welcome-card,
  .card-header,
  .admin-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .globalbar-right,
  .top-user-card,
  .date-widget,
  .notification-pill {
    width: 100%;
  }

  .globalbar-right {
    grid-template-columns: 1fr;
  }

  .notification-pill {
    grid-column: 1;
    justify-content: flex-start;
  }

  .date-widget {
    grid-column: 1;
  }

  .dashboard-titlebar h1,
  .admin-topbar h1 {
    font-size: 34px;
  }

  .dashboard-hero {
    min-height: 280px;
    padding: 28px;
  }

  .stats-grid,
  .profile-layout,
  .form-split,
  .chart-legend,
  .sidebar-nav,
  .sidebar-footer {
    grid-template-columns: 1fr;
  }

  .stat-card,
  .module-item,
  .event-row {
    grid-template-columns: 42px 1fr;
  }

  .stat-card em,
  .activity-item em,
  .arrow-mark,
  .event-row .table-actions {
    grid-column: 2;
  }
}

@media (max-width: 1024px) {
  html,
  body,
  .admin-app-page {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .admin-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 80;
    width: min(318px, 86vw);
    transform: translateX(-100%);
    transition: transform 0.22s ease;
  }

  .sidebar-collapsed .admin-sidebar {
    transform: translateX(0);
  }

  .admin-main,
  .sidebar-collapsed .admin-main {
    margin-left: 0;
    padding: 22px;
  }

  .admin-globalbar {
    position: sticky;
    top: 0;
    z-index: 70;
    padding: 10px 0;
    background: rgba(247, 251, 255, 0.92);
    backdrop-filter: blur(10px);
  }

  .sidebar-nav,
  .sidebar-footer,
  .dashboard-grid,
  .content-grid,
  .manager-grid,
  .message-admin-layout,
  .profile-layout {
    grid-template-columns: 1fr;
  }

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

  .welcome-card,
  .admin-topbar {
    align-items: flex-start;
  }

  .admin-table-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .admin-table {
    min-width: 760px;
  }
}

@media (max-width: 768px) {
  .admin-main,
  .sidebar-collapsed .admin-main {
    padding: 16px;
  }

  .admin-globalbar,
  .admin-topbar,
  .welcome-card,
  .card-header,
  .admin-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .globalbar-right {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .notification-wrap,
  .date-wrap,
  .notification-pill,
  .date-widget,
  .top-user-card {
    grid-column: auto;
    width: 100%;
    min-width: 0;
  }

  .notification-pill {
    justify-content: flex-start;
  }

  .top-panel,
  .notification-panel,
  .calendar-panel {
    right: 0;
    left: 0;
    width: auto;
    max-width: calc(100vw - 32px);
  }

  .dashboard-titlebar h1,
  .admin-topbar h1 {
    font-size: 32px;
  }

  .dashboard-hero {
    min-height: 240px;
    padding: 26px;
    background-position: center;
  }

  .stats-grid,
  .form-split,
  .message-detail-grid,
  .chart-legend {
    grid-template-columns: 1fr;
  }

  .admin-card,
  .welcome-card {
    padding: 18px;
  }

  .stat-card,
  .module-item,
  .event-row {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .stat-card em,
  .arrow-mark,
  .event-row .table-actions {
    grid-column: 2;
  }

  .row-actions,
  .topbar-actions,
  .welcome-actions,
  .table-actions {
    width: 100%;
  }

  .row-actions .icon-btn,
  .topbar-actions .btn,
  .welcome-actions .btn,
  .table-actions .btn {
    flex: 1 1 130px;
  }

  .admin-table th:last-child,
  .admin-table td.actions-cell,
  .messages-table th:last-child,
  .messages-table td.actions-cell {
    width: 220px;
  }
}

@media (max-width: 480px) {
  .admin-main,
  .sidebar-collapsed .admin-main {
    padding: 12px;
  }

  .admin-sidebar {
    width: min(292px, 92vw);
    padding: 24px 16px 18px;
  }

  .brand-mark {
    width: 48px;
    height: 48px;
  }

  .sidebar-brand {
    gap: 12px;
  }

  .sidebar-brand strong {
    font-size: 24px;
  }

  .menu-button {
    width: 48px;
    height: 48px;
  }

  .dashboard-titlebar h1,
  .admin-topbar h1,
  .panel-heading h2 {
    font-size: 28px;
  }

  .welcome-card h2 {
    font-size: 26px;
  }

  .dashboard-hero {
    min-height: 220px;
    padding: 20px;
  }

  .admin-card,
  .welcome-card,
  .login-panel {
    padding: 16px;
  }

  .login-visual {
    padding: 24px 16px;
  }

  .brand-card h1 {
    font-size: 34px;
  }

  .btn,
  .icon-btn {
    width: 100%;
    min-height: 44px;
  }

  .admin-table {
    min-width: 680px;
  }

  .profile-photo-box {
    width: 132px;
    height: 132px;
  }
}
