/*
 * 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.
 */

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background-color: #f7f7f7;
}

html {
}

.app {
  border: 1px solid transparent;
  background-color: #fff;
  margin: 0;
  min-height: calc(100vh);
  padding: 15px;
  /* border-radius: 8px; */
}

@media (min-width: 700px) {
  .app {
    border-radius: 8px;
    border-color: #efefef;
    margin: 20px;
    min-height: calc(100vh - 40px);
    padding: 30px;
  }
}

.panel {
  /* background-color: #fff; */
  /* padding: 15px 15px; */
  /* border-radius: 4px; */
}

footer,
.container {
  padding: 15px 15px;
}

footer {
  padding-bottom: 0;
}

.container-narrow {
  max-width: 1400px;
  margin: 0 auto;
}

header {
}

.narrow {
  max-width: 600px;
  margin: 0 auto;
}


body,
input,
button,
select,
textarea {
  font-family: -apple-system, BlinkMacSystemFont, avenir next, avenir, segoe ui, helvetica neue, Adwaita Sans, Cantarell, Ubuntu, roboto, noto, helvetica, arial, sans-serif;
  /* font-family: "IBM Plex Sans", sans-serif; */
  font-size: 17px;
  line-height: 1.5;
  color: #333;
}

fieldset {
  border: none;
  padding: 0;
  margin: 0;

  & + fieldset {
    margin-top: 20px;
  }
}

textarea,
input[type="text"],
input[type="url"],
input[type="number"],
input[type="date"],
input[type="search"],
input[type="email"],
input[type="password"],
select {
  width: 100%;
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid #ccc;

  &::placeholder {
    color: #ccc;
  }

  &::-webkit-search-cancel-button {
    display: none;
  }

}

/* Tailwind-like global styles for select elements */
select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-color: #fff;
  border: 1px solid #ccc; /* gray-300 */
  padding: 4px 8px;
  padding-right: 12px; /* room for caret */
  border-radius: 4px; /* rounded-md */
  /* box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); */
  /* font-size: 15px; */
  /* line-height: 1.4; */
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%236b7280'><path d='M6 8l4 4 4-4' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5'/></svg>");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1em;
}

select:focus {
  outline: none;
  border-color: #0d6efd; /* primary */
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.15);
}

select:disabled,
select[disabled] {
  background-color: #f8fafc;
  color: #9ca3af;
  cursor: not-allowed;
}

/* Support for multiple selects and native controls */
select[multiple] {
  background-image: none;
  padding-right: 1rem;
}

/* `.form-control` utility to support form helpers that add the class */
.form-control {
  display: block;
  width: 100%;
  padding: 4px 8px;
  /* padding-right: 2.5rem; */
  border-radius: 4px;
  border: 1px solid #ccc;
  background-color: #fff;
  /* box-shadow: 0 1px 2px rgba(0,0,0,0.05); */
}

.form-control:focus {
  outline: none;
  border-color: #0d6efd;
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.15);
}

/* Small / compact select and form-control variants */
select.select--small,
select.small,
.select--small,
.small-select {
  padding: 0.25rem 0.5rem;
  padding-right: 1.75rem;
  border-radius: 0.25rem;
  font-size: 13px;
  line-height: 1.25;
}

.form-control--small {
  display: block;
  width: 100%;
  padding: 0.25rem 0.5rem;
  padding-right: 1.75rem;
  border-radius: 0.25rem;
  border: 1px solid #ccc;
  background-color: #fff;
  /* box-shadow: 0 1px 2px rgba(0,0,0,0.04); */
  font-size: 13px;
}

.form-control--small:focus {
  outline: none;
  border-color: #0d6efd;
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.12);
}

input[type="search"] {
  border-radius: 50px;
  padding-left: 40px;
  padding-right: 40px;
}

input[type="button"],
input[type="submit"],
button,
.button {
  background-color: #0d6efd;
  border: 1px solid #0d6efd;
  color: #fff;
  border: none;
  padding: 2px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: all ease 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;

  &:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
    box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    text-decoration: none;
  }

  &.danger {
    background-color: #dc3545;
    border-color: #dc3545;

    &:hover {
      background-color: #bb2d3b;
      border-color: #b02a37;
    }
  }
}

