/* courier-prime-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Courier Prime';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/courier-prime/courier-prime-v7-latin-regular.eot'); /* IE9 Compat Modes */
  src: url('../fonts/courier-prime/courier-prime-v7-latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('../fonts/courier-prime/courier-prime-v7-latin-regular.woff2') format('woff2'), /* Super Modern Browsers */
       url('../fonts/courier-prime/courier-prime-v7-latin-regular.woff') format('woff'), /* Modern Browsers */
       url('../fonts/courier-prime/courier-prime-v7-latin-regular.ttf') format('truetype'), /* Safari, Android, iOS */
       url('../fonts/courier-prime/courier-prime-v7-latin-regular.svg#CourierPrime') format('svg'); /* Legacy iOS */
}

/* jetbrains-mono-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/jetbrains-mono/jetbrains-mono-v18-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* jetbrains-mono-700 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/jetbrains-mono/jetbrains-mono-v18-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* montserrat-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/montserrat/montserrat-v26-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* montserrat-700 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/montserrat/montserrat-v26-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

body {
  font-family: "Andale Mono", "Courier Prime", "monospace";
  font-size: 14px;
  background-color: white;
}

table {
  border-collapse: collapse;
  margin: 10px;
}

table, th, td {
  #border: 1px solid;
  #border: none;
  text-align: left;
  padding: 7px;
}

tr {
  border-bottom: 1px solid;
}

h1 {
  text-decoration: underline;
}

/* css grid layout */
.grid-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* two 50% width grids */
  grid-template-rows: auto;
  gap: 10px; /* gap between grid items */
  margin: 5px;
}

.grid-item {
  background-color: floralwhite;
  padding: 20px;
  border: 1px solid;
  border-radius: 10px;
}

.full-width {
  grid-column: 1 / span 2; /* 100% width grid spanning two columns */
}

/* css for sprint tasks template grid layout */
.sprint-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* two 50% width grids */
  grid-template-rows: auto;
  gap: 5px;
  margin: 5px;
}

.sprint-grid {
  padding: 10px;
  border: 1px solid;
}

@media screen and (max-width: 768px) {
  .grid-container {
    grid-template-columns: 1fr; /* switch to a single column layout for smaller screens */
  }
}

/* card around each task */
.taskcard {
  padding: 20px;
  border: 1px solid;
  word-wrap: break-word;
  max-width: 400px;
  border-radius: 10px;
  background-color: white;
}

.trello-table td {
  word-wrap: break-word;
  min-width: 200px;
  vertical-align: top;
  background-color: floralwhite;
}

p.taskcomment {
  padding: 5px;
  max-width: 100%;
  word-wrap: break-word;
}

.taskcomment {
  border-top: 1px solid;
  max-width: 100%;
  padding-top: 10px;
}

.taskcomment-date {
  font-size: 14px;
  font-weight: bold;
  padding-bottom: 10px;
  background-color: floralwhite;
}

.subtask-search {
    margin-bottom: 1rem;
    position: relative;
}

.subtask-search input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.htmx-indicator {
    display: none;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8rem;
    color: #666;
}

.htmx-request .htmx-indicator {
    display: inline;
}

/* Make Select2 text darker */
.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #000 !important;  /* Darker text color */
}

/* Make placeholder text slightly lighter but still readable */
.select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #000 !important;
}

/* Make dropdown options darker too */
.select2-results__option {
    color: #000 !important;
}

/* TimeBlock deadline styles */
.timeblock-deadline {
    background-color: #f8f9fa;
}

.timeblock-deadline input[disabled] {
    cursor: not-allowed;
    opacity: 0.5;
}

.timeblock-deadline .deadline-type-icon {
    color: #6c757d;
}

/* Priority level colors for deadlines */
.priority-critical {
    color: #d32f2f;
    font-weight: bold;
}

.priority-high {
    color: #f57c00;
    font-weight: bold;
}

.priority-medium {
    color: #fbc02d;
}

.priority-low {
    color: #757575;
}

/* Day divider styles for deadline table */
.day-divider {
    background-color: #e3f2fd;
    border-top: 2px solid #1976d2;
    border-bottom: 1px solid #bbdefb;
    text-align: center;
}

.day-separator {
    text-align: center;
    font-weight: bold;
    color: #1976d2;
    padding: 8px 0;
    font-size: 14px;
}

/* Drag and drop styles for deadline table */
tr[draggable="true"] {
    cursor: grab;
}

tr[draggable="true"]:active {
    cursor: grabbing;
}

tr.dragging {
    opacity: 0.5;
}

.day-divider.drag-over {
    background-color: #c8e6c9 !important;
    border-top-color: #4caf50 !important;
    border-bottom-color: #4caf50 !important;
}

.day-divider.drag-over .day-separator {
    color: #2e7d32 !important;
}

/* Deadline table row colors */
#deadlines_table tr[style*="--deadline-color"] {
    background-color: var(--deadline-color, #90EE90);
    border-left: 4px solid rgba(0, 0, 0, 0.2);
    opacity: 0.8;
}

/* Slightly different styling for timeblock deadlines */
#deadlines_table tr.timeblock-deadline[style*="--deadline-color"] {
    opacity: 0.6;
}
