/* ========================================
   GRC PROJECT & TEAM MANAGEMENT KANBAN - COMPLETE STYLES
   ======================================== */

/* ========================================
   RESET & VARIABLES
   ======================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* GRC Red Theme */
  --primary-color: #c41e3a;
  --secondary-color: #8b1538;
  --accent-color: #e63946;
  --brand-gradient: linear-gradient(135deg, #c41e3a 0%, #8b1538 100%);

  /* Base Colors */
  --text-primary: #1a202c;
  --text-secondary: #4a5568;
  --bg-primary: #f7fafc;
  --bg-secondary: #ffffff;
  --border-color: #e2e8f0;

  /* Status Colors */
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #3b82f6;

  /* Kanban Column Colors */
  --col-todo: #6b7280;
  --col-progress: #3b82f6;
  --col-review: #f59e0b;
  --col-done: #10b981;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen",
    "Ubuntu", "Cantarell", sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ========================================
   LOGIN SCREEN
   ======================================== */
.login-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-gradient);
  padding: 20px;
}

.login-card {
  background: white;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  width: 100%;
  max-width: 480px;
  animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.brand-section {
  text-align: center;
  margin-bottom: 32px;
}

.brand-icon {
  font-size: 4rem;
  margin-bottom: 12px;
}

.brand-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 8px;
}

.brand-subtitle {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.demo-notice {
  background: rgba(0, 166, 81, 0.1);
  border: 2px solid rgba(0, 166, 81, 0.3);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  align-items: start;
  gap: 12px;
  margin-bottom: 24px;
}

.demo-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.demo-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.demo-text strong {
  color: var(--text-primary);
  font-weight: 600;
}

.login-form .form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.9rem;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.2s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(196, 30, 58, 0.1);
}