.badge {
  font-size: 12px;
  font-weight: 300;
  color: #0d6efd;
  /* display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  background-color: #e7f1ff;
  border: 1px solid #b6d4fe;
  margin-right: 5px; */
}

.button-link {
  background: none;
  border: none;
  color: #0d6efd;
  text-decoration: none;
  cursor: pointer;
  padding: 0;
  font: inherit;
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;

  &:hover {
    text-decoration: underline !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  &:disabled {
    color: #ccc !important;
    cursor: not-allowed !important;
    text-decoration: none !important;
  }
}

.button-link--small {
  font-size: 0.9em;
}

.button-icon-link {
  background: transparent;
  border: 1px solid transparent;
  color: #0d6efd;
  text-decoration: none;
  cursor: pointer;
  padding: 0;
  font: inherit;
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all ease 0.2s;
  border-radius: 4px;
  min-width: 26px;
  min-height: 26px;
  justify-content: center;
  
  &:hover {
    border-color: #0d6efd;
    text-decoration: none;
    background: transparent !important;
    box-shadow: none !important;
  }
}

.button-outline {
  background-color: transparent;
  border: 1px solid #0d6efd;
  color: #0d6efd;
  padding: 2px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: all ease 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 26px;
  font-style: normal;

  &:hover {
    background-color: #efefef !important;
    box-shadow: none !important;
    text-decoration: none;
  }

  &:disabled {
    border-color: #ccc !important;
    color: #ccc !important;
    background-color: transparent !important;
    cursor: not-allowed !important;
  }
}

.button-outline-ai {
  border-color: turquoise;
}


.button-outline--danger {
  border: 1px solid #dc3545;
  color: #dc3545;
}

.button-outline--warning {
  border: 1px solid #ffc107;
  color: #856404;
  background-color: #fff3cd;
}

.button-pip {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #0d6efd;
  border: 2px solid #0d6efd;
  display: inline-block;
  text-indent: -6000px;
  overflow: hidden;
  margin: 0;
}
.button-pip--danger {
  background: #dc3545;
  border-color: #dc3545;
}

.button-pip-outline {
  background: #fff;
  border-color: #0d6efd;
}

.button--small {
  font-size: 14px;
  padding: 1px 7px;
  min-height: 27px;
}

.button--mini {
  font-size: 12px;
  line-height: 14px;
  padding: 1px 3px;
  min-height: initial;
  gap: 4px;

  svg {
    width: 12px;
    height: 12px;
  }
}

.button--disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

@media screen and (max-width: 650px) {
  .sm-button--block {
    display: flex;
    width: 100%;
  }
}

.button--block {
  display: flex-block;
  width: 100%;
}

.button-group {
  display: inline-flex;
  align-items: flex-start;
  gap: 12px;
}

.button-group-stack {
  display: flex;
  flex-direction: column;
}

.button-group-tight {
  display: inline-flex;
  align-items: flex-start;
  gap: 0;

  form {
    display: inline-flex;
  }

  .button, .button-outline {
    border-radius: 0;
    margin-right: -1px;
  }

  .button-outline:first-child, form:first-child .button-outline  {
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
  }

  .button-outline:last-child, form:last-child .button-outline {
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
  }
}

.logo {
  a {
    color: #0d6efd;

    &:hover {
      text-decoration: none;
    }
  }
}

h1, h2, h3, h4, h5, h6 {
  /* margin: 0; */
  /* font-weight: normal; */
  margin: 0;
  line-height: 1.3;
  font-weight: 300;
}

h1, h2, h3 {
  /* font-family: calibre, sans-serif; */
  font-weight: 500;
}

h1 {
  font-size: 2.0em;
  font-weight: 600;
  margin-bottom: 20px;
}

h2 {
  font-size: 1.5em;
}

h3 {
  font-size: 1.0em;
}

h5 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: normal;
  color: #999;
  margin-bottom: 5px;
}

