/* --------------------- FONTS --------------------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --pico-font-family: 'Inter', sans-serif;
}

html, body {
  font-family: 'Inter', sans-serif !important;
  font-variant-numeric: tabular-nums;
}
/* --------------------- GENERAL --------------------- */
button {
  max-width: 300px;
}



/* --------------------- PERMISSIONS CHECKBOXES --------------------- */
/* make checkbox + label inline, keep rows stacked */
#permissions_permissions input[type="checkbox"] {
  display: inline-block;  /* checkbox inline */
  vertical-align: middle; /* align with label */
  margin-right: 0.5em;    /* space between checkbox and label */
  margin-bottom: 0.5em;   /* space between rows */
}

/* make label inline with checkbox */
#permissions_permissions label {
  display: inline-block;  /* label stays on same line */
  margin-right: 1em;      /* spacing between checkbox-label pairs */
}

/* Optional wrapper for manual Twig loop */
.permission-pair {
  display: block;         /* each pair on its own line */
  margin-bottom: 0.5em;   /* spacing between rows */
}
.permission-pair input[type="checkbox"] {
  display: inline-block;
  vertical-align: middle;
  margin-right: 0.5em;
}
.permission-pair label {
  display: inline-block;
  margin-right: 1em;
}

/* --------------------- NOTIFICATIONS --------------------- */
.notified {
  padding: 14px;
  border: 1px solid black;
  border-radius: 6px;
  margin: 6px auto;
}

/* --------------------- LAYOUT --------------------- */
.layout {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 240px;
  background: #111;
  color: white;
  padding: 1rem;
}

.sidebar a {
  color: white;
  text-decoration: none;
  display: block;
  padding: 0.4rem 0;
}

.sidebar a:hover {
  color: blue;
}

/* --------------------- ACTIVE PAGE LINK --------------------- */
/* Target <a> inside .active-page */
.sidebar li.active-page a {
  color: darkgreen;
  font-weight: bold;
  text-decoration: underline;
}

/* --------------------- CONTENT --------------------- */
.content {
  flex: 1;
  padding: 1rem;
}

/* --------------------- BURGER --------------------- */
.burger {
  display: none;
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 1100;
  font-size: 1.5rem;
  background: #111;
  color: #fff;
  border: 2px solid #fff;
  padding: 0.5rem 0.7rem;
  border-radius: 6px;
  cursor: pointer;
}

/* Show only on mobile */
@media (max-width: 768px) {
  .burger {
    display: block;
  }

  .sidebar {
    position: fixed;
    left: -250px;
    top: 0;
    height: 100%;
    z-index: 1000;
    transition: left 0.3s ease;
  }

  .sidebar.open {
    left: 0;
  }
}

/* --------------------- SIDEBAR NAV --------------------- */
.sidebar nav ul {
  display: flex;
  flex-direction: column;
  padding-left: 0;
}

.sidebar nav li {
  list-style: none;
}

/* --------------------- TABLE --------------------- */
table td, th {
  font-size: 16px;
}

/* --------------------- ALERTS --------------------- */
.alert {
  padding: 16px;
  margin: 0 auto;
  color: white;
  border: 1px solid black;
  border-radius: 5px;
}

.alert-danger,
.alert-error {
  background-color: red;
}

.alert-warning {
  background-color: yellow;
}

.alert-success {
  background-color: green;
}

.hidden {
  display: none;
}

/* --------------------- PRINT STYLES --------------------- */
@media print {

  /* Hide everything */
  body * {
    visibility: hidden;
  }

  /* Show only main content */
  main, main * {
    visibility: visible;
  }

  /* Position main properly for print */
  main {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
  }

  /* Hide sidebar, burger, header, footer */
  .sidebar, .burger, header, footer {
    display: none !important;
  }

  /* Hide form buttons */
  form, button {
    display: none;
  }
}
