@import url("https://code.highcharts.com/dashboards/css/dashboards.css");


.container-fluid {
  padding: 0px 10px;
}

.breadcrumb-item+.breadcrumb-item::before {
  color: grey;
}

.breadcrumb-item+.active {
  color: grey;
}

.col_max {
  min-width: 300px;
  width: 350px;
  max-width: 400px;
  white-space: normal;
  overflow: visible;
  word-wrap: break-word;
  word-break: break-word;
}


.col_max_note {
  min-width: 500px;
  width: 550px;
  max-width: 700px;
  white-space: normal;
  overflow: visible;
  word-wrap: break-word;
  word-break: break-word;
}

.col_max_review_note {
  min-width: 550px;
  width: 650px;
  max-width: 850px;
  white-space: normal;
  overflow: visible;
  word-wrap: break-word;
  word-break: break-word;
}

.col_max_note_type {
  min-width: 150px;
  width: 200px;
  max-width: 225px;
  white-space: normal;
  overflow: visible;
  word-wrap: break-word;
  word-break: break-word;
}

.m_friend_chart {
  width: 100%;
  height: 500px;
}

.hidden_tin {
  display: none;
}

.ql-table-better {
  width: 100%;
  /* Make the table take the full width of its container */
  border-collapse: collapse;
  /* Merge adjacent borders for clean lines */
  table-layout: fixed;
  /* Ensures even spacing of columns */
}

.ql-table-better td,
.ql-table-better th {
  border: 1px solid #ccc;
  /* Grey border for cells */
  padding: 2px;
  /* Add spacing inside cells */
  text-align: left;
  /* Center-align cell content */
  word-wrap: break-word;
  /* Ensure content breaks within cells */
}

.ql-table-better th {
  background-color: #f5f5f5;
  /* Optional: Light grey background for header cells */
  font-weight: bold;
  /* Make header text bold */
}

.tag {
  color: black;
  background-color: #D6AC48;
  padding: 3px 8px 3px 8px;
  border-radius: 25px;
}

.tag-close {
  cursor: pointer;
  margin-left: 5px;
}

.step-desc-row:hover {
  cursor: pointer;
}

@media screen and (max-width: 768px) {
  .container-fluid {
    padding: 0px 0px;
  }

  .dynamic_text {
    font-size: 80%;
  }

  .m_friend_chart {
    width: 100%;
    height: 400px;
  }
}

.table {
  width: 100%;
  overflow-x: auto;
}

.table thead th {
  position: sticky;
  top: 55px;
  z-index: 3;
  box-shadow: 0 2px 2px -1px rgba(0, 0, 0, 0.1);
  border-bottom: 2px solid grey;

}

.ql-snow {
  background-color: white;
  color: black;
}

.table {
  overflow-y: auto;
  /* Enable table body scrolling */
}

.row_dark_1 {
  background-color: #2C3034;
  margin-top: 5px;
  margin-left: 1px;
  margin-right: 1px;
  border: grey 1px solid;
  /* height: 100%; */
  color: white;

}

.row_dark_2 {
  background-color: #22252A;
  color: white;
  margin-top: 5px;
  margin-left: 1px;
  margin-right: 1px;

  border: grey 1px solid;

  /* height: 100%; */
}

.row_light_1 {
  background-color: #ECEDEF;
  color: black;
  margin-top: 5px;
  margin-left: 1px;
  margin-right: 1px;
  border: grey 1px solid;

  /* height: 100%; */
}

.row_light_2 {
  background-color: #ffffff;
  color: black;
  margin-top: 5px;
  margin-left: 1px;
  margin-right: 1px;
  border: grey 1px solid;
  /* height: 100%; */
}

.bordered {
  border: grey 1px solid;
}

ol>li[data-list="bullet"]:not(.ql-editor *) {
  list-style-type: disc;
  /* Change this item to appear like an unordered list (bullet) */
  margin-left: 20px;
  /* Add some left margin to align the bullet point */
}

th.sortable {
  cursor: pointer;
  position: relative;
  padding-right: 20px;
}

th.sortable::after {
  content: '';
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.8em;
}

