/*
 * 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 .kanban {
  --accent-bg: rgb(216, 216, 216);
  --accent: rgb(130, 129, 128);
}

.bg-blue {
  background-color: #0dcaf0;
}
.bg-yellow {
  background-color: #ffc107;
}
.bg-red {
  background-color: #dc3545;
}
.bg-green {
  background-color: #198754;
}

@media (prefers-color-scheme: dark) {
  :root .kanban {
    --accent-bg: rgb(72, 112, 112);
    --accent: rgb(138, 95, 51);
  }
  .bg-blue {
    background-color: rgb(74, 74, 91);
    color: white;
  }
  .bg-yellow {
    background-color: rgb(130, 109, 47);
    color: white;
  }
  .bg-red {
    background-color: rgb(143, 39, 50);
    color: white;
  }
  .bg-green {
    background-color: rgb(54, 114, 86);
    color: white;
  }
}

body.kanban {
  min-height: 100vh;
  grid-template-columns: 1fr min(1350px, 90%) 1fr;
  grid-template-rows: auto 1fr auto;

  header, footer {
    display: grid;
  }

  header {
    grid-template-columns: subgrid;

    padding-bottom: 0;
    nav {
      grid-column: 2;
      display: flex;
      justify-content: space-between;
      margin-top: 0;
    }
  }

  footer {
    grid-column: 1/-1;
    place-content: center;
    background-color: var(--accent-bg);
  }

  h1 {
    margin: 0;
  }

  .board {
    display: flex;
    margin-top: 10px;
    border-radius: 1em;
    min-height: 100vh;
  }

  .column {
    padding: 10px;
    flex: 1;
    display: flex;
    flex-direction: column;
    h2,
    h3,
    h4 {
      margin: 0;
    }
  }
  .card {
    background-color: var(--bg);
    padding: 10px;
    border-radius: 5px;
    margin-top: 10px;
    nav {
      display: flex;
      justify-content: start;
      gap: 10px;
    }
  }
}