.text-small {
  font-size: 0.9em;
}

.text-muted {
  color: #999;
}

.text-danger {
  color: #dc3545;
}

.text-right {
  text-align: right;
}

mark {
  background-color: yellow;
}

/* Tailwind-like table utilities and a reusable table component */
/* Utility helpers (subset of Tailwind for tables) */
.tw-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  background-color: #fff;
}

.tw-table th,
.tw-table td {
  padding: 0.75rem 0.75rem;
  border-bottom: 1px solid #e6e6e6;
  text-align: left;
  vertical-align: top;
}

.tw-table tr:last-child td {
  border:0;
}


.tw-table thead th {
  background-color: #fafafa;
  color: #333;
  font-weight: 600;
  border-bottom: 1px solid #e2e8f0;
}

.tw-table tbody tr:hover {
  background-color: #f8fafc;
}

.tw-table--striped tbody tr:nth-child(odd) {
  background-color: #ffffff;
}

.tw-table--striped tbody tr:nth-child(even) {
  background-color: #fbfbfb;
}

.tw-table--compact {
  font-size: 0.85em;
}

.tw-table--compact th,
.tw-table--compact td {
  padding: 0.4rem 0.5rem;
}

.tw-text-muted {
  color: #6b7280;
  font-size: 0.9em;
}

.tw-badge {
  display: inline-block;
  padding: 0.125rem 0.5rem;
  font-size: 12px;
  background-color: #eef2ff;
  color: #3730a3;
  border-radius: 9999px;
}

/* Responsive wrapper to allow horizontal scroll on small screens */
.tw-table-responsive {
  width: 100%;
  overflow-x: auto;
  border: 1px solid #e6e6e6;
  border-radius: 4px;
}


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

p {
  margin-top: 0;
  margin-bottom: 15px;
}

hgroup {
  margin-bottom: 50px;
  text-align: center;

  &.left {
    text-align: left;
  }
}

a {
  color: #0d6efd;
  text-decoration: none;

  &:hover {
    text-decoration: underline;
  }
}

label {
  display: block;
}

.mt0 {
  margin-top: 0 !important;
}

.mt5 {
  margin-top: 5px;
}

.mb0 {
  margin-bottom: 0 !important;
}

.mb5 {
  margin-bottom: 5px;
}

.mb10 {
  margin-bottom: 10px;
}

.mb15 {
  margin-bottom: 15px;
}

.mb20 {
  margin-bottom: 20px;
}

.mb30 {
  margin-bottom: 30px;
}

.mb40 {
  margin-bottom: 40px;
}

.mb50 {
  margin-bottom: 50px;
}

.mb60 {
  margin-bottom: 60px;
}

.mb70 {
  margin-bottom: 70px;
}

.mb80 {
  margin-bottom: 80px;
}

.mb90 {
  margin-bottom: 90px;
}

.mb100 {
  margin-bottom: 100px;
}

.mt5 {
  margin-top: 5px;
}

.mt10 {
  margin-top: 10px;
}

.mt15 {
  margin-top: 15px;
}

.mt20 {
  margin-top: 20px;
}

.mt30 {
  margin-top: 30px;
}

.mt40 {
  margin-top: 40px;
}

.mt50 {
  margin-top: 50px;
}

.hide {
  display: none !important;
}

hr {
  border: none;
  border-top: 1px solid #eee;
  margin: 15px 0;
}

hr.pull {
  margin-left: 0;
  margin-right: 0;
}

@media (min-width: 700px) {  
  hr.pull {
    margin-left: -30px;
    margin-right: -30px;
  }
}

.checked {
  text-decoration: line-through;
  color: #999 !important;

  a {
    color: #999 !important;
  }
}

.banner {
  background-color: #0d6efd;
  color: #fff;
  /* text-align: center; */
  padding: 10px 20px;
  margin-left: -15px;
  margin-right: -15px;
  margin-top: -15px;
  /* margin-bottom: 0; */
  font-size: 0.8em;
  display: flex;
  gap: 10px;
  /* justify-content: center; */
  border-radius: 4px 4px 0 0;
}