th.sortable.asc::after {
  content: '▲';
}

th.sortable.desc::after {
  content: '▼';
}

.sortable_table th:hover {
  cursor: pointer;
}

.workflow-step {
  transition: all 0.3s ease;
  cursor: move;
}

.workflow-step:hover {
  transform: translateX(5px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.sortable-ghost {
  opacity: 0.4;
}

.sortable-chosen {
  cursor: grab;
  transform: scale(1.05);
}

.sortable-chosen:hover {
  cursor: grab;
  transform: scale(1.05);
}

.step-handle {
  cursor: grab;
  color: #6c757d;
}

.step-handle:hover {
  color: #495057;
}

/* ========== EDITABLE FIELDS SYSTEM ========== */
/* Reusable inline editing system for modernized forms */

.editable {
  cursor: pointer;
  transition: background-color 0.2s;
  display: inline-block;
  width: 100%;
  padding: 8px 12px;
  border-radius: 4px;
  min-height: 20px;
}

.editable:hover {
  background-color: #f5e979 !important;
  /* Light gold */
  color: #000 !important;
  /* Black text */
  border: 1px solid #e6d664;
}

.editable.editing {
  background-color: white;
  border: 1px solid #007bff;
}

.editing {
  width: 100%;
  border: 1px solid #007bff;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* ========== MODEL HOLDING TABLE SPECIFIC OVERRIDES ========== */
/* Override global editable styling for model holding table to enable horizontal layout */

#holdings-table-container .editable {
  display: inline-block !important;
  width: 100% !important;
  padding: 6px 8px;
  box-sizing: border-box;
  vertical-align: top;
}

#holdings-table-container .table {
  table-layout: fixed !important;
  border-collapse: separate !important;
}

#holdings-table-container .table td {
  vertical-align: middle;
  padding: 4px !important;
  position: relative;
}

#holdings-table-container .table th:first-child,
#holdings-table-container .table td:first-child {
  width: 40% !important;
}

#holdings-table-container .table th:nth-child(2),
#holdings-table-container .table td:nth-child(2) {
  width: 40% !important;
}

#holdings-table-container .table th:nth-child(3),
#holdings-table-container .table td:nth-child(3) {
  width: 20% !important;
  text-align: center;
}

/* Step-specific editable styling */
#steps-list .editable {
  cursor: pointer;
  transition: background-color 0.2s;
  padding: 8px 12px;
  border-radius: 4px;
  display: block;
  width: 100%;
  min-height: 20px;
}

#steps-list .editable:hover {
  background-color: #f5e979 !important;
  /* Light gold */
  color: #000 !important;
  /* Black text */
  border: 1px solid #e6d664;
}

/* Order badge styling for drag and drop */
.step-order-badge {
  font-size: 0.875rem;
  min-width: 30px;
  cursor: grab;
}

.step-order-badge:active {
  cursor: grabbing;
}

/* ========== MODEL HOLDINGS CARD SYSTEM ========== */
/* Modern card-based layout for model holdings with light/dark theme support */

.holding-card {
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: all 0.3s ease;
  margin-bottom: 1.5rem;
}

.holding-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.holding-header {
  border-bottom: 1px solid;
  padding: 1.5rem;
}

.holding-symbol {
  margin-bottom: 0;
  font-weight: 600;
}

.holding-symbol a {
  text-decoration: none;
  font-weight: 600;
}

.holding-symbol a:hover {
  text-decoration: underline;
}

.holding-description {
  font-size: 0.9rem;
  margin-top: 4px;
  margin-bottom: 0;
}

.weight-badge {
  text-align: center;
  padding: 12px 20px;
  border-radius: 10px;
  display: inline-block;
  min-width: 120px;
}

.weight-value {
  font-size: 1.6rem;
  font-weight: 700;
  display: block;
  line-height: 1.2;
}

.weight-label {
  font-size: 0.8rem;
  display: block;
  margin-top: 4px;
  opacity: 0.9;
}

.holding-body {
  padding: 1.5rem;
}
.text_warning {
  color: #ff9800 !important;
}
.column-header h6 {
  border-bottom: 2px solid;
  padding-bottom: 8px;
  font-weight: 600;
  margin-bottom: 1rem;
}

