* {
  margin: 0;
  padding-top: 0;
  box-sizing: border-box;
}

:root {
  --color-background: #0a0a0f;
  --color-surface: #1a1a24;
  --color-surface-elevated: #252535;
  --color-primary: #8b5cf6;
  --color-primary-hover: #7c3aed;
  --color-accent: #06b6d4;
  --color-text: #f8fafc;
  --color-text-muted: #94a3b8;
  --color-border: #2d2d3d;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--color-background);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  z-index: 1000;
  transition: all 0.3s ease;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo a {
  text-decoration: none;
  color: inherit;
}

/* Optional: ensure icons don't shrink */
.tab-icon {
  flex-shrink: 0;
}

/* Optional: hide tab-label on small screens */
@media (max-width: 768px) {
  .tab-label {
    display: none;
  }
}

.tab-label {
  font-weight: 500;
}

/* Smooth transitions */

/* Dashboard styles */

/* SharePoint Navigation */
.sp-nav {
  background: var(--sp-white);
  height: 48px;
  display: flex;
  align-items: center;
  padding: 0 24px;
  position: fixed;
  top: 48px;
  left: 0;
  right: 0;
  z-index: 999;
  border-bottom: 1px solid var(--sp-gray-30);
}

.sp-nav-links {
  display: flex;
  gap: 0;
  list-style: none;
}

.sp-nav-link {
  padding: 14px 16px;
  color: var(--sp-gray-90);
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
  position: relative;
}

.sp-nav-link:hover {
  color: var(--sp-gray-160);
  background: var(--sp-gray-10);
}

.sp-nav-link.active {
  color: var(--sp-primary);
  border-bottom-color: var(--sp-primary);
}

/* Main Content */
.sp-main {
  padding: 32px 48px;
  max-width: 1920px;
  margin-left: auto;
  margin-right: auto;
  color: black;
}

.sp-page-title {
  font-size: 32px;
  font-weight: 600;
  color: black;
  margin-bottom: 8px;
}

.sp-page-description {
  font-size: 14px;
  color: black;
  margin-bottom: 24px;
}

/* SharePoint Web Parts */
.sp-webparts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.sp-webpart {
  background: var(--sp-white);
  border: 1px solid var(--sp-gray-30);
  border-radius: 2px;
  overflow: hidden;
  box-shadow: var(--sp-shadow);
  transition: box-shadow 0.2s;
}

.sp-webpart:hover {
  box-shadow: var(--sp-shadow-hover);
}

.sp-webpart-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--sp-gray-30);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sp-webpart-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--sp-gray-160);
  padding-top: 15px;
}

.sp-webpart-action {
  color: var(--sp-primary);
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
}

.sp-webpart-action:hover {
  text-decoration: underline;
}

.sp-webpart-content {
  padding: 20px;
}

/* Stats Cards */
.sp-stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.sp-stat-card {
  background: var(--sp-white);
  border: 1px solid black;
  padding: 20px;
  border-radius: 2px;
  box-shadow: var(--sp-shadow);
  transition: all 0.2s;
  color: black;
}

.sp-stat-card:hover {
  box-shadow: var(--sp-shadow-hover);
  transform: translateY(-2px);
}

.sp-stat-icon {
  font-size: 18px;
  margin-bottom: 12px;
}

.sp-stat-value {
  font-size: 28px;
  font-weight: 600;
  color: var(--sp-gray-160);
  margin-bottom: 4px;
}

.sp-stat-label {
  font-size: 13px;
  color: var(--sp-gray-90);
  margin-bottom: 8px;
}

.sp-stat-trend {
  font-size: 12px;
  color: #107c10;
  font-weight: 600;
}

/* List Items */
.sp-list {
  list-style: none;
}

.sp-list-item {
  padding: 12px 16px;
  border-bottom: 1px solid var(--sp-gray-30);
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: background 0.1s;
}

.sp-list-item:hover {
  background: var(--sp-gray-10);
}

.sp-list-item:last-child {
  border-bottom: none;
}

.sp-list-icon {
  width: 32px;
  height: 32px;
  background: var(--sp-gray-20);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.sp-list-content {
  flex: 1;
  min-width: 0;
}

.sp-list-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--sp-gray-160);
  margin-bottom: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sp-list-meta {
  font-size: 12px;
  color: var(--sp-gray-90);
}

.sp-list-badge {
  padding: 2px 8px;
  background: var(--sp-gray-20);
  border-radius: 2px;
  font-size: 12px;
  font-weight: 600;
  color: var(--sp-gray-90);
}

/* Buttons */
.sp-button {
  padding: 0 16px;
  height: 32px;
  background: var(--sp-primary);
  color: white;
  border: none;
  border-radius: 2px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.sp-button:hover {
  background: var(--sp-primary-hover);
}

.sp-button-secondary {
  background: white;
  color: var(--sp-gray-160);
  border: 1px solid var(--sp-gray-60);
}

.sp-button-secondary:hover {
  background: var(--sp-gray-10);
}

/* Command Bar */
.sp-command-bar {
  background: var(--sp-white);
  border: 1px solid var(--sp-gray-30);
  padding: 8px 12px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 2px;
}

/* Activity Feed */
.sp-activity-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--sp-gray-30);
}

.sp-activity-item:last-child {
  border-bottom: none;
}

.sp-activity-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #107c10;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.sp-activity-content {
  flex: 1;
}

.sp-activity-text {
  font-size: 13px;
  color: var(--sp-gray-160);
  margin-bottom: 4px;
}

.sp-activity-time {
  font-size: 12px;
  color: var(--sp-gray-90);
}

/* Document Library Style */
.sp-doc-list {
  background: var(--sp-white);
  border: 1px solid var(--sp-gray-30);
  border-radius: 2px;
}

.sp-doc-header {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 100px;
  gap: 16px;
  padding: 12px 20px;
  background: var(--sp-gray-10);
  border-bottom: 1px solid var(--sp-gray-30);
  font-size: 12px;
  font-weight: 600;
  color: var(--sp-gray-90);
}

.sp-doc-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 100px;
  gap: 16px;
  padding: 12px 20px;
  align-items: center;
  border-bottom: 1px solid var(--sp-gray-30);
  cursor: pointer;
  transition: background 0.1s;
}

.sp-doc-row:hover {
  background: var(--sp-gray-10);
}

.sp-doc-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--sp-primary);
}

.sp-doc-name:hover {
  text-decoration: underline;
}

.sp-doc-meta {
  font-size: 13px;
  color: var(--sp-gray-90);
}

/* Quick Links */
.sp-quick-links {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}

.sp-quick-link {
  background: var(--sp-white);
  border: 1px solid var(--sp-gray-30);
  padding: 16px;
  text-align: center;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  color: inherit;
}

.sp-quick-link:hover {
  box-shadow: var(--sp-shadow-hover);
  transform: translateY(-2px);
}

.sp-quick-link-icon {
  font-size: 32px;
  margin-bottom: 8px;
}

.sp-quick-link-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--sp-gray-160);
}

/* Responsive */
@media (max-width: 768px) {
  .sp-main {
    padding: 20px 16px;
  }

  

  .sp-webparts-grid {
    grid-template-columns: 1fr;
  }

  .sp-doc-header,
  .sp-doc-row {
    grid-template-columns: 2fr 1fr;
  }

  .sp-doc-header span:nth-child(3),
  .sp-doc-header span:nth-child(4),
  .sp-doc-row span:nth-child(3),
  .sp-doc-row span:nth-child(4) {
    display: none;
  }
}

.dashboard-layout {
  background: white;
  width: 100%;
}

/* Updated responsive styles for dashboard */
@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  .hero {
    padding: 6rem 0 4rem;
  }

  .nav-links {
    display: none;
  }

  .nav-actions {
    display: none;
  }

  .features-grid,
  .steps,
  .integrations-grid,
  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .auth-container {
    padding: 2rem;
  }

  .auth-header h2 {
    font-size: 1.75rem;
  }

  .knowledge-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .search-container {
    flex-direction: column;
  }
}

/* Dashboard Layout */
.dashboard-layout {
  display: flex;
  min-height: 100vh;
}

/* Added styles for drag and drop customization */
.draggable-element {
  position: relative;
  cursor: move;
}

.draggable-element.dragging {
  opacity: 0.5;
  transform: scale(0.95);
}

