:root {
  --primary: #6366f1;
  --primary-hover: #4f46e5;
  --bg-light: #f9fafb;
  --text-dark: #1e293b;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: var(--bg-light);
  color: var(--text-dark);
  min-height: 100vh;
}

.navbar-brand {
  font-weight: 700;
  letter-spacing: -0.5px;
}

.navbar {
  background: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.board-container {
  overflow-x: auto;
  padding: 1rem 0;
  min-height: calc(100vh - 70px);
}

.board {
  display: flex;
  gap: 1rem;
  padding: 0.5rem;
  min-height: calc(100vh - 140px);
}

.board-column {
  background: white;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  min-width: 300px;
  max-width: 300px;
  display: flex;
  flex-direction: column;
}

.column-header {
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.column-title {
  font-weight: 600;
  margin: 0;
  font-size: 1rem;
}

.column-task-count {
  color: var(--text-muted);
  background: var(--bg-light);
  border-radius: 20px;
  padding: 2px 8px;
  font-size: 0.8rem;
}

.tasks-container {
  padding: 1rem;
  flex-grow: 1;
  overflow-y: auto;
}

.task-card {
  background: white;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  padding: 1rem;
  margin-bottom: 0.75rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  cursor: grab;
  transition: all 0.2s;
}

.task-card:hover {
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.task-card:active {
  cursor: grabbing;
}

.task-title {
  font-weight: 500;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.task-description {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.task-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  margin-top: 0.75rem;
}

.task-priority {
  border-radius: 20px;
  padding: 2px 8px;
  font-size: 0.7rem;
  font-weight: 500;
}

.priority-high {
  background-color: rgba(239, 68, 68, 0.15);
  color: var(--danger);
}

.priority-medium {
  background-color: rgba(245, 158, 11, 0.15);
  color: var(--warning);
}

.priority-low {
  background-color: rgba(16, 185, 129, 0.15);
  color: var(--success);
}

.task-due {
  color: var(--text-muted);
}

.task-assignee {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  font-size: 0.7rem;
}

.column-footer {
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--border-color);
}

.add-task-btn {
  width: 100%;
  text-align: left;
  color: var(--text-muted);
  transition: all 0.2s;
}

.add-task-btn:hover {
  color: var(--primary);
}

.add-column-btn {
  min-width: 300px;
  height: 200px;
  border: 2px dashed var(--border-color);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  background: white;
  transition: all 0.2s;
}

.add-column-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.dragging {
  opacity: 0.5;
}

.progress-bar {
  height: 6px;
  border-radius: 3px;
  background: #e2e8f0;
  margin-top: 0.5rem;
  overflow: hidden;
}

.progress-value {
  height: 100%;
  background: var(--primary);
  border-radius: 3px;
}

.checklist-item {
  display: flex;
  align-items: center;
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
}

.checklist-item input[type="checkbox"] {
  margin-right: 0.5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .board-column {
    min-width: 280px;
    max-width: 280px;
  }
}

/* Modal styles */
.modal-content {
  border-radius: 12px;
  border: none;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.modal-header {
  border-bottom-color: var(--border-color);
}

.modal-footer {
  border-top-color: var(--border-color);
}

.form-label {
  font-weight: 500;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.form-control,
.form-select {
  border-radius: 6px;
  border-color: var(--border-color);
  padding: 0.5rem 0.75rem;
  font-size: 0.9rem;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
}

.btn-outline-primary {
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background-color: var(--primary);
  border-color: var(--primary);
}

.device-mockup {
  max-width: 90%;
}

/* Floating Add Button for Mobile */
.floating-add-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  border-radius: 30px;
  background: var(--primary);
  color: white;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
  z-index: 1000;
  display: none;
}

@media (max-width: 768px) {
  .floating-add-btn {
    display: flex;
  }
}

/* Welcome screen styles */
.welcome-screen {
  background-color: var(--primary);
  color: white;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  position: relative;
}

.welcome-content {
  z-index: 2;
}

.welcome-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.1;
  background: url('data:image/svg+xml;utf8,<svg width="100%" height="100%" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="50" height="50" patternUnits="userSpaceOnUse"><path d="M 50 0 L 0 0 0 50" fill="none" stroke="white" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)" /></svg>');
}

.welcome-title {
  font-weight: 700;
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.welcome-subtitle {
  font-weight: 300;
  margin-bottom: 2rem;
  font-size: 1.2rem;
}

.device-mockup-container {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
}

.mockup-navbar {
  background: white;
  height: 50px;
  border-bottom: 1px solid #eee;
  display: flex;
  align-items: center;
  padding: 0 15px;
}

.mockup-board {
  background: #f9fafb;
  height: 350px;
  overflow: hidden;
  position: relative;
}

.mockup-column {
  background: white;
  border-radius: 8px;
  width: 35%;
  height: 90%;
  position: absolute;
  top: 5%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.mockup-column:nth-child(1) {
  left: 2%;
}

.mockup-column:nth-child(2) {
  left: 40%;
}

.mockup-column:nth-child(3) {
  left: 78%;
  width: 20%;
}

.mockup-card {
  background: white;
  border-radius: 6px;
  height: 30px;
  margin: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

#welcomeScreen {
  display: none; /* Initially hidden, will show if no data */
}

/* Custom tags style */
.task-tag {
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 20px;
  margin-right: 5px;
  background-color: rgba(99, 102, 241, 0.1);
  color: var(--primary);
}

/* Attachment style */
.task-attachment {
  display: inline-flex;
  align-items: center;
  font-size: 0.8rem;
  background: #f1f5f9;
  padding: 3px 8px;
  border-radius: 4px;
  margin-right: 5px;
  margin-bottom: 5px;
}

.task-attachment i {
  margin-right: 5px;
  font-size: 0.75rem;
}

/* Comments style */
.task-comment {
  font-size: 0.85rem;
  padding: 8px 10px;
  background: #f1f5f9;
  border-radius: 6px;
  margin-bottom: 8px;
}

.comment-author {
  font-weight: 500;
}

.comment-date {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.comment-text {
  margin-top: 5px;
}

/* Column reordering handle */
.column-drag-handle {
  cursor: move;
  margin-right: 8px;
  color: #cbd5e1;
}

/* Highlight dropzone */
.dropzone-highlight {
  background-color: rgba(99, 102, 241, 0.08);
}

.reset-btn:hover {
  color: var(--danger);
}

#addTaskBtn:hover,
#addColumnBtn:hover {
  color: var(--primary);
}

@media (max-width: 991px) {
  .navbar-nav {
    flex-direction: column;
    align-items: flex-start;
    
    padding: 10px;
  }

  .nav-item {
    margin-right: 0;
    margin-bottom: 10px;
    
    font-size: 14px;
  }

  .collapse.navbar-collapse {
    flex-direction: column;
    align-items: flex-start;
  }

  .navbar-collapse {
    padding: 5px;
  }
}