* { box-sizing: border-box; }

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #0079bf, #005a9e);
  margin: 0;
  padding: 20px;
  color: #fff;
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

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

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

#addGlobal, #supportBtn, #exportBtn, #importBtn {
  background: #61bd4f;
  border: none;
  color: white;
  padding: 10px 18px;
  border-radius: 6px;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.2s;
  font-weight: 600;
  margin-left: 10px;
}

#addGlobal:hover, #supportBtn:hover, #exportBtn:hover, #importBtn:hover {
  background: #519839;
}

#board {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 20px;
  flex-grow: 1;
}

.column {
  background: #ebecf0;
  border-radius: 8px;
  width: 280px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
  flex-shrink: 0;
}

.column h2 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 12px 0;
  color: #172b4d;
  text-align: center;
}

.card {
  background: #ffffff;
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 10px;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0,0,0,0.15);
  transition: transform 0.1s ease, box-shadow 0.2s ease;
  color: #172b4d;
  font-size: 15px;
  line-height: 1.4em;
  overflow: hidden;
}

.card:hover {
  transform: scale(1.03);
  box-shadow: 0 3px 8px rgba(0,0,0,0.25);
}

.card-title {
  font-weight: 600;
  margin-bottom: 4px;
}

.card-desc {
  font-size: 14px;
  color: #555;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  justify-content: center;
  align-items: center;
  z-index: 10;
}

.modal-content {
  background: #fff;
  color: #172b4d;
  border-radius: 8px;
  width: 95%;
  max-width: none;
  height: 90%;
  padding: 20px;
  overflow-y: auto;
  box-shadow: 0 3px 10px rgba(0,0,0,0.3);
  display: flex;
  flex-direction: column;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 10px;
}

.modal-header input {
  font-size: 22px;
  font-weight: 600;
  border: none;
  outline: none;
  width: 100%;
  color: #172b4d;
  background: transparent;
}

.close {
  cursor: pointer;
  font-size: 24px;
  color: #999;
}

.close:hover {
  color: #000;
}

textarea {
  width: 100%;
  min-height: 100px;
  border-radius: 6px;
  border: 1px solid #ccc;
  padding: 10px;
  margin-top: 8px;
  resize: vertical;
  font-family: inherit;
  font-size: 14px;
}

.modal-body {
  display: flex;
  gap: 20px;
  margin-top: 20px;
  flex: 1;
}

.left-column {
  flex: 2;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.right-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.left-column h4, .right-column h4 {
  margin-bottom: 10px;
  border-bottom: 1px solid #ccc;
  padding-bottom: 5px;
  color: #172b4d;
}

.history-item, .comment {
  background: #f4f5f7;
  padding: 8px 10px;
  border-radius: 6px;
  margin-bottom: 8px;
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  word-wrap: break-word;
}

.history-item small, .comment small {
  display: block;
  color: #6b778c;
  font-size: 12px;
}

.delete-btn {
  background: none;
  border: none;
  color: #a33;
  cursor: pointer;
  font-weight: bold;
  margin-left: 8px;
}

#commentInput {
  width: 100%;
  padding: 8px;
  border-radius: 6px;
  border: 1px solid #ccc;
  margin-top: 10px;
  font-family: inherit;
  font-size: 14px;
}

#addCommentBtn, #deleteCardBtn {
  margin-top: 8px;
  border: none;
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
}

#addCommentBtn {
  background: #0079bf;
}

#addCommentBtn:hover {
  background: #026aa7;
}

#deleteCardBtn {
  background: #b04632;
  align-self: flex-end;
}

#deleteCardBtn:hover {
  background: #933b2d;
}

/* Modal do apoio */
#supportModal .modal-content {
  max-width: 400px;
  height: auto;
  padding: 20px;
}

#supportModal .modal-body img {
  width: 200px;
  height: 200px;
  margin-bottom: 20px;
}