.draggable-element.drag-over {
  border: 2px dashed #0078d4;
  background: rgba(0, 120, 212, 0.05);
}

.delete-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 15px;
  height: 15px;
  background: #fffcfc;
  color: rgb(250, 0, 0);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  z-index: 10;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.delete-btn:hover {
  background: #a4262c;
  transform: scale(1.1);
}

.drag-handle {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 20px;
  height: 20px;
  background: rgba(0, 0, 0, 0.1);
  color: #666;
  border-radius: 4px;
  cursor: grab;
  font-size: 14px;
  line-height: 1;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.drag-handle:active {
  cursor: grabbing;
}

/* Modal styles for adding elements */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.modal-content {
  background: white;
  border-radius: 4px;
  width: 90%;
  max-width: 600px;
  max-height: 80vh;
  overflow: auto;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid #edebe9;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
}

.modal-close {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #605e5c;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
}

.modal-close:hover {
  background: #f3f2f1;
}

.modal-body {
  padding: 24px;
}

.element-options {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 16px;
}

.element-option {
  background: white;
  border: 1px solid #edebe9;
  padding: 20px;
  text-align: center;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

.element-option:hover {
  border-color: #0078d4;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.element-option-icon {
  font-size: 32px;
  margin-bottom: 8px;
}

.element-option-title {
  font-size: 14px;
  font-weight: 600;
  color: #323130;
  margin-bottom: 4px;
}

.element-option-desc {
  font-size: 12px;
  color: #605e5c;
}

/* Edit mode indicator */
body.edit-mode .draggable-element {
  border: 2px dashed transparent;
  transition: all 0.2s;
}

body.edit-mode .draggable-element:hover {
  border-color: #0078d4;
}

.hidden-element {
  display: none !important;
}

/* Added styles for approval modal and approval queue functionality */

/* Approval item hover effect */
.approval-item {
  cursor: pointer;
  position: relative;
}

.approval-item::after {
  content: "→";
  position: absolute;
  right: 16px;
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
}

.approval-item:hover::after {
  opacity: 0.5;
  transform: translateX(4px);
}

/* Approval modal specific styles */
.approval-modal-content {
  max-width: 700px;
}

.approval-details {
  margin-bottom: 24px;
}

.approval-section {
  margin-bottom: 24px;
}

.approval-section-title {
  font-size: 14px;
  font-weight: 600;
  color: #323130;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.approval-action-type {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: #f3f2f1;
  border-radius: 4px;
}

.action-icon {
  font-size: 24px;
}

#approval-type-text {
  font-size: 16px;
  font-weight: 600;
  color: #323130;
}

.approval-description {
  font-size: 14px;
  line-height: 1.6;
  color: #323130;
  margin: 0;
}

.approval-context {
  padding: 12px;
  background: #f3f2f1;
  border-radius: 4px;
  border-left: 3px solid #0078d4;
}

.context-item {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 13px;
}

.context-item:last-child {
  margin-bottom: 0;
}

.context-label {
  font-weight: 600;
  color: #605e5c;
  min-width: 100px;
}

.context-value {
  color: #323130;
}

.confidence-bar-container {
  position: relative;
  width: 100%;
  height: 32px;
  background: #edebe9;
  border-radius: 4px;
  overflow: hidden;
}

.confidence-bar {
  height: 100%;
  background: linear-gradient(90deg, #107c10 0%, #13a10e 100%);
  transition: width 0.3s ease;
  display: flex;
  align-items: center;
  padding-left: 12px;
}

.confidence-bar.medium {
  background: linear-gradient(90deg, #f7630c 0%, #ff8c00 100%);
}

.confidence-bar.low {
  background: linear-gradient(90deg, #d13438 0%, #e81123 100%);
}

.confidence-text {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 600;
  font-size: 14px;
  color: #323130;
}

.approval-preview {
  padding: 16px;
  background: #faf9f8;
  border: 1px solid #edebe9;
  border-radius: 4px;
  font-family: "Courier New", monospace;
  font-size: 13px;
  line-height: 1.6;
  color: #323130;
  max-height: 200px;
  overflow-y: auto;
  white-space: pre-wrap;
}

.approval-actions {
  display: flex;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid #edebe9;
}

.approval-btn {
  flex: 1;
  padding: 12px 24px;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.approve-btn {
  background: #107c10;
  color: white;
}

.approve-btn:hover {
  background: #0e6b0e;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(16, 124, 16, 0.3);
}

.deny-btn {
  background: white;
  color: #d13438;
  border: 2px solid #d13438;
}

.deny-btn:hover {
  background: #d13438;
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(209, 52, 56, 0.3);
}

.approval-btn span {
  font-size: 18px;
}

/* Empty state for approval queue */
.approval-empty {
  padding: 40px 20px;
  text-align: center;
  color: #605e5c;
}

.approval-empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.approval-empty-text {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.approval-empty-subtext {
  font-size: 13px;
  color: #8a8886;
}

/* Knowledge Base - Updated with white background, lightning blue and neon purple accents */

/* Updated layout to work with white background */
.documents-layout {
  display: flex;
  width: 100%;
  margin-left: 120px;
  margin-top: 25px;
  background-color: #ffffff;
}

.documents-main {
  margin-left: 170px;
  margin-top: 25px;
  width: 75%;
  margin-bottom: 2rem;
  background-color: #ffffff;
}

/* Updated search container with lightning blue accent */
.search-container-large {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.search-container-large .search-input {
  flex: 1;
  padding: 0.875rem 1.25rem;
  background-color: #f8f9fa;
  border: 2px solid #e9ecef;
  border-radius: 0.75rem;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.search-container-large .search-input:focus {
  outline: none;
  border-color: #00d4ff;
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.search-container-large .btn-primary {
  padding: 0.875rem 1.75rem;
  background: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
  color: white;
  border: none;
  border-radius: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.search-container-large .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 212, 255, 0.3);
}

/* Updated category filters with lightning blue and neon purple accents */
.knowledge-categories {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.category-filter {
  padding: 0.625rem 1.25rem;
  background-color: #f8f9fa;
  border: 2px solid #e9ecef;
  border-radius: 2rem;
  color: #495057;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.category-filter:hover {
  border-color: #b026ff;
  color: #b026ff;
  background-color: rgba(176, 38, 255, 0.05);
}

.category-filter.active {
  background: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
  border-color: #00d4ff;
  color: white;
  box-shadow: 0 2px 8px rgba(0, 212, 255, 0.25);
}

/* Added view controls styling */
.view-controls {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  justify-content: flex-end;
}

.view-toggle {
  padding: 0.5rem;
  background-color: #f8f9fa;
  border: 2px solid #e9ecef;
  border-radius: 0.5rem;
  color: #6c757d;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.view-toggle:hover {
  border-color: #00d4ff;
  color: #00d4ff;
  background-color: rgba(0, 212, 255, 0.05);
}

.view-toggle.active {
  background: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
  border-color: #00d4ff;
  color: white;
}

/* Made document cards more compact and added white background with colored accents */
.documents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.document-card {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  background-color: #ffffff;
  border: 2px solid #e9ecef;
  border-radius: 1rem;
  padding: 1rem;
  transition: all 0.3s ease;
  position: relative;
}

.document-card:hover {
  border-color: #00d4ff;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 212, 255, 0.15);
}

.document-icon {
  font-size: 1.75rem;
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(176, 38, 255, 0.1) 100%);
  border-radius: 0.75rem;
}

.document-content {
  flex: 1;
  min-width: 0;
}

.document-content h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.375rem;
  color: #212529;
  line-height: 1.3;
}

.document-content p {
  color: #6c757d;
  font-size: 0.8rem;
  margin-bottom: 0.625rem;
  line-height: 1.4;
}

.document-meta {
  display: flex;
  gap: 0.5rem;
  font-size: 0.7rem;
  color: #868e96;
  margin-bottom: 0.625rem;
  align-items: center;
}

.document-tags {
  display: flex;
  gap: 0.375rem;
  flex-wrap: wrap;
}

/* Updated tags with lightning blue and neon purple styling */
.tag {
  padding: 0.25rem 0.625rem;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.08) 0%, rgba(176, 38, 255, 0.08) 100%);
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 1rem;
  font-size: 0.7rem;
  color: #0099cc;
  font-weight: 500;
}

.tag:nth-child(even) {
  background: linear-gradient(135deg, rgba(176, 38, 255, 0.08) 0%, rgba(0, 212, 255, 0.08) 100%);
  border-color: rgba(176, 38, 255, 0.3);
  color: #9020cc;
}

/* Added list view styling for documents */
.documents-list {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.documents-list .document-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1rem;
  padding: 0.875rem 1rem;
}

.documents-list .document-icon {
  font-size: 1.5rem;
  width: 2.25rem;
  height: 2.25rem;
}

.documents-list .document-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1.5rem;
  flex: 1;
  min-width: 0;
}

.documents-list .document-content h3 {
  font-size: 0.9rem;
  margin-bottom: 0;
  min-width: 200px;
  max-width: 250px;
}

.documents-list .document-content p {
  margin-bottom: 0;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.documents-list .document-meta {
  margin-bottom: 0;
  min-width: 180px;
  flex-shrink: 0;
}

.documents-list .document-tags {
  min-width: 150px;
  flex-shrink: 0;
}

/* Updated button icon with neon purple accent */
.btn-icon {
  background: none;
  border: none;
  color: #868e96;
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 0.375rem;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.btn-icon:hover {
  background-color: rgba(176, 38, 255, 0.1);
  color: #b026ff;
}

/* Updated content header with lightning blue accent */
.content-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.content-header h1 {
  font-size: 2rem;
  font-weight: 700;
  color: #212529;
  margin-bottom: 0.375rem;
  background: linear-gradient(135deg, #00d4ff 0%, #b026ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.content-header p {
  color: #6c757d;
  font-size: 0.95rem;
}

.content-header .btn-primary {
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #b026ff 0%, #8020cc 100%);
  color: white;
  border: none;
  border-radius: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.content-header .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(176, 38, 255, 0.3);
}

/* Added folder creation button styling */
.btn-create-folder {
  padding: 0.5rem;
  background-color: #f8f9fa;
  border: 2px solid #e9ecef;
  border-radius: 0.5rem;
  color: #6c757d;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-create-folder:hover {
  border-color: #b026ff;
  color: #b026ff;
  background-color: rgba(176, 38, 255, 0.05);
}

/* Added folders container styling */
.folders-container {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.folder {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.05) 0%, rgba(176, 38, 255, 0.05) 100%);
  border: 2px solid #e9ecef;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  min-width: 150px;
}

.folder:hover {
  border-color: #00d4ff;
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(0, 212, 255, 0.15);
}

.folder.drag-over {
  border-color: #b026ff;
  background: linear-gradient(135deg, rgba(176, 38, 255, 0.1) 0%, rgba(0, 212, 255, 0.1) 100%);
  border-style: dashed;
}

.folder-icon {
  font-size: 1.5rem;
}

.folder-name {
  font-weight: 600;
  color: #212529;
  font-size: 0.9rem;
}

.folder-count {
  margin-left: auto;
  background: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
  color: white;
  padding: 0.125rem 0.5rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.folder-delete {
  position: absolute;
  top: 0.25rem;
  right: 0.25rem;
  background: none;
  border: none;
  color: #868e96;
  font-size: 1rem;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 0.25rem;
  opacity: 0;
  transition: all 0.2s ease;
}

.folder:hover .folder-delete {
  opacity: 1;
}

.folder-delete:hover {
  background-color: rgba(220, 53, 69, 0.1);
  color: #dc3545;
}

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

.modal.active {
  display: flex;
}

.modal-content {
  background-color: white;
  border-radius: 1rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 2px solid #e9ecef;
}

.modal-header h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #212529;
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.75rem;
  color: #868e96;
  cursor: pointer;
  padding: 0;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background-color: rgba(220, 53, 69, 0.1);
  color: #dc3545;
}

.modal-body {
  padding: 1.5rem;
}

.modal-body label {
  display: block;
  font-weight: 600;
  color: #495057;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.modal-body input[type="text"] {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #e9ecef;
  border-radius: 0.5rem;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  margin-bottom: 1rem;
}

.modal-body input[type="text"]:focus {
  outline: none;
  border-color: #00d4ff;
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.modal-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
}

.btn {
  padding: 0.625rem 1.25rem;
  border: none;
  border-radius: 0.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.btn-secondary {
  background-color: #f8f9fa;
  color: #495057;
  border: 2px solid #e9ecef;
}

.btn-secondary:hover {
  background-color: #e9ecef;
}

.document-detail-row {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid #e9ecef;
}

.document-detail-row:last-child {
  border-bottom: none;
}

.document-detail-label {
  font-weight: 600;
  color: #495057;
}

.document-detail-value {
  color: #6c757d;
}

/* Added dropdown menu styling */
.dropdown-menu {
  position: fixed;
  background-color: white;
  border: 2px solid #e9ecef;
  border-radius: 0.75rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  padding: 0.5rem;
  z-index: 9999;
  display: none;
  min-width: 180px;
}

.dropdown-menu.active {
  display: block;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.625rem 0.875rem;
  background: none;
  border: none;
  border-radius: 0.5rem;
  color: #495057;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}

.dropdown-item:hover {
  background-color: rgba(0, 212, 255, 0.08);
  color: #00d4ff;
}

.dropdown-item svg {
  flex-shrink: 0;
}

.dropdown-item[data-action="delete"]:hover {
  background-color: rgba(220, 53, 69, 0.08);
  color: #dc3545;
}

/* Added drag and drop styling for document cards */
.document-card.dragging {
  opacity: 0.5;
  cursor: move;
}

.document-card.drag-over {
  border-color: #b026ff;
  background-color: rgba(176, 38, 255, 0.05);
}

/* Added breadcrumb navigation styling */
.breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.875rem;
  background-color: #f8f9fa;
  border: 2px solid #e9ecef;
  border-radius: 0.5rem;
  color: #6c757d;
  font-weight: 500;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.breadcrumb-item:hover {
  border-color: #00d4ff;
  color: #00d4ff;
  background-color: rgba(0, 212, 255, 0.05);
}

.breadcrumb-item.active {
  background: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
  border-color: #00d4ff;
  color: white;
}

.breadcrumb-item:not(:last-child)::after {
  content: "›";
  margin-left: 0.5rem;
  color: #adb5bd;
  font-size: 1.25rem;
}

/* Added quick access sections styling */
.quick-access-sections {
  margin-bottom: 2rem;
}

.quick-section {
  margin-bottom: 1.5rem;
  background-color: #f8f9fa;
  border: 2px solid #e9ecef;
  border-radius: 1rem;
  padding: 1.25rem;
}

/* Added section title group for drag handle and title */
.section-title-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Added drag handle styling */
.section-drag-handle {
  background: none;
  border: none;
  color: #adb5bd;
  cursor: grab;
  padding: 0.25rem;
  border-radius: 0.375rem;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.section-drag-handle:hover {
  background-color: rgba(0, 212, 255, 0.1);
  color: #00d4ff;
}

.section-drag-handle:active {
  cursor: grabbing;
}

/* Updated section header to accommodate new layout */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

/* Added section actions group for collapse and show all buttons */
.section-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Added collapse button styling */
.section-collapse {
  background: none;
  border: none;
  color: #6c757d;
  cursor: pointer;
  padding: 0.375rem;
  border-radius: 0.375rem;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.section-collapse:hover {
  background-color: rgba(0, 212, 255, 0.1);
  color: #00d4ff;
}

/* Added collapsed state styling */
.quick-section.collapsed .section-content {
  display: none;
}

.quick-section.collapsed .section-collapse svg {
  transform: rotate(180deg);
}

/* Added dragging state for sections */
.quick-section.dragging {
  opacity: 0.5;
  cursor: grabbing;
}

.quick-section.drag-over {
  border-color: #b026ff;
  background-color: rgba(176, 38, 255, 0.05);
}

.section-header h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #212529;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-toggle {
  padding: 0.375rem 0.875rem;
  background-color: white;
  border: 2px solid #e9ecef;
  border-radius: 0.5rem;
  color: #6c757d;
  font-weight: 500;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.section-toggle:hover {
  border-color: #00d4ff;
  color: #00d4ff;
  background-color: rgba(0, 212, 255, 0.05);
}

.section-content {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
}

.section-content.list-view {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.empty-state {
  color: #868e96;
  font-size: 0.875rem;
  font-style: italic;
  padding: 1rem;
  text-align: center;
  grid-column: 1 / -1;
}

/* Added compact card styling for quick access sections */
.section-content .document-card {
  padding: 0.875rem;
  background-color: white;
}

.section-content .document-card .document-icon {
  font-size: 1.5rem;
  width: 2.25rem;
  height: 2.25rem;
}

.section-content .document-card .document-content h3 {
  font-size: 0.875rem;
}

.section-content .document-card .document-content p {
  font-size: 0.75rem;
}

/* Added favorite star button styling */
.btn-favorite {
  background: none;
  border: none;
  color: #868e96;
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 0.375rem;
  transition: all 0.2s ease;
  flex-shrink: 0;
  position: absolute;
  top: 0.75rem;
  right: 2.5rem;
}

.btn-favorite:hover {
  color: #ffc107;
  transform: scale(1.1);
}

.btn-favorite.favorited {
  color: #ffc107;
}

/* Updated folder styling for better navigation */
.folder {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.05) 0%, rgba(176, 38, 255, 0.05) 100%);
  border: 2px solid #e9ecef;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  min-width: 150px;
}

.folder:hover {
  border-color: #00d4ff;
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(0, 212, 255, 0.15);
}

.folder.drag-over {
  border-color: #b026ff;
  background: linear-gradient(135deg, rgba(176, 38, 255, 0.1) 0%, rgba(0, 212, 255, 0.1) 100%);
  border-style: dashed;
}

.folder-icon {
  font-size: 1.5rem;
}

.folder-name {
  font-weight: 600;
  color: #212529;
  font-size: 0.9rem;
  flex: 1;
}

.folder-count {
  background: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
  color: white;
  padding: 0.125rem 0.5rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.folder-delete {
  position: absolute;
  top: 0.25rem;
  right: 0.25rem;
  background: none;
  border: none;
  color: #868e96;
  font-size: 1rem;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 0.25rem;
  opacity: 0;
  transition: all 0.2s ease;
  z-index: 10;
}

.folder:hover .folder-delete {
  opacity: 1;
}

.folder-delete:hover {
  background-color: rgba(220, 53, 69, 0.1);
  color: #dc3545;
}

/* Process Charts */

.chat-container {
  width: 79.5%;
  height: 90vh;
  background: rgb(0, 0, 0);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  margin-left: 30px;
  margin-top: 25px;
}

.chat-header h3 {
  font-size: 1.5rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #667eea;
  padding: 15px;
}

/* Removed status-indicator and pulse animation styles */

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  background: #000000;
}

.message {
  display: flex;
  gap: 1rem;
  animation: slideIn 0.3s ease;
  align-items: flex-start; /* Added align-items to prevent stretching */
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.message.user {
  flex-direction: row-reverse;
}

.message-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1rem;
  flex-shrink: 0;
}

.message.user .message-avatar {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: rgb(0, 0, 0);
}

.message.assistant .message-avatar {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: rgb(0, 0, 0);
}

.message-content {
  max-width: 70%;
  padding: 1rem 1.25rem;
  border-radius: 18px;
  line-height: 1.6;
  position: relative;
  width: fit-content; /* Added width: fit-content to make message bubbles wrap to content size */
  min-width: 100%;
  text-align: center;
  
}

.message.user .message-content {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-bottom-right-radius: 4px;

}

.message.assistant .message-content {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: #333;
  border: 1px solid #e5e7eb;
  border-bottom-left-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Added copy button styles */
.copy-button {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: rgba(0, 0, 0, 0.05);
  border: none;
  border-radius: 6px;
  padding: 0.4rem;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s, background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.message-content:hover .copy-button {
  opacity: 1;
}

.copy-button:hover {
  background: rgba(0, 0, 0, 0.1);
}

.message.user .copy-button {
  background: rgba(255, 255, 255, 0.2);
}

.message.user .copy-button:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Added file display styles */
.message-files {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.file-tag {
  background: rgba(0, 0, 0, 0.1);
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  font-size: 0.875rem;
  display: inline-block;
}

.message.user .file-tag {
  background: rgba(255, 255, 255, 0.2);
}

.message-time {
  font-size: 0.75rem;
  color: #9ca3af;
  margin-top: 0.25rem;
  opacity: 0.8;
}

.message.user .message-time {
  color: rgba(255, 255, 255, 0.8);
}

.typing-indicator {
  display: flex;
  gap: 0.25rem;
  padding: 0.5rem 0;
}

.typing-dot {
  width: 8px;
  height: 8px;
  background: #9ca3af;
  border-radius: 50%;
  animation: typing 1.4s infinite;
}

.typing-dot:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typing {
  0%,
  60%,
  100% {
    transform: translateY(0);
  }
  30% {
    transform: translateY(-10px);
  }
}

.chat-input-container {
  padding: 1.5rem 2rem;
  background: rgb(0, 0, 0);
  border-top: 1px solid #e5e7eb;
}

.chat-input-wrapper {
  display: flex;
  gap: 1rem;
  align-items: flex-end;
}

.chat-input {
  flex: 1;
  padding: 1rem 1.25rem;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  font-size: 1rem;
  font-family: inherit;
  resize: none;
  max-height: 150px;
  transition: border-color 0.2s;
}

.chat-input:focus {
  outline: none;
  border-color: #667eea;
}

.send-button {
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.send-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.send-button:active {
  transform: translateY(0);
}

.send-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.chat-messages::-webkit-scrollbar {
  width: 8px;
}

.chat-messages::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.chat-messages::-webkit-scrollbar-thumb {
  background: #667eea;
  border-radius: 4px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
  background: #764ba2;
}
/* Added chat history section styles */
.chat-history-section {
  padding: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  max-height: 600px;
  overflow-y: auto;
  margin-left: 100px;
}

.chat-history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.chat-history-header h3 {
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

.new-chat-button {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 6px;
  padding: 0.4rem;
  cursor: pointer;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.new-chat-button:hover {
  background: rgba(255, 255, 255, 0.2);
}

.chat-history-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.chat-history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
  gap: 0.5rem;
  height: 100px;
  width: 240px;
}

.chat-history-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

.chat-history-item.active {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.chat-history-item-content {
  flex: 1;
  min-width: 0;
}

.chat-history-title {
  font-size: 0.875rem;
  color: white;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-history-time {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 0.25rem;
}

.chat-delete-button {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
  flex-shrink: 0;
  margin-right:20px;
}

.chat-delete-button:hover {
  background: rgba(255, 0, 0, 0.2);
  color: #ff6b6b;
}

.chat-history-section::-webkit-scrollbar {
  width: 6px;
}

.chat-history-section::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
}

.chat-history-section::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

.chat-history-section::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

@media (max-width: 768px) {
  .chat-container {
    height: 100vh;
    border-radius: 0;
  }

  .message-content {
    max-width: 85%;
  }

  .chat-header h1 {
    font-size: 1.25rem;
  }
}

/* Project Setup Wizard Styles */
.modal-large {
  max-width: 900px;
  max-height: 90vh;
  overflow-y: auto;
}

.setup-progress {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding: 0 1rem;
  position: relative;
}

.setup-progress::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: #334155;
  z-index: 0;
}

.setup-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  z-index: 1;
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #1e293b;
  border: 2px solid #334155;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: #64748b;
  transition: all 0.3s ease;
}

.setup-step.active .step-number {
  background: #3b82f6;
  border-color: #3b82f6;
  color: white;
}

.setup-step.completed .step-number {
  background: #10b981;
  border-color: #10b981;
  color: white;
}

.step-label {
  font-size: 0.75rem;
  color: #64748b;
  text-align: center;
  max-width: 100px;
}

.setup-step.active .step-label {
  color: #e2e8f0;
  font-weight: 500;
}

.setup-step-content {
  display: none;
  animation: fadeIn 0.3s ease;
}

.setup-step-content.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.config-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
  max-height: 300px;
  overflow-y: auto;
  padding: 0.5rem;
  background: #0f172a;
  border-radius: 8px;
}

.config-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: #1e293b;
  border-radius: 6px;
  border: 1px solid #334155;
}

.config-item-color {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  flex-shrink: 0;
}

.config-item span {
  flex: 1;
  color: #e2e8f0;
}

.config-item-badge {
  padding: 0.25rem 0.5rem;
  background: #334155;
  color: #e2e8f0;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
}

.config-item-toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.config-item-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #334155;
  transition: 0.3s;
  border-radius: 24px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

.config-item-toggle input:checked + .toggle-slider {
  background-color: #3b82f6;
}

.config-item-toggle input:checked + .toggle-slider:before {
  transform: translateX(20px);
}

.config-item-remove {
  background: none;
  border: none;
  color: #ef4444;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background 0.2s ease;
}

.config-item-remove:hover {
  background: rgba(239, 68, 68, 0.1);
}

.add-item-form {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.add-item-form input[type="text"],
.add-item-form select {
  flex: 1;
  padding: 0.5rem;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 6px;
  color: #e2e8f0;
  font-size: 0.875rem;
}

.add-item-form input[type="color"] {
  width: 50px;
  height: 38px;
  padding: 2px;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 6px;
  cursor: pointer;
}

.add-item-form input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* Adding styles for column configuration with multiple statuses */
.column-config-item {
  flex-direction: column;
  align-items: stretch;
  gap: 0.5rem;
}

.column-config-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.column-name {
  font-weight: 600;
  color: #e2e8f0;
}

.column-statuses {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.5rem;
  background: #0f172a;
  border-radius: 4px;
}

.status-checkbox {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  cursor: pointer;
}

.status-checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.status-checkbox-label {
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  color: white;
  font-weight: 500;
}

/* Report Table Styles */
.report-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}

.report-table thead {
  background: #1e293b;
  border-bottom: 2px solid #334155;
}

.report-table th {
  padding: 0.75rem;
  text-align: left;
  font-size: 0.875rem;
  font-weight: 600;
  color: #cbd5e1;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.report-table tbody tr {
  border-bottom: 1px solid #334155;
  transition: background 0.2s;
}

.report-table tbody tr:hover {
  background: #1e293b;
}

.report-table td {
  padding: 0.75rem;
  font-size: 0.875rem;
  color: #e2e8f0;
}

.report-table tfoot {
  background: #1e293b;
  border-top: 2px solid #334155;
  font-weight: 600;
}

.report-table tfoot td {
  padding: 0.75rem;
}

.status-badge {
  padding: 0.25rem 0.625rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-block;
  text-transform: capitalize;
}

.status-badge.active {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
}

.status-badge.planning {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
}

.status-badge.on

/* Projects Page Specific Styles */

/* Projects Page Specific Styles */

.projects-main {
  padding: 2rem;
  box-sizing: border-box;
  max-width: 1400px;
}

.projects-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.projects-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.projects-header p {
  color: var(--color-text-muted);
  font-size: 1rem;
}

.projects-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-card-small {
  display: flex;
  align-items: center;
  gap: 1rem;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 1rem;
  padding: 1.25rem;
  transition: all 0.3s ease;
}

.stat-card-small:hover {
  border-color: var(--color-primary);
  transform: translateY(-2px);
}

.stat-card-small .stat-icon {
  font-size: 2rem;
}

.stat-content-small h3 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--color-text);
}

.stat-content-small p {
  color: var(--color-text-muted);
  font-size: 0.875rem;
}

.projects-filters {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.project-filter {
  padding: 0.625rem 1.25rem;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 2rem;
  color: var(--color-text-muted);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.875rem;
}

.project-filter:hover {
  border-color: var(--color-primary);
  color: var(--color-text);
}

.project-filter.active {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.project-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 1rem;
  padding: 1.5rem;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
}

.project-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.2);
}

.project-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.project-icon {
  width: 3rem;
  height: 3rem;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.project-card-actions {
  display: flex;
  gap: 0.5rem;
}

.project-action-btn {
  background: transparent;
  border: none;
  color: var(--color-text-muted);
  cursor: pointer;
  padding: 0.375rem;
  border-radius: 0.375rem;
  transition: all 0.2s;
  font-size: 1rem;
}

.project-action-btn:hover {
  background: var(--color-surface-elevated);
  color: var(--color-text);
}

.project-key {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-accent);
  background-color: rgba(6, 182, 212, 0.1);
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  margin-bottom: 0.5rem;
  display: inline-block;
}

.project-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.project-card p {
  color: var(--color-text-muted);
  font-size: 0.875rem;
  line-height: 1.5;
  margin-bottom: 1rem;
  min-height: 2.625rem;
}

.project-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

.project-meta-item {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.project-status {
  padding: 0.25rem 0.625rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: capitalize;
}

.project-status.active {
  background-color: rgba(34, 197, 94, 0.1);
  color: #22c55e;
}

.project-status.planning {
  background-color: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
}

.project-status.on-hold {
  background-color: rgba(251, 191, 36, 0.1);
  color: #fbbf24;
}

.project-status.completed {
  background-color: rgba(139, 92, 246, 0.1);
  color: #8b5cf6;
}

.project-status.archived {
  background-color: rgba(100, 116, 139, 0.1);
  color: #64748b;
}

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

.project-team {
  display: flex;
  align-items: center;
}

.project-avatars {
  display: flex;
  margin-left: -0.5rem;
}

.project-avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  border: 2px solid var(--color-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: white;
  margin-left: -0.5rem;
}

.project-avatar:first-child {
  margin-left: 0;
}

.project-progress {
  text-align: right;
}

.project-progress-text {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-bottom: 0.25rem;
}

.project-progress-bar {
  width: 100px;
  height: 6px;
  background: var(--color-surface-elevated);
  border-radius: 3px;
  overflow: hidden;
}

.project-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  transition: width 0.3s ease;
}

.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--color-text-muted);
}

.empty-state-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.empty-state h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.empty-state p {
  margin-bottom: 1.5rem;
}

/* Responsive */
@media (max-width: 768px) {
  .projects-main {
    padding: 1rem;
  }

  .projects-header {
    flex-direction: column;
    gap: 1rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .projects-stats {
    grid-template-columns: 1fr;
  }
}

/* ================== Reports Modal Styles ================== */
.reports-modal-content {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 850px;
    height: 650px;
    background: #000000;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    z-index: 1000;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.reports-modal .modal-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1rem;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.report-builder-form {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
}

.report-top {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.report-top input,
.report-top select {
    flex: 1;
    padding: 4px 6px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    font-size: 0.9rem;
}

.report-container {
    display: flex;
    flex: 1;
    gap: 1rem;
    overflow: hidden;
}

/* Left Sidebar Fields */
.report-fields-sidebar {
    width: 150px;
    border-right: 1px solid #cbd5e1;
    padding-right: 0.5rem;
    overflow-y: auto;
}

.fields-category {
    margin-bottom: 1rem;
}

.fields-category h3 {
    margin: 0.25rem 0;
    font-size: 0.85rem;
    color: #334155;
}

.fields-category div {
    margin-bottom: 0.25rem;
    font-size: 0.85rem;
}

/* Live Preview */
.report-preview {
    flex: 1;
    overflow: auto;
}

.report-preview table {
    width: 100%;
    border-collapse: collapse;
}

.report-preview th,
.report-preview td {
    border: 1px solid #334155;
    padding: 4px 6px;
    font-size: 0.8rem;
    text-align: left;
}

.report-actions {
    margin-top: 0.5rem;
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

/* Tasks */
.btn-btn-primary {
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.875rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-primary:active {
  transform: translateY(0);
}
.dashboard-main3 {
  padding: 2rem;
  box-sizing: border-box;
  margin-left: 90px;
}

.content-header3 {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.tasks-filters {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.task-filter {
  padding: 0.625rem 1.25rem;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 2rem;
  color: var(--color-text-muted);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.task-filter:hover {
  border-color: var(--color-primary);
  color: var(--color-text);
}

.task-filter.active {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
}

/* Added styles for filter dropdowns */
.filter-dropdowns {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.filter-label {
  font-size: 0.75rem;
  color: #94a3b8;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.filter-select {
  padding: 0.625rem 1rem;
  background: #1e293b;
  color: #cbd5e1;
  border: 1px solid #334155;
  border-radius: 8px;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s;
  min-width: 220px;
  height: 42px;
  width: 220px;
}

.filter-select:hover {
  background: #334155;
  border-color: #475569;
}

.filter-select:focus {
  outline: none;
  border-color: #667eea;
  background: #334155;
}

/* View switcher styles */
.view-switcher {
  display: flex;
  gap: 0.5rem;
  margin-left: auto;
  background: #1e293b;
  padding: 0.25rem;
  border-radius: 8px;
  border: 1px solid #334155;
}

.view-btn {
  padding: 0.5rem;
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.view-btn:hover {
  background: #334155;
  color: #cbd5e1;
}

.view-btn.active {
  background: #667eea;
  color: #ffffff;
}

/* List view styles */
.tasks-list-view {
  background: #1e293b;
  border-radius: 12px;
  border: 1px solid #334155;
  overflow: hidden;
}

.list-container {
  overflow-x: auto;
}

.tasks-table {
  width: 100%;
  border-collapse: collapse;
}

.tasks-table thead {
  background: #0f172a;
  border-bottom: 2px solid #334155;
}

.tasks-table th {
  padding: 1rem;
  text-align: left;
  font-size: 0.875rem;
  font-weight: 600;
  color: #cbd5e1;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tasks-table tbody tr {
  border-bottom: 1px solid #334155;
  transition: background 0.2s;
}

.tasks-table tbody tr:hover {
  background: #0f172a;
}

.tasks-table td {
  padding: 1rem;
  font-size: 0.875rem;
  color: #e2e8f0;
}

.tasks-table td input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.list-task-title {
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.25rem;
}

.list-task-desc {
  font-size: 0.8125rem;
  color: #94a3b8;
}

.list-assignee {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.list-assignee-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #667eea;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
}

/* Gantt view styles */
.tasks-gantt-view {
  background: #1e293b;
  border-radius: 12px;
  border: 1px solid #334155;
  padding: 1.5rem;
}

.gantt-container {
  overflow-x: auto;
}

.gantt-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #334155;
}

.gantt-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  min-width: 600px;
}

.timeline-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #cbd5e1;
  text-align: center;
  padding: 0.5rem;
  background: #0f172a;
  border-radius: 6px;
}

.gantt-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 600px;
}

.gantt-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem;
  background: #0f172a;
  border-radius: 8px;
  border: 1px solid #334155;
}

.gantt-task-info {
  min-width: 200px;
  flex-shrink: 0;
}

.gantt-task-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.25rem;
}

.gantt-task-meta {
  font-size: 0.75rem;
  color: #94a3b8;
}

.gantt-bar-container {
  flex: 1;
  height: 32px;
  background: #1e293b;
  border-radius: 6px;
  position: relative;
  overflow: hidden;
}

.gantt-bar {
  height: 100%;
  border-radius: 6px;
  display: flex;
  align-items: center;
  padding: 0 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #ffffff;
  transition: all 0.2s;
}

.gantt-bar:hover {
  opacity: 0.9;
  transform: scaleY(1.1);
}

.gantt-bar.high {
  background: #dc2626;
}

.gantt-bar.medium {
  background: #f59e0b;
}

.gantt-bar.low {
  background: #10b981;
}

.tasks-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
  width: 110%;
}

.task-column {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 1rem;
  padding: 1.5rem;
}

.task-column-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.task-column-header h3 {
  font-size: 1.125rem;
  font-weight: 600;
}

.task-count {
  background-color: var(--color-surface-elevated);
  color: var(--color-text-muted);
  padding: 0.25rem 0.625rem;
  border-radius: 1rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.task-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.task-card {
  background-color: var(--color-surface-elevated);
  border: 1px solid var(--color-border);
  border-radius: 0.75rem;
  padding: 1rem;
  transition: all 0.3s ease;
}

.task-card:hover {
  border-color: var(--color-primary);
}

.task-card.completed {
  opacity: 0.6;
}

.task-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.task-card-header input[type="checkbox"] {
  width: 1.125rem;
  height: 1.125rem;
  cursor: pointer;
}

.task-priority {
  padding: 0.25rem 0.625rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.task-priority.high {
  background-color: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.task-priority.medium {
  background-color: rgba(251, 191, 36, 0.1);
  color: #fbbf24;
}

.task-priority.low {
  background-color: rgba(34, 197, 94, 0.1);
  color: #22c55e;
}

.task-card h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.task-card p {
  color: var(--color-text-muted);
  font-size: 0.875rem;
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.task-meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 0.75rem;
}

.task-due,
.task-source,
.task-completed {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.task-assignee {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.assignee-avatar {
  width: 1.5rem;
  height: 1.5rem;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}

.task-assignee span {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.integration-notice {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 1rem;
}

.integration-notice .integration-icon {
  font-size: 2rem;
}

.integration-notice p {
  flex: 1;
  color: var(--color-text-muted);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: #0f172a;
  color: #e2e8f0;
  line-height: 1.6;
}

.dashboard-layout {
  min-height: 100vh;
}

.dashboard-main {
  flex: 1;
  min-width: 0;
  padding: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.content-header {
  margin-bottom: 2rem;
}

.content-header h1 {
  font-size: 2rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.content-header p {
  color: #94a3b8;
  font-size: 1rem;
}

.tasks-filters {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.btn {
  padding: 0.625rem 1.25rem;
  border: none;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary {
  background: #667eea;
  color: #ffffff;
}

.btn-primary:hover {
  background: #5568d3;
}

.task-filter {
  padding: 0.625rem 1rem;
  background: #1e293b;
  color: #cbd5e1;
  border: 1px solid #334155;
  border-radius: 8px;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s;
}

.task-filter:hover {
  background: #334155;
  border-color: #475569;
}

.task-filter.active {
  background: #667eea;
  color: #ffffff;
  border-color: #667eea;
}

.tasks-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.task-column {
  background: #1e293b;
  border-radius: 12px;
  padding: 1.25rem;
  border: 1px solid #334155;
}

.task-column-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #334155;
}

.task-column-header h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #ffffff;
}

.task-count {
  background: #334155;
  color: #cbd5e1;
  padding: 0.25rem 0.625rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
}

.task-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.task-card {
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 10px;
  padding: 1rem;
  transition: all 0.2s;
}

.task-card:hover {
  border-color: #475569;
  transform: translateY(-2px);
}

.task-card.completed {
  opacity: 0.6;
}

.task-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.task-card-header input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.task-priority {
  padding: 0.25rem 0.625rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: capitalize;
}

.task-priority.high {
  background: #dc2626;
  color: #ffffff;
}

.task-priority.medium {
  background: #f59e0b;
  color: #ffffff;
}

.task-priority.low {
  background: #10b981;
  color: #ffffff;
}

.task-card h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.task-card p {
  font-size: 0.875rem;
  color: #94a3b8;
  margin-bottom: 0.75rem;
}

.task-meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 0.75rem;
  font-size: 0.75rem;
  color: #64748b;
}

.task-assignee {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #94a3b8;
}

.assignee-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #667eea;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
}

/* Modal with solid black background - no transparency */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.modal.active {
  display: flex;
}

/* Changed from #1f2937 to #000000 for solid black background */
.modal-content {
  background: #000000;
  border-radius: 16px;
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.8);
  animation: modalSlideIn 0.3s ease;
  position: relative;
  z-index: 1001;
  border: 1px solid #374151;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid #374151;
}

.modal-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  font-size: 2rem;
  color: #9ca3af;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}

.modal-close:hover {
  background: #1f2937;
  color: #ffffff;
}

#task-form {
  padding: 1.5rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #e5e7eb;
  margin-bottom: 0.5rem;
}

/* Darker input backgrounds for better contrast against solid black */
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #374151;
  border-radius: 8px;
  font-size: 0.875rem;
  font-family: inherit;
  transition: border-color 0.2s, background 0.2s;
  background: #1a1a1a;
  color: #ffffff;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: #667eea;
  background: #262626;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #6b7280;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.modal-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #374151;
}

.btn-secondary {
  background: #374151;
  color: #e5e7eb;
}

.btn-secondary:hover {
  background: #4b5563;
}

@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
  }

  .modal-content {
    width: 95%;
    max-height: 95vh;
  }

  .tasks-board {
    grid-template-columns: 1fr;
  }
}

/* Added styles for detailed task view modal with Jira-like features */

/* Task Details Modal Styles */
.task-details-content {
  max-width: 1200px;
  width: 95%;
  max-height: 95vh;
}

.task-details-header-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.task-type-badge {
  background: #667eea;
  color: #ffffff;
  padding: 0.25rem 0.625rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.task-id {
  color: #94a3b8;
  font-size: 0.875rem;
  font-weight: 600;
}

.task-details-body {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2rem;
  padding: 1.5rem;
  max-height: calc(95vh - 80px);
  overflow-y: auto;
}

.task-details-main {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.detail-section {
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #374151;
}

.detail-section:last-child {
  border-bottom: none;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.detail-section-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #cbd5e1;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.detail-title-input {
  width: 100%;
  padding: 0.5rem 0;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  font-family: inherit;
}

.detail-title-input:focus {
  outline: none;
  border-bottom: 2px solid #667eea;
}

.detail-textarea {
  width: 100%;
  padding: 0.75rem;
  background: #1a1a1a;
  border: 1px solid #374151;
  border-radius: 8px;
  font-size: 0.875rem;
  color: #ffffff;
  font-family: inherit;
  resize: vertical;
}

.detail-textarea:focus {
  outline: none;
  border-color: #667eea;
  background: #262626;
}

.btn-icon {
  background: transparent;
  border: 1px solid #374151;
  color: #94a3b8;
  padding: 0.375rem 0.75rem;
  border-radius: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-icon:hover {
  background: #1e293b;
  border-color: #667eea;
  color: #667eea;
}

/* Subtasks */
.subtasks-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.subtask-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: #1a1a1a;
  border: 1px solid #374151;
  border-radius: 8px;
  transition: all 0.2s;
}

.subtask-item:hover {
  border-color: #475569;
}

.subtask-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.subtask-title {
  color: #667eea;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s;
  flex: 1;
  font-size: 0.875rem;
}

.subtask-title:hover {
  color: #5568d3;
  text-decoration: underline;
}

.subtask-title.completed {
  text-decoration: line-through;
  opacity: 0.6;
}

.btn-delete {
  background: transparent;
  border: none;
  color: #ef4444;
  cursor: pointer;
  padding: 0.25rem;
  font-size: 1rem;
  transition: opacity 0.2s;
}

.btn-delete:hover {
  opacity: 0.7;
}

/* Linked Issues */
.linked-issues-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.linked-issue-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: #1a1a1a;
  border: 1px solid #374151;
  border-radius: 8px;
  transition: all 0.2s;
}

.linked-issue-item:hover {
  border-color: #667eea;
  cursor: pointer;
}

.link-type {
  font-size: 0.75rem;
  color: #94a3b8;
  font-weight: 600;
}

.linked-task-id,
.linked-task-title {
  color: #667eea;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s;
}

.linked-task-id:hover,
.linked-task-title:hover {
  color: #5568d3;
  text-decoration: underline;
}

.linked-task-title {
  flex: 1;
  color: #e2e8f0;
  font-size: 0.875rem;
}

/* Attachments */
.attachments-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.75rem;
}

.attachment-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem;
  background: #1a1a1a;
  border: 1px solid #374151;
  border-radius: 8px;
  transition: all 0.2s;
  cursor: pointer;
}

.attachment-item:hover {
  border-color: #667eea;
}

.attachment-icon {
  font-size: 2rem;
}

.attachment-name {
  font-size: 0.75rem;
  color: #cbd5e1;
  text-align: center;
  word-break: break-word;
}

.attachment-size {
  font-size: 0.6875rem;
  color: #64748b;
}

/* Comments */
.comment-input-container {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.comment-textarea {
  flex: 1;
  padding: 0.75rem;
  background: #1a1a1a;
  border: 1px solid #374151;
  border-radius: 8px;
  font-size: 0.875rem;
  color: #ffffff;
  font-family: inherit;
  resize: vertical;
}

.comment-textarea:focus {
  outline: none;
  border-color: #667eea;
  background: #262626;
}

.comments-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.comment-item {
  display: flex;
  gap: 0.75rem;
}

.comment-content {
  flex: 1;
}

.comment-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.comment-author {
  font-size: 0.875rem;
  font-weight: 600;
  color: #ffffff;
}

.comment-time {
  font-size: 0.75rem;
  color: #64748b;
}

.comment-text {
  font-size: 0.875rem;
  color: #cbd5e1;
  line-height: 1.5;
}

.comment-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.comment-action {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 0.75rem;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s;
}

.comment-action:hover {
  color: #667eea;
}

/* Activity Log */
.activity-log {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.activity-item {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem;
  background: #1a1a1a;
  border-radius: 8px;
}

.activity-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #334155;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  flex-shrink: 0;
}

.activity-content {
  flex: 1;
}

.activity-text {
  font-size: 0.875rem;
  color: #cbd5e1;
  margin-bottom: 0.25rem;
}

.activity-time {
  font-size: 0.75rem;
  color: #64748b;
}

/* Sidebar */
.task-details-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.sidebar-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sidebar-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sidebar-select,
.sidebar-input {
  width: 100%;
  padding: 0.625rem;
  background: #1a1a1a;
  border: 1px solid #374151;
  border-radius: 8px;
  font-size: 0.875rem;
  color: #ffffff;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
}

.sidebar-select:hover,
.sidebar-input:hover {
  border-color: #475569;
}

.sidebar-select:focus,
.sidebar-input:focus {
  outline: none;
  border-color: #667eea;
  background: #262626;
}

.assignee-selector {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem;
  background: #1a1a1a;
  border: 1px solid #374151;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.assignee-selector:hover {
  border-color: #475569;
}

.assignee-selector span {
  font-size: 0.875rem;
  color: #cbd5e1;
}

/* Time Tracking */
.time-tracking {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.time-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.time-label {
  font-size: 0.8125rem;
  color: #94a3b8;
  min-width: 70px;
}

.time-input {
  flex: 1;
  padding: 0.375rem 0.625rem;
  background: #1a1a1a;
  border: 1px solid #374151;
  border-radius: 6px;
  font-size: 0.8125rem;
  color: #ffffff;
  font-family: inherit;
}

.time-input:focus {
  outline: none;
  border-color: #667eea;
}

.time-progress {
  height: 6px;
  background: #1a1a1a;
  border-radius: 3px;
  overflow: hidden;
  margin-top: 0.25rem;
}

.time-progress-bar {
  height: 100%;
  background: #667eea;
  transition: width 0.3s;
}

/* Labels */
.labels-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.label-tag {
  padding: 0.25rem 0.625rem;
  background: #334155;
  color: #ffffff;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

.label-remove {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  padding: 0;
  font-size: 1rem;
  line-height: 1;
  transition: color 0.2s;
}

.label-remove:hover {
  color: #ffffff;
}

.btn-add-label {
  background: transparent;
  border: 1px dashed #374151;
  color: #94a3b8;
  padding: 0.375rem 0.75rem;
  border-radius: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-add-label:hover {
  border-color: #667eea;
  color: #667eea;
}

/* Added label tags for task cards */
.task-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-bottom: 0.5rem;
}

.task-label-tag {
  padding: 0.1875rem 0.5rem;
  border-radius: 10px;
  font-size: 0.6875rem;
  font-weight: 600;
  color: #ffffff;
  display: inline-block;
}

/* Watchers */
.watchers-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.btn-add-watcher {
  background: transparent;
  border: 1px dashed #374151;
  color: #94a3b8;
  padding: 0.375rem 0.75rem;
  border-radius: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-add-watcher:hover {
  border-color: #667eea;
  color: #667eea;
}

.meta-text {
  font-size: 0.8125rem;
  color: #94a3b8;
}

/* Added Sprint Management Styles */
.sprint-section {
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #374151;
}

.sprint-section:last-child {
  border-bottom: none;
}

.sprint-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.sprint-item {
  padding: 1rem;
  background: #1a1a1a;
  border: 1px solid #374151;
  border-radius: 8px;
  transition: all 0.2s;
}

.sprint-item:hover {
  border-color: #667eea;
}

.sprint-item.active {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.05);
}

.sprint-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.sprint-name {
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
}

.sprint-status {
  padding: 0.25rem 0.625rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
}

.sprint-status.active {
  background: #10b981;
  color: #ffffff;
}

.sprint-status.planned {
  background: #3b82f6;
  color: #ffffff;
}

.sprint-status.completed {
  background: #64748b;
  color: #ffffff;
}

.sprint-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.8125rem;
  color: #94a3b8;
  margin-bottom: 0.75rem;
}

.sprint-actions {
  display: flex;
  gap: 0.5rem;
}

.sprint-progress {
  height: 6px;
  background: #1a1a1a;
  border-radius: 3px;
  overflow: hidden;
  margin-top: 0.75rem;
}

.sprint-progress-bar {
  height: 100%;
  background: #10b981;
  transition: width 0.3s;
}

/* Added Color Picker Styles */
.color-picker-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}

.color-option {
  width: 100%;
  aspect-ratio: 1;
  border: 2px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.color-option:hover {
  transform: scale(1.1);
}

.color-option.selected {
  border-color: #ffffff;
  box-shadow: 0 0 0 2px #000000, 0 0 0 4px #ffffff;
}

/* Added List View Styles */
.tasks-list-view {
  background: #1e293b;
  border-radius: 12px;
  padding: 1.25rem;
  border: 1px solid #334155;
}

.list-container {
  overflow-x: auto;
}

.tasks-table {
  width: 100%;
  border-collapse: collapse;
}

.tasks-table thead {
  background: #0f172a;
  border-bottom: 2px solid #334155;
}

.tasks-table th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tasks-table tbody tr {
  border-bottom: 1px solid #334155;
  transition: background 0.2s;
  cursor: pointer;
}

.tasks-table tbody tr:hover {
  background: #0f172a;
}

.tasks-table td {
  padding: 1rem;
  font-size: 0.875rem;
  color: #cbd5e1;
}
.list-task-title {
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.25rem;
}

.list-task-desc {
  font-size: 0.8125rem;
  color: #94a3b8;
}

.list-assignee {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.list-assignee-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #667eea;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6875rem;
  font-weight: 600;
}

/* Added Gantt View Styles */
.tasks-gantt-view {
  background: #1e293b;
  border-radius: 12px;
  padding: 1.25rem;
  border: 1px solid #334155;
}

.gantt-container {
  overflow-x: auto;
}

.gantt-header {
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #334155;
}

.gantt-timeline {
  display: flex;
  gap: 2rem;
}

.timeline-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.gantt-body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.gantt-row {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 1rem;
  padding: 0.75rem;
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 8px;
  transition: all 0.2s;
  cursor: pointer;
}

.gantt-row:hover {
  border-color: #667eea;
}

.gantt-task-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.gantt-task-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #ffffff;
}

.gantt-task-meta {
  display: flex;
  gap: 0.5rem;
}

.gantt-bar-container {
  position: relative;
  height: 32px;
  background: #1a1a1a;
  border-radius: 6px;
}

.gantt-bar {
  position: absolute;
  height: 100%;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: #ffffff;
  transition: all 0.3s;
}

.gantt-bar.high {
  background: #dc2626;
}

.gantt-bar.medium {
  background: #f59e0b;
}

.gantt-bar.low {
  background: #10b981;
}

/* Added View Switcher Styles */
.view-switcher {
  display: flex;
  gap: 0.5rem;
  margin-left: auto;
}

.view-btn {
  padding: 0.625rem;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 8px;
  color: #cbd5e1;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.view-btn:hover {
  background: #334155;
  border-color: #475569;
}

.view-btn.active {
  background: #667eea;
  border-color: #667eea;
  color: #ffffff;
}

.view-btn svg {
  display: block;
}

@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
  }

  .modal-content {
    width: 95%;
    max-height: 95vh;
  }

  .tasks-board {
    grid-template-columns: 1fr;
  }

  

  .dashboard-main3 {
    margin-left: 0;
    max-width: 100%;
  }

  .task-details-body {
    grid-template-columns: 1fr;
  }

  .gantt-row {
    grid-template-columns: 1fr;
  }

  .view-switcher {
    width: 100%;
    justify-content: center;
  }
}

/* Settings */
.settings-container {
  max-width: 900px;
}

.settings-section {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 1rem;
  padding: 2rem;
  margin-bottom: 2rem;
}

.settings-section h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

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

.setting-item:last-child {
  border-bottom: none;
}

.setting-info {
  flex: 1;
  padding-right: 2rem;
}

.setting-info h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.setting-info p {
  color: var(--color-text-muted);
  font-size: 0.875rem;
  line-height: 1.5;
}

.toggle {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
  flex-shrink: 0;
}

.toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--color-surface-elevated);
  border: 1px solid var(--color-border);
  transition: 0.3s;
  border-radius: 26px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: var(--color-text-muted);
  transition: 0.3s;
  border-radius: 50%;
}

.toggle input:checked + .toggle-slider {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
}

.toggle input:checked + .toggle-slider:before {
  transform: translateX(22px);
  background-color: white;
}

.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-text);
  cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
  width: 1.125rem;
  height: 1.125rem;
  cursor: pointer;
}

.slider {
  width: 200px;
  height: 6px;
  background: var(--color-surface-elevated);
  border: 1px solid var(--color-border);
  border-radius: 5px;
  outline: none;
  cursor: pointer;
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  background: var(--color-primary);
  border-radius: 50%;
  cursor: pointer;
}

.slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  background: var(--color-primary);
  border-radius: 50%;
  cursor: pointer;
  border: none;
}

.slider-value {
  margin-left: 1rem;
  font-weight: 600;
  color: var(--color-primary);
}

.form-select {
  padding: 0.75rem 1rem;
  background-color: var(--color-surface-elevated);
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  color: var(--color-text);
  font-size: 0.95rem;
  cursor: pointer;
}

.form-select:focus {
  outline: none;
  border-color: var(--color-primary);
}

.integration-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.integration-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem;
  background-color: var(--color-surface-elevated);
  border: 1px solid var(--color-border);
  border-radius: 0.75rem;
}

.integration-item-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
}

