/* General styling for the Kanban application */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: #f7f9fc;
  color: #333;
}

a {
  color: #007bff;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

header {
  background: #005f9e;
  color: white;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

header h1 {
  font-size: 24px;
  margin: 0;
}

nav a {
  margin-left: 15px;
  color: white;
  font-weight: bold;
}

.container {
  max-width: 800px;
  margin: 40px auto;
  padding: 20px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

.form-group input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.btn {
  display: inline-block;
  background: #005f9e;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
}

.btn:hover {
  background: #004e82;
}

.message {
  margin-bottom: 15px;
  padding: 10px;
  border-radius: 4px;
}

.message.success {
  background: #e6ffed;
  color: #2b7a0b;
  border: 1px solid #b2f2bb;
}

.message.error {
  background: #ffe6e6;
  color: #a33a3a;
  border: 1px solid #f5c2c2;
}

/* Board styling */
.board-container {
  display: flex;
  flex-direction: column;
}

.board-header {
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.columns {
  display: flex;
  gap: 10px;
}

.column {
  flex: 1;
  background: #f1f1f1;
  border-radius: 4px;
  padding: 10px;
  min-height: 200px;
}

.column h3 {
  text-align: center;
  margin-top: 0;
}

/* Placeholder cards */
.card {
  background: #fff;
  border-radius: 4px;
  padding: 10px;
  margin-bottom: 10px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Story card styling */
.story-card {
  position: absolute;
  width: 150px;
  height: 80px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  padding: 10px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  transition: left 0.3s ease, top 0.3s ease;
  user-select: none;
}

.story-card:hover {
  opacity: 0.9;
}

/* Task card styling */
.task-card {
  background: #fafafa;
  border-radius: 4px;
  padding: 8px;
  margin-bottom: 8px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.15);
  cursor: grab;
  user-select: none;
}

.task-card.dragging {
  opacity: 0.5;
}

/* Epic tabs */
.tab {
  background: #eee;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  user-select: none;
  font-weight: bold;
}

.tab.active {
  background: #005f9e;
  color: #fff;
}

/* Enable smooth horizontal scrolling on touch devices for the story canvas */
#storyCanvas {
  -webkit-overflow-scrolling: touch;
}