* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: Inter, system-ui, sans-serif;
}

body {
  background: #0b0f1a;
  color: #e5e7eb;
}

.app {
  display: flex;
  min-height: 100vh;
}

/* SIDEBAR */
.sidebar {
  width: 240px;
  background: #0e1424;
  padding: 24px;
}

.logo {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 32px;
}

.menu a {
  display: block;
  padding: 12px 16px;
  margin-bottom: 6px;
  border-radius: 10px;
  text-decoration: none;
  color: #9ca3af;
}

.menu a.active,
.menu a:hover {
  background: #1f2a44;
  color: #fff;
}

/* MAIN */
.main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* HEADER */
.header {
  height: 64px;
  background: #0e1424;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  border-bottom: 1px solid rgba(255,255,255,.05);
}

.header .title {
  font-size: 18px;
  font-weight: 600;
}

.header .user a {
  margin-left: 12px;
  color: #60a5fa;
  text-decoration: none;
}

/* CONTENT */
.content {
  padding: 32px;
}

/* DASHBOARD */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.card {
  background: #111827;
  padding: 24px;
  border-radius: 16px;
}

.card-label {
  color: #9ca3af;
  font-size: 14px;
}

.card-value {
  font-size: 28px;
  font-weight: 700;
  margin-top: 8px;
}

/* TABLE */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
}

th {
  text-align: left;
  font-size: 13px;
  color: #93c5fd;
  padding-bottom: 12px;
}

td {
  padding: 12px 0;
  border-top: 1px solid rgba(255,255,255,.05);
}

.form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 13px;
  color: #9ca3af;
}

.form-group input,
.form-group select {
  background: #0b1220;
  border: 1px solid rgba(255,255,255,.08);
  color: #e5e7eb;
  padding: 10px 12px;
  border-radius: 10px;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #2563eb;
}

.form-actions {
  grid-column: span 2;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.btn-primary {
  background: #2563eb;
  border: none;
  padding: 10px 18px;
  border-radius: 10px;
  color: #fff;
  cursor: pointer;
}

.btn-secondary {
  background: transparent;
  border: 1px solid rgba(255,255,255,.15);
  padding: 8px 14px;
  border-radius: 8px;
  color: #f87171;
  cursor: pointer;
}

.btn-secondary:hover {
  background: rgba(248,113,113,.1);
}

/* AUTH LAYOUT */
.auth-layout {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(
    circle at top,
    #0f172a 0%,
    #020617 60%
  );
}

/* AUTH CARD */
.auth-card {
  width: 100%;
  max-width: 420px;
  background: #0b1220;
  border-radius: 18px;
  padding: 32px;
  box-shadow: 0 20px 40px rgba(0,0,0,.45);
}

/* TITLE */
.auth-title {
  text-align: center;
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 24px;
}

/* ERROR */
.auth-error {
  background: rgba(239,68,68,.15);
  border: 1px solid rgba(239,68,68,.3);
  color: #fecaca;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 14px;
  margin-bottom: 16px;
}

/* FORM */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-footer {
  margin-top: 20px;
  text-align: center;
  font-size: 14px;
  color: #9ca3af;
}

.auth-footer a {
  color: #60a5fa;
  text-decoration: none;
}

.auth-footer a:hover {
  text-decoration: underline;
}

.w-full {
  width: 100%;
}


/* ACTIONS UTILISATEURS */
.user-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.user-actions form {
  margin: 0;
}

/* STATUTS */
.status {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
}

.status-active {
  background: rgba(34,197,94,.15);
  color: #22c55e;
}

.status-pending {
  background: rgba(245,158,11,.15);
  color: #f59e0b;
}

.status-suspended {
  background: rgba(239,68,68,.15);
  color: #ef4444;
}

.status-default {
  background: rgba(148,163,184,.15);
  color: #94a3b8;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 13px;
  border-radius: 8px;
  cursor: pointer;
}

.btn-warning {
  background: #f59e0b;
  border: none;
  color: #111827;
  cursor: pointer;
}

.btn-danger {
  background: #ef4444;
  border: none;
  color: #fff;
  cursor: pointer;
}

.content-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
}

#calendar {
  background: #0e1424;
  padding: 16px;
  border-radius: 12px;
}

.fc {
  --fc-border-color: rgba(255,255,255,0.05);
  --fc-page-bg-color: transparent;
  --fc-neutral-bg-color: rgba(255,255,255,0.03);
  --fc-today-bg-color: rgba(59,130,246,0.12);
  color: #e5e7eb;
}

.fc-toolbar-title {
  font-size: 18px;
  font-weight: 600;
}

.fc-button {
  background: #1f2a44;
  border: none;
}

.fc-button-primary:not(:disabled).fc-button-active {
  background: #3b82f6;
}

.fc-timegrid-event {
  border-radius: 6px;
  padding: 4px 6px;
  font-size: 12px;
  margin: 1px 0;
}

/* Planning layout */
.planning-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 20px;
}

.fc-event-title {
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


.nav-separator {
    height: 1px;
    margin: 12px 0;
    background: linear-gradient(
        to right,
        transparent,
        rgba(255,255,255,0.25),
        transparent
    );
    list-style: none;
}