.integration-item-info .integration-icon {
  font-size: 1.5rem;
}

.integration-item-info h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.integration-item-info p {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

/* Responsive */
@media (max-width: 1024px) {
  


  .process-charts-container {
    grid-template-columns: 1fr;
  }

  .tasks-board {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  

  .tab-label {
    display: none;
  }

  

  .dashboard-main {
    padding: 1rem;
  }

  .content-header {
    flex-direction: column;
    gap: 1rem;
  }

  .time-saved-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-grid-two-col {
    grid-template-columns: 1fr;
  }

  .documents-grid {
    grid-template-columns: 1fr;
  }

  .meeting-actions {
    flex-direction: column;
  }

  .meeting-actions .btn {
    width: 100%;
  }

  /* --- Dashboard Tab Visibility --- */
  .tab-content {
    display: none;
  }
  .tab-content.active {
    display: block;
  }

  /* Profile Page Styles */
  .profile-container {
    max-width: 1000px;
    margin: 0 auto;
    padding-right: 50px;
  }

  .profile-header-card {
    display: flex;
    align-items: center;
    gap: 2rem;
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
  }

  .profile-avatar-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .profile-avatar-large {
    width: 6rem;
    height: 6rem;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
  }

  .profile-header-info {
    flex: 1;
  }

  .profile-header-info h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
  }

  .profile-header-info p {
    color: var(--color-text-muted);
    margin-bottom: 0.25rem;
  }

  .profile-user-id {
    font-size: 0.875rem;
    color: var(--color-text-muted);
  }

  .profile-section {
    margin-bottom: 2rem;
  }

  .profile-form {
    padding: 1.5rem 0;
  }

  .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  .form-group label {
    font-weight: 600;
    font-size: 0.95rem;
  }

  .form-input[readonly] {
    background-color: var(--color-surface-elevated);
    cursor: not-allowed;
    opacity: 0.7;
  }

  .form-actions {
    display: flex;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
  }

  .stats-grid-profile {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    padding: 1.5rem 0;
  }

  .stat-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background-color: var(--color-surface-elevated);
    border-radius: 0.75rem;
  }

  .stat-icon {
    font-size: 2rem;
  }

  .stat-details h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
  }

  .stat-details p {
    color: var(--color-text-muted);
    font-size: 0.875rem;
  }

  .danger-section {
    border-color: rgba(239, 68, 68, 0.3);
  }

  .danger-content {
    padding: 1.5rem 0;
  }

  .danger-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem;
    margin-bottom: 1rem;
    background-color: var(--color-surface-elevated);
    border-radius: 0.75rem;
  }

  .danger-item:last-child {
    margin-bottom: 0;
  }

  .danger-info h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
  }

  .danger-info p {
    color: var(--color-text-muted);
    font-size: 0.875rem;
  }

  .btn-danger {
    padding: 0.75rem 1.5rem;
    background-color: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid #ef4444;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
  }

  .btn-danger:hover {
    background-color: #ef4444;
    color: white;
  }

  

  @media (max-width: 768px) {
    .profile-header-card {
      flex-direction: column;
      text-align: center;
    }

    .form-row {
      grid-template-columns: 1fr;
    }

    .stats-grid-profile {
      grid-template-columns: 1fr;
    }

    .danger-item {
      flex-direction: column;
      gap: 1rem;
      align-items: flex-start;
    }
  }
}