@media (min-width: 650px) {
  .banner {
    padding: 10px 30px;
    margin-left: -30px;
    margin-right: -30px;
    margin-top: -30px;
  }
}

header nav {
  display: flex;
  justify-content: space-between;
  align-items: center;

  ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 10px;
  }

  a {
    text-decoration: none;
  }
}

.alert {
  padding: 8px 15px;
  margin-bottom: 30px;
  border-radius: 6px;
  background: #efefef;
  border: 1px solid #d6d8db;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}


.avatar-group {
  display: flex;
  gap: 8px;
  align-items: center;
}

.avatar {
  border-radius: 4px;
  overflow: hidden;
  display: block;
  /* border: 1px solid #0d6efd; */
  /* filter: grayscale(100%); */
  /* box-shadow: .0145rem .029rem .174rem rgba(129, 145, 181, .01698),.0335rem .067rem .402rem rgba(129, 145, 181, .024),.0625rem .125rem .75rem rgba(129, 145, 181, .03),.1125rem .225rem 1.35rem rgba(129, 145, 181, .036),.2085rem .417rem 2.502rem rgba(129, 145, 181, .04302),.5rem 1rem 6rem rgba(129, 145, 181, .06),0 0 0 .0625rem rgba(129, 145, 181, .015); */
  width: 25px;
  /* height: 25px; */
  position: relative;
  background: blue;
  color: #fff !important;
  text-decoration: none !important;
  text-align: center;
  font-size: 14px;
  /* line-height: 25px; */
}

.grid {
  display: grid;
  gap: 15px;
  grid-template-columns: 1fr;
  /* background-color: #efefef; */
  /* padding: 10px; */
  /* border-radius: 4px; */
}

@media (min-width: 650px) {
  .grid {
    gap: 30px;
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1000px) {
  .grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

@media (min-width: 1400px) {
  .grid {
    grid-template-columns: 1fr 1fr 1fr 1fr;
  }
}

@media (min-width: 1800px) {
  .grid {
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
  }
}

article {
  /* border: 1px solid transparent; */
  border: 1px solid #ddd;
  padding: 20px;
  border-radius: 8px;
  /* background: #fff; */
  /* background: #f7f7f7; */
  /* box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05); */
  /* box-shadow: .0145rem .029rem .174rem rgba(129, 145, 181, .01698),.0335rem .067rem .402rem rgba(129, 145, 181, .024),.0625rem .125rem .75rem rgba(129, 145, 181, .03),.1125rem .225rem 1.35rem rgba(129, 145, 181, .036),.2085rem .417rem 2.502rem rgba(129, 145, 181, .04302),.5rem 1rem 6rem rgba(129, 145, 181, .06),0 0 0 .0625rem rgba(129, 145, 181, .015); */
  /* border: 1px solid transparent; */
  display: flex;
  flex-direction: column;
  transition: all ease 0.5s;
  position: relative;

  &.empty {
    width: 100%;
    grid-column: 3fr / span 3;
  }

  h4 {
    /* font-weight: 500; */
    font-size: 20px;
    margin-bottom: 4px;
  }

  &.pinned {
    /* outline: blue solid 2px; */
  }

  &.overdue {
    /* outline: red solid 2px; */
  }

  &.archived {
    opacity: 0.9;
    /* transform: scale(0.95); */
  }

  header, footer{ 
    padding: 0;
    margin: 0;
    max-width: none;
  }

  header {
    /* display: flex;
    justify-content: space-between; */
    /* margin: 0 -31px; */
    /* margin-bottom: 10px; */
    /* padding: 0 31px 10px 31px; */
    /* border-bottom: 1px solid #efefef; */
    position: relative;
/* 
    a {
      color: #000
    } */
  }

  footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;

  }

  ul {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    font-size: 0.9em;
    
    li {
      display: flex;
      gap: 8px;
      position: relative;
      /* border: 1px solid red; */

      & + & {
        margin-top: 2px;
      }

      input {
        margin-top: 4px;
      }

      .bi-lightning-charge, .bi-justify-left {
        margin-top: 3px;
        width: 12px;
      }

      &:before {
        content: "";
        position: absolute;
        top: 3px;
        left: 3px;
        width: 17px;
        height: 17px;
        background: transparent;
      }

      div .button-outline {
        margin-left: 4px;
      }

      &.important {
        /* background: #f7faff; */
        /* border-radius: 4px; */
        position: relative;

        &:after {
          position: absolute;
          left: -21px;
          top: 3px;
          border: solid transparent;
          content: "";
          height: 0;
          width: 0;
          pointer-events: none;
          border-color: rgba(255, 0, 0, 0);
          border-left-color: #0d6efd;
          border-width: 7px;
        }
      }

      &.in_progress {
        font-style: italic;
        /* font-weight: 500; */
      }

      &.parked {
        font-size: 0.9em;
      }
    }
  }

  .description {
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
    position: relative;

    &:after {
      content: "";
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      height: 50px;
      background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff);
    }

  }
  
  .avatar-group {
    /* position: absolute;
    top: -10px;
    left: 28px; */
  }

  .due-date {
    position: absolute;
    top: -10px;
    right: 20px;
    text-align: center;
    overflow: hidden;
    padding: 0;
    width: 45px;
    background-color: #fff;
    /* box-shadow: .0145rem .029rem .174rem rgba(129, 145, 181, .01698),.0335rem .067rem .402rem rgba(129, 145, 181, .024),.0625rem .125rem .75rem rgba(129, 145, 181, .03),.1125rem .225rem 1.35rem rgba(129, 145, 181, .036),.2085rem .417rem 2.502rem rgba(129, 145, 181, .04302),.5rem 1rem 6rem rgba(129, 145, 181, .06),0 0 0 .0625rem rgba(129, 145, 181, .015); */
    border-radius: 4px;
  }
  .due-date__month {
    line-height: 1.0em;
    text-transform: uppercase;
    font-size: 12px;
    /* background: #0d6efd;
    color: #fff; */

    border: 1px solid #ccc;
    padding: 2px 0;
    border-radius: 4px 4px 0 0;
  }
  
  .due-date__day {
    font-size: 25px;
    line-height: 1.0em;
    border: 1px solid #ccc;
    border-top: 0;
    padding: 3px 0;
    border-radius: 0 0 4px 4px;
    font-weight: 100;
  }

  /* &.overdue .due-date__month {
    background: red;
  } */
}

.with-icon {
  display: flex;
  align-items: center;
  gap: 8px;
}

.with-icon-top {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.field-with-icon {
  position: relative;

  svg {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #999;
  }
}

.dropdown {
  position: relative;
}

.dropdown__menu {
  display: none;
  position: absolute;
  top: calc(100% + 0);
  right: 0;
  width: 200px;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  padding: 10px;

  &:after, &:before {
    bottom: 100%;
    right: 7px;
    border: solid transparent;
    content: "";
    height: 0;
    width: 0;
    position: absolute;
    pointer-events: none;
  }

  &:after {
    border-color: rgba(136, 183, 213, 0);
    border-bottom-color: #fff;
    border-width: 5px;
    margin-left: -5px;
  }
  &:before {
    border-color: rgba(204, 204, 204, 0);
    border-bottom-color: #cccccc;
    border-width: 6px;
    margin-left: -6px;
  }
}

.dropdown:hover .dropdown__menu {
  display: block;
}

.pagination {
  text-align: center;
}

.flash {
  position:fixed;
  top: 5rem;
  left: 50%;
  transform: translateX(-50%);

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-s);

  max-width: 100%;
  width: max-content;
  padding: 0 var(--space-m);

}
.flash__message {
  font-size: 14px;
  color: #fff;
  padding: 2px 10px;
  background-color: #333;
  animation: appear-then-fade 4s both;
  border-radius: 999px;

  & + & {
    margin-top: 10px;
  }
}

@keyframes appear-then-fade {
  0%, 100% {
    opacity:0
  }
  5%, 60% {
    opacity:1
  }
}

.actions {
  display: flex;
  gap: 10px;
  align-content: center;
  align-items: center;
  justify-content: center;
}

.project-description {
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  /* padding: 20px;
  box-shadow: .0145rem .029rem .174rem rgba(129, 145, 181, .01698),.0335rem .067rem .402rem rgba(129, 145, 181, .024),.0625rem .125rem .75rem rgba(129, 145, 181, .03),.1125rem .225rem 1.35rem rgba(129, 145, 181, .036),.2085rem .417rem 2.502rem rgba(129, 145, 181, .04302),.5rem 1rem 6rem rgba(129, 145, 181, .06),0 0 0 .0625rem rgba(129, 145, 181, .015); */
}

.todo-meta {

}

.todo-meta__item {
  display: flex;

  > * {
    flex: 1;
  }
}

.todos {
  /* max-width: 700px; */
  /* margin-left: auto; */
  /* margin-right: auto; */
  /* background: #fff; */
  /* box-shadow: .0145rem .029rem .174rem rgba(129, 145, 181, .01698),.0335rem .067rem .402rem rgba(129, 145, 181, .024),.0625rem .125rem .75rem rgba(129, 145, 181, .03),.1125rem .225rem 1.35rem rgba(129, 145, 181, .036),.2085rem .417rem 2.502rem rgba(129, 145, 181, .04302),.5rem 1rem 6rem rgba(129, 145, 181, .06),0 0 0 .0625rem rgba(129, 145, 181, .015); */
  /* padding: 20px; */
  /* font-size: 15px; */
  border: 1px solid #ddd;
  padding: 0;
  border-radius: 8px;

  ul {
    list-style: none;
    padding: 0;
    margin: 0 0 0 0;
  }

  #incomplete-todos {
    li:first-child {
      border-top-left-radius: 8px;
      border-top-right-radius: 8px;
    }
  }
  #completed-todos {
    li:last-child {
      border-bottom-left-radius: 8px;
      border-bottom-right-radius: 8px;
    }
  }

  li {
    display: flex;
    align-items: center;
    align-content: center;
    gap: 10px;
    padding: 10px 15px;

    /* border-radius: 10px; */
    border-bottom: 1px solid #eee;

    &.first {
      border-top-left-radius: 8px;
      border-top-right-radius: 8px;
    }

    &.in_progress {
      /* transform: translateX(20px); */
      font-style: italic;
      font-weight: 500;
    }
    
    &.important {
      background-color: #f7faff;
      position: relative;
      /* background-color: #fffbeb; */

      &:after {
        position: absolute;
        left: -1px;
        top: 15px;
        border: solid transparent;
        content: "";
        height: 0;
        width: 0;
        pointer-events: none;
        border-color: rgba(255, 0, 0, 0);
        border-left-color: #0d6efd;
        border-width: 7px;
      }
    }

    &.parked {
      font-size: 0.7em;
    } 
    
    &.blocked {
      background: rgb(255, 247, 247)
    }
    
    /* Hide delete button by default, show on hover */
    .todo-delete-btn {
      opacity: 0;
      transition: opacity 0.15s ease-in-out;
    }
    
    &:hover .todo-delete-btn {
      opacity: 1;
    }
    
    /* Completed items should not be drop targets */
    &.checked {
      pointer-events: auto;
    }

    .button_to {
      margin-left: auto;
      display: flex;
    }
  }

  a {
    color: #333;
    text-decoration: none;
  }

  .new {
    padding: 10px 15px;
    display: flex;
    gap: 10px;
  }

}


