/* Custom styles for gradient borders and other elements */

.gradient-border {
  /* background: linear-gradient(45deg, #ff6b35, #f7931e); */
  padding: 2px;
  border-radius: 8px;
}

.inner-content {
  background-color: #1f2937; /* gray-800 */
  border-radius: 6px;
  height: 100%;
  position: relative;
  color: white;
  display: flex;
  flex-direction: column;
}

.inner-content img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  border-radius: 4px 4px 0 0;
}

.remove-btn {
  background: #6b7280; /* gray-500 */
  color: white;
  border-radius: 50%;
  width: 1.5rem;
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  cursor: pointer;
  transition: background 0.2s;
}

.remove-btn:hover {
  background: #4b5563; /* gray-600 */
}

.toggle-btn {
  background: none;
  border: none;
  color: rgb(1, 202, 255);
  font-size: 1rem;
  cursor: pointer;
  padding: 0;
  margin: 0;
}

.add-thumbnail {
  cursor: pointer;
  transition: transform 0.2s;
}

.add-thumbnail:hover {
  transform: scale(1.05);
}

.thumbnail {
  cursor: pointer;
  transition: transform 0.2s;
}

.thumbnail:hover {
  transform: scale(1.05);
}

.modal {
  display: none;
  position: fixed;
  z-index: 99999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.4);
}

.modal-content {
  background-color: #1f2937c9;
  margin: 5% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 90%;
  max-width: 500px;
  border-radius: 8px;
  color: white;
  max-height: 90vh;
  overflow-y: auto;
}

/* Form styling for inline labels and inputs */
.modal-content .mb-2 {
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-content .mb-2 label {
  display: inline;
  min-width: fit-content;
  margin-bottom: 0;
}

.modal-content .mb-2 input[type="text"],
.modal-content .mb-2 input[type="number"],
.modal-content .mb-2 input[type="url"],
.modal-content .mb-2 input[type="file"],
.modal-content .mb-2 select {
  flex: 1;
  margin-bottom: 0;
}

/* Keep description as block (label above input) */
.modal-content .mb-2:has(textarea) {
  display: block;
}

.modal-content .mb-2:has(textarea) label {
  display: block;
  margin-bottom: 0.5rem;
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: rgb(1, 202, 255);
  text-decoration: none;
  cursor: pointer;
}

.accent-blue {
  color: rgb(1, 202, 255);
}

.accent-bg {
  background-color: rgb(1, 202, 255);
}

#todo-content.minimized {
  display: none;
}
