.page-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  /* text-align: flex-start; */
  margin-top: 2rem;
}
  
.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-top: 3rem;
  margin-bottom: 1rem;
  border-left: 6px solid #f76c6c;
  padding-left: 0.8rem;
}
  
.model-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}
  
.model-card {
  background-color: #fdfdfd;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 1.2rem 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease-in-out, box-shadow 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
}
  
.model-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
  border: 2px solid #f76c6c;
  background-color: #fffdfc;
}
    
.model-card h4 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
  font-weight: 600;
}
  
section:nth-of-type(even) {
  background-color: #fafafa;
  padding: 1rem;
  border-radius: 12px;
}
  
.container {
  padding-bottom: 2rem;
}
  
/* ⬇️ Additional styles for the filter */
.filter-container {
  margin: 1.5rem 0 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
}
  
.filter-container label {
  font-weight: 600;
  margin-right: 0.5rem;
}
  
#category-filter,
#search-input {
  padding: 0.5rem 1rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  min-width: 250px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}
  
.tab-button-container {
  margin-bottom: 1.5rem;
  display: flex;
  gap: 1rem;
}
  
.workflow-toggle-button {
  padding: 0.6rem 1.2rem;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  background-color: #eee;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out;
}

.workflow-toggle-button.active {
  background-color: #ff5722;
  color: white;
}

.workflow-block {
  background: linear-gradient(180deg, #fefefe, #f9f9fb);
  border-radius: 30px;
  padding: 3rem 2rem;
  margin: 2rem 0;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

.workflow-block::before {
  content: "";
  position: absolute;
  top: -50px;
  left: -50px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle at 30% 30%, #e0f7fa, transparent 60%);
  opacity: 0.3;
  z-index: 0;
  animation: floatCloud 20s infinite linear;
}

.workflow-card {
  display: flex;
  align-items: stretch;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  z-index: 1;
  position: relative;
}

.workflow-step {
  flex: 1 1 240px;
  background: linear-gradient(to bottom right, #ffffff, #f0faff);
  padding: 2rem;
  border-radius: 60% 40% 40% 60% / 50% 60% 40% 50%;
  border: 2px dotted #cceeff;
  box-shadow:
    0 4px 12px rgba(173, 216, 230, 0.25),
    0 0 0 8px rgba(240, 248, 255, 0.4);
  text-align: center;
  font-size: 1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  z-index: 1;
}

.workflow-step:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow:
    0 8px 24px rgba(173, 216, 230, 0.35),
    0 0 0 10px rgba(255, 255, 255, 0.5);
}

.workflow-arrow {
  font-size: 2rem;
  color: #66cfff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.workflow-arrow:hover {
  transform: scale(1.2);
}

/* === Bulletin Board Background === */
#board {
  position: relative;
  overflow: hidden;
  min-height: 600px;
  background: url('/static/ai_models/images/corkboard.png');
  background-color: #c7a977;
  background-repeat: repeat;
  border: 3px solid #a67c52;
  border-radius: 10px;
  padding: 20px;
  margin-top: 20px;
  box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.15);
}

/* === Sticky Note Style === */
.sticky-note {
  position: absolute;
  width: 180px;
  min-height: 160px;
  background-color: #ffff88;
  border: 1px solid #e1e1a8;
  padding: 10px;
  box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.2);
  border-radius: 6px;
  font-family: 'Comic Sans MS', cursive, sans-serif;
  resize: both;
  overflow: auto;
  cursor: move;
  transition: transform 0.2s;
}

.sticky-note:hover {
  transform: scale(1.03);
}

/* === Editable Textarea inside Sticky Notes === */
.note-textarea {
  width: 100%;
  height: 90px;
  background: transparent;
  border: none;
  resize: none;
  font-size: 13px;
  font-family: inherit;
  outline: none;
  color: #333;
  line-height: 1.4;
  overflow-y: auto;
}

/* === Action Buttons on Sticky Notes === */
.delete-button {
  position: absolute;
  top: 6px;
  right: 8px;
  background: none !important;
  border: none !important;
  font-size: 14px;
  font-weight: normal;
  color: black !important;
  padding: 0;
  line-height: 1;
  cursor: pointer;
  box-shadow: none !important;
}

.delete-button:hover {
  color: red !important;
}

/* === Edit Button (Toggle between Edit and Save) === */
.edit-toggle-button {
  position: absolute;
  top: 6px;
  right: 28px; /* to the left of delete */
  background: none !important;
  border: none !important;
  font-size: 14px;
  font-weight: normal;
  color: black !important;
  padding: 0;
  line-height: 1;
  cursor: pointer;
  box-shadow: none !important;
}

.edit-toggle-button:hover {
  color: #0077cc !important;
}


/* === Add Note Form === */
#add-note-form {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#add-note-form textarea {
  width: 100%;
  height: 80px;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  resize: vertical;
  font-family: 'Arial', sans-serif;
}

#add-note-form input[type="submit"] {
  width: 140px;
  padding: 8px 12px;
  font-weight: bold;
  color: white;
  background-color: #f76c6c;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  align-self: flex-start;
  transition: background-color 0.2s ease;
}

#add-note-form input[type="submit"]:hover {
  background-color: #e25b5b;
}