@media (max-width: 700px) {
  .sm-hide {
    display: none !important;
  }
/* 
  .col + .col {
    margin-top: 30px;
  } */
}

@media (min-width: 1000px) {
  .row {
    display: flex;
    gap: 30px;

    .col {
      flex: 1;
    }

    .col-9 {
      flex: 0 1 calc(100%/12 * 9);
    }
    
    .col-10 {
      flex: 0 1 calc(100%/12 * 10);
    }
    
    .col-8 {
      flex: 0 1 calc(100%/12 * 8);
    }
    
    .col-6 {
      flex: 0 1 calc(100%/12 * 6);
    }
    
    .col-5 {
      flex: 0 1 calc(100%/12 * 5);
    }

    .col-3 {
      flex: 0 1 calc(100%/12 * 3);
    }
    
    .col-4 {
      flex: 0 1 calc(100%/12 * 4);
      
    }
    
    .col-2 {
      flex: 0 1 calc(100%/12 * 2);
    }
    .col-1 {
      flex: 0 1 calc(100%/12 * 1);
    }
  }

  .row--small {
    gap: 12px;
  }

}

.animate-in {
  h1 {
    animation: bounce 1s;
    transform-origin: center bottom;
    animation-fill-mode: both;
  }
}

.animate-out {
  animation: fade-out 0.25s ease-out;
}