.btn-login {
  width: 100%;
  padding: 14px 20px;
  background: var(--brand-gradient);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-login:hover {
  box-shadow: 0 4px 12px rgba(196, 30, 58, 0.3);
  transform: translateY(-2px);
}

.btn-arrow {
  font-size: 1.2rem;
  font-weight: 700;
}

/* ========================================
   DASHBOARD SCREEN
   ======================================== */
.dashboard-screen {
  min-height: 100vh;
  background: var(--bg-primary);
}

/* Header */
.header {
  background: var(--brand-gradient);
  color: white;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-content {
  padding: 16px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-left,
.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  font-size: 2.5rem;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-main {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.logo-sub {
  font-size: 0.7rem;
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.framework-badge {
  background: rgba(255, 255, 255, 0.15);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.notification-icon {
  font-size: 1.5rem;
  cursor: pointer;
  position: relative;
}

.notification-icon::after {
  content: "";
  position: absolute;
  top: 2px;
  right: 2px;
  width: 8px;
  height: 8px;
  background: var(--danger);
  border-radius: 50%;
  border: 2px solid var(--primary-color);
}

.user-info {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.user-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--accent-color);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.user-details {
  display: flex;
  flex-direction: column;
}

.user-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.user-role {
  font-size: 0.75rem;
  opacity: 0.85;
}

/* ========================================
   KANBAN LAYOUT
   ======================================== */
.kanban-layout {
  display: flex;
  gap: 0;
  height: calc(100vh - 80px);
  overflow: hidden;
}

.kanban-main-area {
  flex: 1;
  overflow-y: auto;
  padding: 24px 32px;
}

/* Page Header */
.page-header {
  margin-bottom: 24px;
}

.page-title-section {
  margin-bottom: 16px;
}

.page-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.page-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
}

/* Board Actions */
.board-actions {
  background: white;
  padding: 16px 20px;
  border-radius: 12px;
  margin-bottom: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.board-filters {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.filter-select {
  padding: 10px 16px;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-size: 0.9rem;
  background: var(--bg-secondary);
  cursor: pointer;
  transition: border-color 0.2s ease;
  font-family: inherit;
}

.filter-select:focus {
  outline: none;
  border-color: var(--primary-color);
}

.filter-search {
  flex: 1;
  min-width: 250px;
  padding: 10px 16px;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-size: 0.95rem;
  transition: border-color 0.2s ease;
  font-family: inherit;
}

.filter-search:focus {
  outline: none;
  border-color: var(--primary-color);
}

/* ========================================
   KANBAN BOARD
   ======================================== */
.kanban-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding-bottom: 40px;
}

/* Kanban Column */
.kanban-column {
  background: var(--bg-secondary);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  min-height: 200px;
}

.column-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border-color);
}

.column-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.column-menu {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.column-menu:hover {
  background: var(--bg-primary);
  color: var(--primary-color);
}

/* Column Cards Container */
.column-cards {
  flex: 1;
  padding: 4px;
  margin: -4px;
  min-height: 100px;
}

.column-cards.drag-over {
  background: rgba(196, 30, 58, 0.05);
  border: 2px dashed var(--primary-color);
  border-radius: 8px;
}

/* Kanban Card */
.kanban-card {
  background: white;
  border: 2px solid var(--border-color);
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 12px;
  cursor: grab;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.kanban-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
  border-color: var(--primary-color);
}

.kanban-card.dragging {
  opacity: 0.5;
  cursor: grabbing;
}

.kanban-card.pinned {
  border-left: 4px solid var(--primary-color);
  background: rgba(196, 30, 58, 0.02);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.card-icon {
  font-size: 1.2rem;
}

.card-priority {
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.card-priority.low {
  background: rgba(16, 185, 129, 0.15);
  color: #047857;
}

.card-priority.medium {
  background: rgba(245, 158, 11, 0.15);
  color: #b45309;
}

.card-priority.high {
  background: rgba(239, 68, 68, 0.15);
  color: #b91c1c;
}

.card-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
  line-height: 1.4;
}

.card-meta {
  display: flex;
  gap: 12px;
  margin-bottom: 10px;
}

.card-meta-item {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.card-assignees {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.card-assignee {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary-color);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  border: 2px solid white;
}

/* Add Task Button */
.add-task-btn {
  width: 100%;
  padding: 12px;
  background: var(--bg-primary);
  border: 2px dashed var(--border-color);
  border-radius: 8px;
  color: var(--text-secondary);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 12px;
  font-family: inherit;
  font-size: 0.9rem;
}

.add-task-btn:hover {
  background: rgba(196, 30, 58, 0.05);
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.add-section-btn {
  width: 100%;
  padding: 12px;
  background: var(--primary-color);
  border: none;
  border-radius: 8px;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 8px;
  font-family: inherit;
  font-size: 0.9rem;
}

.add-section-btn:hover {
  background: var(--secondary-color);
  box-shadow: 0 4px 12px rgba(196, 30, 58, 0.3);
}

/* ========================================
   SIDE PANEL
   ======================================== */
.side-panel {
  width: 0;
  background: white;
  border-left: 1px solid var(--border-color);
  overflow-y: auto;
  transition: width 0.3s ease;
  box-shadow: -2px 0 8px rgba(0, 0, 0, 0.05);
}

.side-panel.active {
  width: 420px;
}

.side-panel-content {
  padding: 24px;
  min-width: 420px;
}

.side-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--border-color);
}

.side-panel-status select {
  padding: 8px 12px;
  border: 2px solid var(--border-color);
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.side-panel-actions {
  display: flex;
  gap: 8px;
}

.icon-btn-side {
  background: var(--bg-primary);
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all 0.2s ease;
}

.icon-btn-side:hover {
  background: var(--border-color);
}

.side-panel-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
  border-bottom: 2px solid var(--border-color);
}

.side-panel-tab {
  flex: 1;
  padding: 12px 16px;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  font-size: 0.9rem;
}

.side-panel-tab:hover {
  color: var(--primary-color);
}

.side-panel-tab.active {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}

.comment-count-side {
  margin-left: 4px;
  font-size: 0.8rem;
  opacity: 0.7;
}

/* Side Panel Body */
.side-panel-body {
  animation: fadeIn 0.3s ease;
}

.side-task-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.side-detail-section {
  margin-bottom: 24px;
}

.side-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: start;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
}

.side-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  min-width: 100px;
}

.side-value {
  flex: 1;
  text-align: right;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.link-btn,
.link-btn-small {
  background: none;
  border: none;
  color: var(--primary-color);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0;
  font-family: inherit;
}

.link-btn:hover,
.link-btn-small:hover {
  text-decoration: underline;
}

.link-btn-small {
  font-size: 0.85rem;
  margin-left: 8px;
}

.assignee-list-side {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
}

.assignee-chip {
  background: var(--bg-primary);
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
}

.labels-display-side {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
}

.label-tag-side {
  background: var(--primary-color);
  color: white;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
}

.priority-badge-side {
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
}

.priority-badge-side.low {
  background: rgba(16, 185, 129, 0.15);
  color: #047857;
}

.priority-badge-side.medium {
  background: rgba(245, 158, 11, 0.15);
  color: #b45309;
}

.priority-badge-side.high {
  background: rgba(239, 68, 68, 0.15);
  color: #b91c1c;
}

.side-description {
  padding: 12px;
  background: var(--bg-primary);
  border-radius: 8px;
  min-height: 80px;
  cursor: text;
  color: var(--text-primary);
}

.placeholder-text {
  color: var(--text-secondary);
  font-style: italic;
}

/* Attachments */
.attachments-list-side {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.attachment-item-side {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: var(--bg-primary);
  border-radius: 8px;
}

.attachment-icon-side {
  font-size: 1.5rem;
}

.attachment-info {
  flex: 1;
}

.attachment-name-side {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

.attachment-size {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.attachment-remove-side {
  background: var(--danger);
  color: white;
  border: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.upload-btn-side {
  width: 100%;
  padding: 10px;
  background: var(--bg-primary);
  border: 2px dashed var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  font-family: inherit;
}

.upload-btn-side:hover {
  background: rgba(196, 30, 58, 0.05);
  border-color: var(--primary-color);
  color: var(--primary-color);
}

/* Subtasks */
.subtasks-progress-side {
  margin-bottom: 20px;
}

.progress-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.progress-bar-container {
  width: 100%;
  height: 8px;
  background: var(--bg-primary);
  border-radius: 10px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: var(--success);
  transition: width 0.3s ease;
}

.subtasks-list-side {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.subtask-item-side {
  padding: 12px;
  background: var(--bg-primary);
  border-radius: 8px;
  border: 2px solid transparent;
  transition: all 0.2s ease;
}

.subtask-item-side.completed {
  opacity: 0.6;
  border-color: var(--success);
}

.subtask-main-row {
  display: flex;
  gap: 12px;
  align-items: start;
}

.subtask-checkbox-side {
  width: 20px;
  height: 20px;
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 2px;
}

.subtask-content-side {
  flex: 1;
}

.subtask-title-side {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.subtask-title-side.strikethrough {
  text-decoration: line-through;
}

.subtask-due-side {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.subtask-actions-side {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.subtask-action-icon {
  background: white;
  border: 1px solid var(--border-color);
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  font-family: inherit;
}

.subtask-action-icon:hover {
  background: var(--bg-primary);
}

.subtask-action-icon.danger:hover {
  background: var(--danger);
  color: white;
  border-color: var(--danger);
}

.add-subtask-btn-side {
  width: 100%;
  padding: 10px;
  background: var(--bg-primary);
  border: 2px dashed var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all 0.2s ease;
  font-family: inherit;
}

.add-subtask-btn-side:hover {
  background: rgba(196, 30, 58, 0.05);
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.proof-of-work-list {
  margin-top: 8px;
  padding: 8px;
  background: white;
  border-radius: 6px;
}

.proof-file {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px;
  font-size: 0.85rem;
}

.proof-file button {
  background: var(--danger);
  color: white;
  border: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  cursor: pointer;
}

/* Comments */
.comments-list-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
}

.comment-item-side {
  display: flex;
  gap: 12px;
}

.comment-avatar-side {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary-color);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

.comment-content-side {
  flex: 1;
}

.comment-header-side {
  display: flex;
  gap: 8px;
  margin-bottom: 6px;
}

.comment-author-side {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.9rem;
}

.comment-time-side {
  color: var(--text-secondary);
  font-size: 0.8rem;
}

.comment-text-side {
  font-size: 0.9rem;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.5;
}

.comment-actions-side {
  display: flex;
  gap: 12px;
}

.comment-action-side {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 0.85rem;
  padding: 0;
  font-weight: 600;
  font-family: inherit;
}

.comment-action-side:hover {
  color: var(--primary-color);
}

.comment-action-side.danger:hover {
  color: var(--danger);
}

.no-comments {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-secondary);
}

.comment-input-side {
  border-top: 1px solid var(--border-color);
  padding-top: 16px;
}

.comment-textarea-side {
  width: 100%;
  padding: 12px;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: inherit;
  resize: vertical;
  margin-bottom: 12px;
}

.comment-textarea-side:focus {
  outline: none;
  border-color: var(--primary-color);
}

.comment-input-actions-side {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

/* ========================================
   MODALS
   ======================================== */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: white;
  border-radius: 12px;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  animation: modalSlideIn 0.3s ease;
}

.modal-large {
  max-width: 800px;
}

.modal-medium {
  max-width: 600px;
}

.modal-small {
  max-width: 400px;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-header {
  padding: 24px 32px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--brand-gradient);
  color: white;
  border-radius: 12px 12px 0 0;
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  font-size: 2rem;
  color: white;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.modal-body {
  padding: 32px;
}

.modal-footer {
  padding: 20px 32px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* Form Elements */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.9rem;
}

.form-input,
.form-select {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s ease;
}

.form-input:focus,
.form-select:focus {
  outline: none;
  border-color: var(--primary-color);
}

textarea.form-input {
  resize: vertical;
  min-height: 80px;
}

/* Buttons */
.btn {
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-family: inherit;
}

.btn-primary {
  background: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background: var(--secondary-color);
  box-shadow: 0 4px 12px rgba(196, 30, 58, 0.3);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg-primary);
  color: var(--text-primary);
  border: 2px solid var(--border-color);
}

.btn-secondary:hover {
  background: var(--border-color);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
}

/* Label Selector */
.label-selector {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.label-chip {
  padding: 8px 14px;
  background: var(--bg-primary);
  border: 2px solid var(--border-color);
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s ease;
  font-family: inherit;
}

.label-chip:hover {
  background: rgba(196, 30, 58, 0.1);
  border-color: var(--primary-color);
}

.label-chip.selected {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

/* Assignee Trigger */
.assignee-trigger {
  padding: 10px 14px;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.assignee-trigger:hover {
  border-color: var(--primary-color);
}

/* Team List */
.assign-section {
  padding: 0;
}

.assign-subtitle {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.team-count {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.search-box {
  position: relative;
  margin-bottom: 16px;
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  color: var(--text-secondary);
}

.search-input {
  width: 100%;
  padding: 10px 14px 10px 40px;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: inherit;
}

.search-input:focus {
  outline: none;
  border-color: var(--primary-color);
}

.team-list {
  max-height: 400px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.team-member-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  background: var(--bg-primary);
  border-radius: 8px;
  transition: background 0.2s ease;
}

.team-member-item:hover {
  background: var(--border-color);
}

.team-member-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.team-member-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-color);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.team-member-details {
  flex: 1;
}

.team-member-name {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.9rem;
}

.team-member-email {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.assign-btn {
  padding: 8px 16px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
  transition: all 0.2s ease;
  font-family: inherit;
}

.assign-btn:hover {
  background: var(--secondary-color);
}

.assign-btn.assigned {
  background: var(--success);
}

/* Menu Action Buttons */
.menu-action-btn {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-primary);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  transition: all 0.2s ease;
  font-family: inherit;
  font-size: 0.95rem;
}

.menu-action-btn:hover {
  background: var(--border-color);
}

.menu-action-btn.danger {
  color: var(--danger);
}

.menu-action-btn.danger:hover {
  background: var(--danger);
  color: white;
}

/* Book Demo Modal */
.demo-modal-content {
  text-align: center;
}

.demo-icon-large {
  font-size: 5rem;
  margin-bottom: 20px;
}

.demo-modal-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.demo-modal-text {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 32px;
}

.demo-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
  text-align: left;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.demo-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: rgba(16, 185, 129, 0.05);
  border-radius: 8px;
}

.feature-icon {
  font-weight: 700;
  color: var(--success);
  font-size: 1.2rem;
}

.btn-book-demo {
  display: inline-block;
  padding: 16px 32px;
  background: var(--brand-gradient);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-book-demo:hover {
  box-shadow: 0 4px 12px rgba(196, 30, 58, 0.3);
  transform: translateY(-2px);
}

.demo-modal-footer {
  margin-top: 24px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* ========================================
   WALKTHROUGH STYLES
   ======================================== */
.walkthrough-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 480px;
  max-width: calc(100vw - 48px);
  background: white;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  z-index: 9999;
  overflow: hidden;
  transform: translateY(120%);
  transition: transform 0.4s ease;
  border: 2px solid var(--primary-color);
}

.walkthrough-container.active {
  transform: translateY(0);
}

.walkthrough-header-simple {
  background: var(--brand-gradient);
  color: white;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.walkthrough-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.walkthrough-icon-simple {
  font-size: 1.5rem;
}

.walkthrough-title-simple {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
}

.walkthrough-close-simple {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.walkthrough-close-simple:hover {
  background: rgba(255, 255, 255, 0.3);
}

.walkthrough-body-simple {
  padding: 20px;
}

.walkthrough-step {
  display: none;
}

.walkthrough-step.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateX(10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.step-number {
  display: inline-block;
  background: var(--primary-color);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.step-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 12px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.step-emoji {
  font-size: 1.5rem;
}

.step-description {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.step-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.step-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px;
  background: var(--bg-primary);
  border-radius: 8px;
}

.step-feature-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.step-feature-text {
  font-size: 0.9rem;
  color: var(--text-primary);
  line-height: 1.4;
}

.walkthrough-footer-simple {
  padding: 16px 20px;
  background: var(--bg-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.walkthrough-progress-simple {
  display: flex;
  gap: 6px;
  align-items: center;
}

.progress-dot-simple {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-color);
  transition: all 0.3s ease;
}

.progress-dot-simple.active {
  background: var(--primary-color);
  width: 24px;
  border-radius: 4px;
}

.walkthrough-controls {
  display: flex;
  gap: 8px;
}

.walkthrough-btn-simple {
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  font-family: inherit;
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-prev-simple {
  background: white;
  color: var(--text-primary);
  border: 2px solid var(--border-color);
}

.btn-prev-simple:hover {
  background: var(--bg-primary);
}

.btn-next-simple {
  background: var(--primary-color);
  color: white;
}

.btn-next-simple:hover {
  background: var(--secondary-color);
}

.btn-finish-simple {
  background: var(--success);
  color: white;
}

.btn-finish-simple:hover {
  background: #0d9668;
}

.help-float-btn {
  position: fixed;
  bottom: 24px;
  left: 24px;
  padding: 12px 24px;
  background: var(--brand-gradient);
  color: white;
  border: none;
  border-radius: 28px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(196, 30, 58, 0.4);
  z-index: 9998;
  transition: all 0.3s ease;
}

.help-float-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(196, 30, 58, 0.5);
}

.help-float-btn.hidden {
  display: none;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1200px) {
  .kanban-board {
    grid-template-columns: repeat(2, 1fr);
  }

  .side-panel.active {
    width: 380px;
  }

  .side-panel-content {
    min-width: 380px;
  }
}

@media (max-width: 768px) {
  .kanban-layout {
    flex-direction: column;
  }

  .side-panel.active {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 100%;
    z-index: 1500;
  }

  .side-panel-content {
    min-width: 100%;
  }

  .kanban-board {
    grid-template-columns: 1fr;
  }

  .kanban-main-area {
    padding: 16px;
  }

  .page-title {
    font-size: 1.5rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .walkthrough-container {
    bottom: 16px;
    right: 16px;
    left: 16px;
    width: auto;
  }
}

@media (max-width: 480px) {
  .header-content {
    padding: 12px 16px;
  }

  .logo-main {
    font-size: 1.1rem;
  }

  .framework-badge {
    display: none;
  }

  .board-filters {
    flex-direction: column;
  }

  .filter-search {
    min-width: 100%;
  }
}