.detail-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 8px 0;
  border-bottom: 1px solid;
}

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

.detail-item label {
  font-weight: 600;
  flex: 1;
  margin-right: 12px;
  font-size: 0.9rem;
}

.detail-item span {
  flex: 1;
  text-align: right;
  font-size: 0.9rem;
}

.detail-item small {
  font-size: 0.75rem;
  text-align: right;
  margin-top: 2px;
}

.detail-item-end {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 8px 0;
  border-bottom: none !important;
}

.detail-item-end label {
  font-weight: 600;
  flex: 1;
  margin-right: 12px;
  font-size: 0.9rem;
}

.detail-item-end span {
  flex: 1;
  text-align: right;
  font-size: 0.9rem;
}

.detail-item-end small {
  font-size: 0.75rem;
  text-align: right;
  margin-top: 2px;
}

.star-rating .fa-star {
  font-size: 0.9rem;
  margin-right: 1px;
}

.sustainability-rating .fa-globe {
  font-size: 0.9rem;
  margin-right: 1px;
}

.risk-badge {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  display: inline-block;
}

.risk-low { 
  background: #d4edda; 
  color: #155724; 
}

.risk-moderate { 
  background: #ffd51c; 
  color: #000000; 
}

.risk-high { 
  background: #f8d7da; 
  color: #721c24; 
}

.performance-section {
  border-top: 2px solid;
  padding-top: 1rem;
  margin-top: 1rem;
}