.bounce {
  animation: bounce 1s;
  transform-origin: center bottom;
  animation-fill-mode: both;
}

@keyframes bounce {
  from,
  20%,
  53%,
  to {
    animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
    transform: translate3d(0, 0, 0);
  }

  40%,
  43% {
    animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);
    transform: translate3d(0, -30px, 0) scaleY(1.1);
  }

  70% {
    animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);
    transform: translate3d(0, -15px, 0) scaleY(1.05);
  }

  80% {
    transition-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
    transform: translate3d(0, 0, 0) scaleY(0.95);
  }

  90% {
    transform: translate3d(0, -4px, 0) scaleY(1.02);
  }
}

@keyframes fade-in {
  from { box-shadow: 0 0 §; }
  to { opacity: 1; }
}

@keyframes fade-out {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes slide-in {
  from { transform: translateX(4rem); }
  to { transform: translateX(0); }
}

@keyframes slide-out {
  from { transform: translateX(0); }
  to { transform: translateX(4rem); }
}


/* app/assets/application.css */
.modal-mask {
  position: fixed;
  z-index: 2;
  left: 0;
  right : 0;
  top: 0;
  bottom: 0;
  background: #00000099;
  backdrop-filter: blur(8px);
}
.modal-content {
  position: fixed;
  z-index: 2;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  word-break: break-word;
  border-radius: 6px;
  background: #fff;
  padding: 20px;
  box-shadow: .0145rem .029rem .174rem rgba(129, 145, 181, .01698),.0335rem .067rem .402rem rgba(129, 145, 181, .024),.0625rem .125rem .75rem rgba(129, 145, 181, .03),.1125rem .225rem 1.35rem rgba(129, 145, 181, .036),.2085rem .417rem 2.502rem rgba(129, 145, 181, .04302),.5rem 1rem 6rem rgba(129, 145, 181, .06),0 0 0 .0625rem rgba(129, 145, 181, .015);
}
.modal-content-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.tags {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  /* margin-bottom: 15px; */
}

.tag {
  font-size: 0.75em;
  line-height: 1.2em;
  border: 1px solid transparent;
  padding: 2px 7px;
  border-radius: 4px;
  background-color: #f9f9f9;
  color: #666;
  /* font-weight: 300; */
  transition: all ease 0.2s;
  /* display: inline-flex;
  padding: 0 8px;
  border: 1px solid #0d6efd;
  border-radius: 15px; */
  /* color: #ccc; */
  /* padding: 2px 8px; */
  /* border-radius: 15px;
  letter-spacing: 1px;
  text-transform: uppercase;
  background-color: #fff;
  border: 1px solid #ddd; */

  &:hover {
    text-decoration: none;
    background-color: #efefef;
  }
}

.tag-danger {
  color: lightcoral;
}

.tag-filter-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-wrap: wrap;
}

