/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

:root {
  --pico-font-size: 80%;
}

.container {
  /* max-width: 900px; */
}

/* Grid layout -------------------------------------------------------------- */

#main-content {
  display: grid;
  grid-template-columns: 1fr 250px;
  grid-template-rows: auto auto 1fr;
  grid-auto-flow: row;
  grid-template-areas: "notice empty-slot"
                       "breadcrumbs breadcrumbs"
                       "main sidebar";
}

#content-breadcrumbs {
  grid-area: breadcrumbs;
  margin-bottom: 1rem;
}

#content-notice {
  grid-area: notice;
  margin-bottom: 1rem;
}

#content-sidebar {
  grid-area: sidebar;
  margin-left: 2rem;
}

#content-main {
  grid-area: main;
}

/* Footer --------------------------------------------------------------------- */

footer.container {
  text-align: center;
}

/* Typography ----------------------------------------------------------------- */

p.header-context {
  color: var(--pico-chapter-color);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .0625em;
  text-transform: uppercase;
}

span.muted {
  color: var(--pico-muted-color);
}

fieldset legend {
  font-size: 1.2rem;
  font-weight: 600;
}

a.disabled {
  pointer-events: none;
  cursor: default;
  color: #ccc; /* Optional: to visually indicate it's disabled */
  /* background-color: #f9f9f9; /1* Optional: to visually indicate it's disabled *1/ */
}

div.field_with_errors small {
  color: #b71c1c;
  float: right;
}

.small-button {
  font-size: 0.8rem;
  padding: 0.2rem 0.5rem;
}

/* Home page ---------------------------------------------------------------- */

.home-logo-container {
  float: right;
  padding: 1rem;
}

.home-logo-container img {
  height: 25rem;
}

/* Badges ------------------------------------------------------------------- */

.badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
  color: #fff;
  background-color: #6c757d;
  border-radius: 0.375rem;
}

.badge-primary {
  background-color: #007bff;
}

.badge-secondary {
  background-color: #6c757d;
}

.badge-success {
  background-color: #28a745;
}

.badge-danger {
  background-color: #dc3545;
}

.badge-warning {
  background-color: #ffc107;
}

.badge-info {
  background-color: #17a2b8;
}

.badge-light {
  background-color: #f8f9fa;
  color: #212529;
}

.badge-dark {
  background-color: #343a40;
}

/* Alert ------------------------------------------------------------------- */

.alert {
  margin-bottom: 1rem;
  border-radius: 1rem;
  color: var(--color);
  background-color: var(--background-color);
  border: 0.1rem solid var(--color);
  background-image: var(--icon);
  background-position: center left 10px;
  background-size: 2rem auto;
  padding: 1rem 1rem 0 3.2rem;
}

.alert-danger {
  --background-color: #ffebee;
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgba(179, 78, 0, 0.999)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Cline x1='12' y1='8' x2='12' y2='12'%3E%3C/line%3E%3Cline x1='12' y1='16' x2='12.01' y2='16'%3E%3C/line%3E%3C/svg%3E");
  --color: #b71c1c;
}

.alert-warning {
  --background-color: #fff8e1;
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgba(153, 67, 0, 1)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Cline x1='12' y1='8' x2='12' y2='12'%3E%3C/line%3E%3Cline x1='12' y1='16' x2='12.01' y2='16'%3E%3C/line%3E%3C/svg%3E");
  --color: #994300;
}

.alert-success {
  --background-color: #e8f5e9;
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgba(27, 94, 32, 1)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Cline x1='12' y1='8' x2='12' y2='12'%3E%3C/line%3E%3Cline x1='12' y1='16' x2='12.01' y2='16'%3E%3C/line%3E%3C/svg%3E");
  --color: #1b5e20;
}

.alert-info {
  --background-color: #e1f5fe;
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgba(0, 96, 100, 1)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Cline x1='12' y1='8' x2='12' y2='12'%3E%3C/line%3E%3Cline x1='12' y1='16' x2='12.01' y2='16'%3E%3C/line%3E%3C/svg%3E");
  --color: #006064;
}

.necroraw-link {
  color: rgb(237 ,110 , 27);
  text-decoration-color: rgb(237 ,110 , 27);
}

/* Tooltips ---------------------------------------------------------------- */

.tooltip-link {
  text-decoration: underline;
  cursor: pointer;
  position: relative;
}

.tooltip-link:hover {
}

.tooltip-no-link {
  position: relative;
}

.custom-tooltip {
  position: fixed;
  background: #1f2937;
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.875rem;
  line-height: 1.4;
  max-width: 300px;
  z-index: 1000;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  display: none;
  white-space: normal;
  pointer-events: none;
}

.custom-tooltip::before {
  content: '';
  position: absolute;
  top: 100%;
  left: 30px;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #1f2937 transparent transparent transparent;
}

.tooltip-source {
  font-size: 0.75rem;
  color: #9ca3af;
  margin-top: 4px;
  font-style: italic;
}