.performance-header {
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.performance-date {
  display: block;
  margin-bottom: 1rem;
  font-size: 0.75rem;
  font-weight: normal;
  color: inherit;
  opacity: 0.8;
}

.return-value {
  font-weight: 600;
}

.tradingview-widget-container {
  border-radius: 8px;
  overflow: hidden;
  background: transparent;
}

.esg-score {
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 4px;
  display: inline-block;
  font-size: 0.8rem;
}

.expense-highlight {
  font-weight: 600;
  color: #dc3545;
}

.yield-highlight {
  font-weight: 600;
  color: #28a745;
}

/* Light Mode Styling */
.light-mode .holding-card {
  background: #ffffff;
  border: 1px solid #dee2e6;
}

.light-mode .holding-header {
  background: #f8f9fa;
  border-bottom-color: #dee2e6;
}

.light-mode .holding-symbol a {
  color: #0066cc;
}

.light-mode .holding-description {
  color: #6c757d;
}

.light-mode .weight-badge {
  background: #0066cc;
  color: white;
}

.light-mode .column-header h6 {
  color: #333;
  border-bottom-color: #0066cc;
}

.light-mode .detail-item {
  border-bottom-color: #f0f0f0;
}

.light-mode .detail-item label {
  color: #333;
}


.light-mode .performance-section {
  border-top-color: #dee2e6;
}

.light-mode .performance-header {
  color: #333;
}

.light-mode .esg-score {
  background: #e9ecef;
  color: #495057;
}

/* Dark Mode Styling */
.dark-mode .holding-card {
  background: #2d3748;
  border: 1px solid #4a5568;
}

.dark-mode .holding-header {
  background: #1a202c;
  border-bottom-color: #4a5568;
}

.dark-mode .holding-symbol a {
  color: #ffd700;
}

.dark-mode .holding-description {
  color: #a0aec0;
}

.dark-mode .weight-badge {
  background: #ffd700;
  color: #1a202c;
}

.dark-mode .column-header h6 {
  color: #e2e8f0;
  border-bottom-color: #ffd700;
}

.dark-mode .detail-item {
  border-bottom-color: #4a5568;
}

.dark-mode .detail-item label {
  color: #e2e8f0;
}

.dark-mode .detail-item span {
  color: #cbd5e0;
}

.dark-mode .performance-section {
  border-top-color: #4a5568;
}

.dark-mode .performance-header {
  color: #e2e8f0;
}

.dark-mode .esg-score {
  background: #4a5568;
  color: #e2e8f0;
}

/* Adjusted risk-badge colors for dark mode */
.dark-mode .risk-low {
  background: #2d6a4f; /* Dark green */
  color: #d4edda;
}

.dark-mode .risk-moderate {
  background: #ffd51c; /* Muted orange */
  color: #000000;
}

.dark-mode .risk-high {
  background: #8b0000; /* Dark red */
  color: #f8d7da;
}



/* Responsive adjustments */
@media (max-width: 991px) {
  .holding-body .col-12 {
    margin-bottom: 2rem;
  }
  
  .holding-body .col-12:last-child {
    margin-bottom: 0;
  }
  
  .weight-badge {
    margin-top: 1rem;
  }
}

/* Large screen text sizing improvements */
@media (min-width: 992px) {
  .detail-item label {
    font-size: 0.95rem;
  }
  
  .detail-item span {
    font-size: 0.95rem;
  }
  
  .detail-item-end label {
    font-size: 0.95rem;
  }
  
  .detail-item-end span {
    font-size: 0.95rem;
  }
  
  .performance-header {
    font-size: 1rem;
  }
  
  .performance-date {
    font-size: 0.8rem;
  }
  
  .column-header h6 {
    font-size: 1.1rem;
  }
}

/* Holdings collapse functionality */
.holding-body.collapsed {
  display: none !important;
}

.holding-card.collapsed .holding-body {
  display: none !important;
}

/* Step completion styling */
.step-completed {
  text-decoration: line-through;
  opacity: 0.7;
}

.step-row {
  transition: opacity 0.2s;
}

.step-row.dragging {
  opacity: 0.5;
}

/* Dashboard Styling */
/* ================ */
/* Custom Dashboard Card Styling */
.dashboard-card {
  border: none;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  margin-bottom: 1rem;
}

.dashboard-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.dashboard-card .card-header {
  border-radius: 12px 12px 0 0;
  border: none;
  padding: 1rem 1.25rem;
  font-weight: 600;
}

.dashboard-card .card-body {
  border-radius: 0 0 12px 12px;
  padding: 1.25rem;
}

/* Enhanced Priority Card */
.priority-card {
  background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
  border-left: 5px solid #ffc107;
}

.priority-card .card-header {
  background: linear-gradient(135deg, #ffc107 0%, #ffb400 100%);
  color: #212529;
}

/* Revenue Card */
.revenue-card .card-header {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

/* Notes Card */
.notes-card .card-header {
  background: linear-gradient(135deg, #17a2b8 0%, #007bff 100%);
}

/* Asset Movement Card */
.asset-movement-card .card-header {
  background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%);
  color: #212529;
}

/* Birthday Card */
.birthday-card .card-header {
  background: linear-gradient(135deg, #007bff 0%, #6f42c1 100%);
}

/* Dark Mode Card Styling */
.dark-mode .dashboard-card {
  background-color: #2d3748;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  color: #e2e8f0;
}

.dark-mode .dashboard-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  background-color: #374151;
}

.dark-mode .dashboard-card .card-body {
  background-color: #2d3748;
  color: #e2e8f0;
}

/* Dark Mode Priority Card */
.dark-mode .priority-card {
  background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
  border-left: 5px solid #f6ad55;
}

.dark-mode .priority-card .card-header {
  background: linear-gradient(135deg, #ed8936 0%, #f6ad55 100%);
  color: #1a202c;
}

/* Dark Mode Revenue Card */
.dark-mode .revenue-card .card-header {
  background: linear-gradient(135deg, #38a169 0%, #48bb78 100%);
  color: #f7fafc;
}

/* Dark Mode Notes Card */
.dark-mode .notes-card .card-header {
  background: linear-gradient(135deg, #3182ce 0%, #4299e1 100%);
  color: #f7fafc;
}

/* Dark Mode Asset Movement Card */
.dark-mode .asset-movement-card .card-header {
  background: linear-gradient(135deg, #ed8936 0%, #f6ad55 100%);
  color: #1a202c;
}

/* Dark Mode Birthday Card */
.dark-mode .birthday-card .card-header {
  background: linear-gradient(135deg, #3182ce 0%, #805ad5 100%);
  color: #f7fafc;
}

/* Sticky Table Headers */
.sticky-header thead th {
  position: sticky;
  top: 0;
  z-index: 10;
  background-color: var(--bs-dark);
  color: white;
}

.sticky-header-light thead th {
  position: sticky;
  top: 0;
  z-index: 10;
  background-color: var(--bs-light);
  color: var(--bs-dark);
}

/* Dark Mode Table Headers */
.dark-mode .sticky-header-light thead th {
  background-color: #4a5568;
  color: #e2e8f0;
  border-color: #2d3748;
}

.dark-mode .sticky-header thead th {
  background-color: #1a202c;
  color: #e2e8f0;
  border-color: #2d3748;
}

/* Scrollable Table Container */
.table-scroll-container {
  max-height: 400px;
  overflow-y: auto;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.125);
}

.dark-mode .table-scroll-container {
  border: 1px solid #4a5568;
  background-color: #2d3748;
}

.table-scroll-container-sm {
  max-height: 300px;
}

.table-scroll-container-xs {
  max-height: 200px;
}

.table-scroll-container-lg {
  max-height: 500px;
}

/* Dashboard Layout Improvements */
.dashboard-card {
  min-height: 120px; /* Minimum height for all cards */
}

.dashboard-card .card-body {
  flex: 1;
}

/* Ensure consistent widths */
.row[class*="mb-"] {
  align-items: flex-start;
}

/* Prevent layout shifting on card expansion */
.collapse {
  transition: height 0.35s ease;
}

.collapsible-card {
  position: relative;
  overflow: hidden;
}

/* Enhanced Table Styling */
.enhanced-table {
  margin-bottom: 0;
}

.enhanced-table tbody tr:hover {
  background-color: rgba(0, 123, 255, 0.05);
}

.dark-mode .enhanced-table tbody tr:hover {
  background-color: rgba(99, 179, 237, 0.1);
}

.dark-mode .enhanced-table {
  color: #e2e8f0;
}

/* Collapsible Card Enhancement */
.collapsible-card .card-header {
  cursor: pointer;
  user-select: none;
}

.collapsible-card .card-header:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.dark-mode .collapsible-card .card-header:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.collapse-icon {
  transition: transform 0.3s ease;
}

.collapse-icon.collapsed {
  transform: rotate(-90deg);
}

/* Badge Enhancements */
.badge-count {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: 10px;
}

.dark-mode .badge-count {
  background-color: #1a202c !important;
  color: #e2e8f0 !important;
}

/* Search Input Styling */
.search-input {
  border-radius: 8px;
  border: 1px solid #dee2e6;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.search-input:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.dark-mode .search-input {
  background-color: #4a5568;
  border-color: #2d3748;
  color: #e2e8f0;
}

.dark-mode .search-input:focus {
  background-color: #4a5568;
  border-color: #63b3ed;
  color: #e2e8f0;
  box-shadow: 0 0 0 0.2rem rgba(99, 179, 237, 0.25);
}

.dark-mode .search-input::placeholder {
  color: #a0aec0;
}

/* Compact Card Body */
.compact-card-body {
  padding: 1rem;
}

.dark-mode .compact-card-body {
  background-color: #2d3748;
  color: #e2e8f0;
}

/* Top Client Rankings */
.rank-gold { color: #ffd700; }
.rank-silver { color: #c0c0c0; }
.rank-bronze { color: #cd7f32; }

/* Dark Mode Text and Badge Adjustments */
.dark-mode .text-muted {
  color: #a0aec0 !important;
}

.dark-mode .badge.bg-secondary {
  background-color: #4a5568 !important;
  color: #e2e8f0 !important;
}

.dark-mode .badge.bg-primary {
  background-color: #3182ce !important;
  color: #f7fafc !important;
}

.dark-mode .badge.bg-light {
  background-color: #4a5568 !important;
  color: #e2e8f0 !important;
}

.dark-mode .text-success {
  color: #68d391 !important;
}

/* Dark Mode Alert Styling */
.dark-mode .alert-success {
  background-color: #2f855a;
  border-color: #38a169;
  color: #f7fafc;
}

/* Dark Mode Input Group */
.dark-mode .input-group-text {
  background-color: #4a5568;
  border-color: #2d3748;
  color: #e2e8f0;
}

/* Dark Mode Button Styling */
.dark-mode .btn-outline-primary {
  color: #63b3ed;
  border-color: #63b3ed;
}

.dark-mode .btn-outline-primary:hover {
  background-color: #63b3ed;
  border-color: #63b3ed;
  color: #1a202c;
}

.dark-mode .btn-outline-success {
  color: #68d391;
  border-color: #68d391;
}

.dark-mode .btn-outline-success:hover {
  background-color: #68d391;
  border-color: #68d391;
  color: #1a202c;
}

/* Dark Mode Table Styling */
.dark-mode .table {
  color: #e2e8f0;
  --bs-table-bg: #2d3748;
}

.dark-mode .table tbody tr {
  border-color: #4a5568;
  background-color: #2d3748;
}

.dark-mode .table tbody tr:hover {
  background-color: #374151 !important;
}

.dark-mode .table thead th {
  background-color: #1a202c;
  border-color: #4a5568;
  color: #e2e8f0;
}

.dark-mode .table-dark {
  --bs-table-bg: #1a202c;
  --bs-table-striped-bg: #2d3748;
  --bs-table-hover-bg: #374151;
  --bs-table-border-color: #4a5568;
  color: #e2e8f0;
}

.dark-mode .table-dark > :not(caption) > * > * {
  background-color: var(--bs-table-bg);
  border-bottom-color: var(--bs-table-border-color);
  color: #e2e8f0;
}

.dark-mode .table-light {
  --bs-table-bg: #4a5568;
  --bs-table-striped-bg: #374151;
  --bs-table-hover-bg: #2d3748;
  --bs-table-border-color: #2d3748;
  color: #e2e8f0;
}

.dark-mode .table-light > :not(caption) > * > * {
  background-color: var(--bs-table-bg);
  border-bottom-color: var(--bs-table-border-color);
  color: #e2e8f0;
}

.dark-mode .border-bottom {
  border-color: #4a5568 !important;
}

/* Dark Mode Form Controls */
.dark-mode .form-check-input {
  background-color: #4a5568;
  border-color: #2d3748;
}

.dark-mode .form-check-input:checked {
  background-color: #3182ce;
  border-color: #3182ce;
}

.dark-mode .form-check-input:focus {
  border-color: #63b3ed;
  box-shadow: 0 0 0 0.25rem rgba(99, 179, 237, 0.25);
}

.dark-mode .form-check-label {
  color: #e2e8f0;
}

/* Dark Mode Container Styling */
.dark-mode .container-fluid {
  background-color: #1a202c;
  color: #e2e8f0;
}

/* Dark Mode Modal Fixes */
.dark-mode .modal-content {
  background-color: #2d3748;
  color: #e2e8f0;
  border: 1px solid #4a5568;
}

.dark-mode .modal-header {
  border-bottom: 1px solid #4a5568;
}

.dark-mode .modal-footer {
  border-top: 1px solid #4a5568;
}

/* Task List - Task Name Column Minimum Width Constraints */
#pending_task_table td:nth-child(2), 
#pending_task_table th:nth-child(2),
#completed_task_table td:nth-child(2), 
#completed_task_table th:nth-child(2) {
  min-width: 25vw; /* Minimum 1/4 of screen width */
}

/* On medium screens and larger, ensure minimum 250px */
@media (min-width: 768px) {
  #pending_task_table td:nth-child(2), 
  #pending_task_table th:nth-child(2),
  #completed_task_table td:nth-child(2), 
  #completed_task_table th:nth-child(2) {
    min-width: max(250px, 25vw);
  }
}

/* Prevent table from becoming too wide on large screens */
@media (min-width: 1400px) {
  #pending_task_table td:nth-child(2), 
  #pending_task_table th:nth-child(2),
  #completed_task_table td:nth-child(2), 
  #completed_task_table th:nth-child(2) {
    min-width: 350px; /* Cap at reasonable size */
  }
}