.tag-filter-item {
  /* display: block; */
  /* display: inline-block;
  padding: 6px 12px;
  font-size: 14px;
  border-radius: 4px;
  background-color: #f8f9fa;
  color: #495057;
  border: 1px solid #dee2e6;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer; */
  color: #666;
  text-decoration: none;
  font-size: 15px;
  display: flex;
  justify-content: space-between;
}

.tag-filter-item:hover {
  /* background-color: #e9ecef;
  border-color: #adb5bd; */
}

.tag-filter-item.active {
  /* background-color: #0d6efd;
  color: #fff;
  border-color: #0d6efd; */
  color: #999;
  text-decoration: none;
}

.tag-checkboxes {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 5px;
}

.tag-checkboxes .checkbox-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tag-checkboxes .checkbox-item input[type="checkbox"] {
  width: auto;
  margin: 0;
  cursor: pointer;
}

.tag-checkboxes .checkbox-item label {
  margin: 0;
  cursor: pointer;
  font-size: 16px;
}

.rich-text {
  a {
    color: #0d6efd;
  }
}

.activeDropzone #incomplete-todos {
  outline: 2px dashed #0d6efd;
  border-radius: 5px;
}

.activeItem, .dropTarget {
  background-color: #e7f1ff;
  /* border: 2px dashed #0d6efd; */
}

.calendar {
  display: flex;
  gap: 20px;

  .tooltip {
    /* border: 1px solid red; */
    line-height: 14px;

    .button-pip {
      /* vertical-align: top; */
    }
  }
}

.calendar__day {
  flex: 1;
  /* background: #fff;
  border: 1px solid #fff;
  border-radius: 10px;
  padding: 10px;
  box-shadow: .0145rem .029rem .174rem rgba(129, 145, 181, .01698),.0335rem .067rem .402rem rgba(129, 145, 181, .024),.0625rem .125rem .75rem rgba(129, 145, 181, .03),.1125rem .225rem 1.35rem rgba(129, 145, 181, .036),.2085rem .417rem 2.502rem rgba(129, 145, 181, .04302),.5rem 1rem 6rem rgba(129, 145, 181, .06),0 0 0 .0625rem rgba(129, 145, 181, .015); */
  /* border-top: 2px solid transparent;
  padding-top: 10px; */
}

.calendar__day--today {
  /* border-color: #0d6efd; */
  /* background: #efefef; */
}

.calendar__day--today small {
  color : #0d6efd;
}

/* .calendar .calendar__date {
  width: 28px;
  height: 28px;
  line-height: 28px;
  border-radius: 50%;
  font-size: 0.8em;
  font-weight: 500;
}

.calendar__day--today .calendar__date {
  background-color: #0d6efd;
  color: #fff;
  text-align: center;
} */

/* Todo Lock Indicator */
.locked-indicator {
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  opacity: 0.7;
  cursor: help;
  margin-left: 4px;
}

.todo-name.locked {
  color: #999;
  opacity: 0.7;
  cursor: not-allowed;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* AI Suggestions */
.hidden {
  display: none !important;
}

/* Tooltip */
.tooltip {
  position: relative;
  display: inline-block;
  margin:0;
  padding: 0;
}

.tooltip .tooltip-text {
  visibility: hidden;
  background-color: #000;
  color: #fff;
  text-align: center;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 12px;
  white-space: nowrap;
  font-style: normal;
  
  /* Position the tooltip */
  position: absolute;
  z-index: 1000;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  
  /* Fade in tooltip */
  opacity: 0;
  transition: opacity 0.3s;
}

/* Tooltip arrow */
.tooltip .tooltip-text::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: #000 transparent transparent transparent;
}

/* Show tooltip on hover */
.tooltip:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

.toggle {
  
}
.toggle__header {
  cursor: pointer;
  width: 100%;
  border:0;
  padding: 0;
  /* margin: 0; */
  background: none;
  text-align: left;
  display: block;
  /* display: flex;
  gap: 10px; */
}

.toggle__header:hover {
  background-color: transparent !important;
  color: #000 !important;
  box-shadow: none !important;
  
  h5 {
    color: #000 !important;
  }
}