.nav-bar { padding: 5px; background: #ffff; display: flex; justify-content: space-between; align-items: center; border-radius: 20px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); }

.logo { font-size: 24px; font-weight: bold; color: #333; margin: 0; }

.search { display: flex; align-items: center; gap: 10px; }

#search-input { padding: 10px; border: 2px solid #ddd; border-radius: 8px; font-size: 14px; outline: none; transition: border-color 0.3s ease; }

#search-input:focus { border-color: #007bff; }

/* Button Styles */
.btn { padding: 10px 20px; border: none; border-radius: 8px; font-size: 14px; font-weight: 500; cursor: pointer; transition: background-color 0.3s ease,transform 0.2s ease; }

.add-task { border-radius: 3px; background-color: #344767; color: #fff; }

.add-task:hover { background-color: rgb(165, 25, 27); transform: translateY(-1px); }

.add-deal { background-color: #344767; color: #fff; }

.add-deal:hover { background-color: rgb(165, 25, 27); transform: translateY(-1px); }

.task-scroll-container { max-height: 300px; /* Adjust this value as needed */ overflow-y: auto; border: 1px solid #e2e8f0; border-radius: 0.5rem; padding: 0.5rem; margin-top: 0.5rem; }

/* Optional: Custom scrollbar styling */
.task-scroll-container::-webkit-scrollbar { width: 8px; }

.task-scroll-container::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 4px; }

.task-scroll-container::-webkit-scrollbar-thumb { background: #cbd5e0; border-radius: 4px; }

.task-scroll-container::-webkit-scrollbar-thumb:hover { background: #a0aec0; }

/* Task card styling */
.task-card { display: flex; padding: 0.75rem; margin-bottom: 0.75rem; background: #fff; border-radius: 0.375rem; box-shadow: 0 1px 2px rgba(0,0,0,0.05); transition: all 0.2s ease; }

.task-card:last-child { margin-bottom: 0; }

.task-card img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; margin-right: 0.75rem; }

.task-info { flex: 1; }

.task-info h6 { margin: 0 0 0.25rem 0; font-size: 0.875rem; font-weight: 500; }

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

.task-info p { margin: 0; font-size: 0.8125rem; color: #4a5568; }

.task-status { align-self: flex-start; font-size: 0.75rem; padding: 0.25rem 0.5rem; border-radius: 0.25rem; background: #edf2f7; color: #2d3748; text-transform: capitalize; }

.no-tasks-message { padding: 1rem; text-align: center; color: #718096; font-size: 0.875rem; }

/* Hover Effects */
.btn:hover { opacity: 0.9; }

.close, .task-item-close, button { cursor: pointer; }

.d-flex { display: flex; }

 { }

% comment %  .d-flex button:hover { background: #14213d; color: #fff; }

 { }

% endcomment %  .search { display: flex; height: 40px; }

.search input { padding: 8px; border: 1px solid #eeee; }

.search button { border: 1px solid #eeee; padding: 6px; text-transform: capitalize; }

.container { margin-top: 30px; }

.board { display: flex; overflow-x: auto; }

.task-list { border: 1px solid #d9d9d9; width: 25%; flex: 0 0 300px; border-radius: 14px; height: 76vh; overflow: hidden; }

.list::-webkit-scrollbar { width: 5px; }

.list::-webkit-scrollbar-track { background: transparent; }

/* Handle */
.list::-webkit-scrollbar-thumb { background: #888; }

/* Handle on hover */
 { }

% comment %  .list::-webkit-scrollbar-thumb:hover { background: #555; }

 { }

% endcomment %  .btn-board { flex: 0 0 15%; }

.header { padding: 15px; display: flex; justify-content: space-between; align-items: center; position: -webkit-sticky; /* Safari */ }

.btn-board, .header { position: sticky; top: 0; /* z-index: 100; */ }

.header h4 { }

.list { list-style-type: none; padding: 0; max-height: 90%; min-height: 90%; overflow: auto; }

.task-close { margin-left: 5px; }

.task-item { margin: 18px 15px; background: #fff; padding: 10px; border-radius: 4px; box-shadow: 2px 2px 15px -10px #000; border-radius: 5/px; position: relative; text-transform: capitalize; }

.task-item p:click { cursor: grabbing; }

.task-item p { margin-bottom: 10px; font-size: 12px; line-height: 1.7em; cursor: grab; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; text-overflow: ellipsis; }

.task-item-close { position: absolute; top: 2px; right: 5px; margin: 5px; float: right; cursor: pointer; color: #999; font-size: 14px; }

.status { font-size: 12px; margin: 10px 0; font-style: italic; border-radius: 4px; padding: 3px 9px; }

.medium { background: #fca311; color: #fff; }

.low { background: #11bbfc; color: #fff; }

.high { background: #fc1111; color: #fff; }

.popup { background-color: rgba(0, 0, 0, 0.6); width: 100%; height: 100%; position: fixed; right: 0; left: 0; z-index: 1050; display: none; overflow: hidden; outline: 0; top: 0; bottom: 0; display: none; }

.popup-content { width: 451px; display: block; margin: 30px auto; background: #fff; border-radius: 8px; padding: 20px; }

.popup label { display: block; font-weight: 600; }

.popup input, .popup select, .popup textarea { border: 1px solid #eee; padding: 10px; margin: 9px 0 17px; width: 100%; display: block; box-sizing: border-box; }

.popup textarea { height: 100px; resize: none; }

.popup .footer { display: flex; justify-content: flex-end; }

.popup .footer button { padding: 8px 15px; margin: 5px; border: 0; border-radius: 3px; }

.popup button.primary { background: #14213d; color: #fff; }

.popup .heading { justify-content: space-between; margin-bottom: 20px; padding-bottom: 19px; border-bottom: 1px solid #eee; }

.user-avatar { border-radius: 50%; width: 30px; height: 30px; object-fit: cover; }

.default-avatar { border-radius: 50%; width: 30px; height: 30px; background-color: #ccc; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: bold; }

.board { display: flex; gap: 10px; padding: 10px; box-sizing: border-box; height: 76vh; }
.task-list { background-color: #f9f9f9; border-radius: 8px; flex: 1 0 300px; /* grow, shrink, min-width */ max-width: 100%; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); height: 72vh; }

.task-list .header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0px; }

.task-list .header h4 { margin-left: 20px; font-size: 18px; }

.task-item { background-color: #fff; border-radius: 8px; padding: 16px; margin: 5px 5px 9px 5px; box-shadow: 2px 2px 10px -3px #00000082; transition: transform 0.2s ease; }

.task-header { display: flex; align-items: center; gap: 0; border-bottom: 1px solid #dcdcdc; margin-bottom: 12px; }

.task-user-avatar { width: 30px; height: 30px; position: absolute; right: 20px; border-radius: 50%; overflow: hidden; align-items: center; justify-content: center; background-color: #ccc; }

.task-user-avatar:hover { transform: scale(2.0); }

.user-avatar { width: 100%; height: 100%; object-fit: cover; }

.default-avatar { font-size: 14px; font-weight: bold; color: #fff; }

.task-title { margin: 0; font-size: 12px; color: #333; }

/* Task Description */
.task-description { margin: 0 0 12px 0; font-size: 14px; color: #666; }

.task-utility { position: absolute; right: 20px; top: 0; }

.task-icons { display: inline-block; border-radius: 12px; cursor: pointer; margin-left: 5px; color: #c42024; font-size: 18px; font-weight: bold; text-transform: uppercase; }

.task-icons:hover { transform: scale(1.2); color: rgb(165, 25, 27); }

/* Status Badge */
.badge { display: inline-block; padding: 4px 8px; border-radius: 12px; font-size: 10px; font-weight: bold; text-transform: uppercase; }

.product-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }

.badge-red { background-color: #c42024; color: #fff; }

.badge-blue { background-color: #3498db; }

.badge-green { background-color: #2ecc71; }

.badge-to-do { background-color: #acb0b3d3; color: #333; }

.badge-qualification { background-color: #5ea4efc2; color: #333; }

.badge-decision-stage { background-color: #ffc107cd; color: #333; }

.badge-value-pro { background-color: #1fbfd8c3; color: #333; }

.badge-price { background-color: #fd7d14cc; color: #333; }

.badge-negotiations { background-color: #dc3546d7; color: #333; }

.badge-order-created { background-color: #a071ecd7; color: #333; }

.badge-order-dispatch { background-color: #7de495d7; color: #333; }

.badge-in-progress { background-color: #3291f7ce; color: #fff; }

.badge-completed { background-color: #30c853d5; }

/* Priority Indicator */
.status { display: inline-block; padding: 4px 8px; border-radius: 12px; font-size: 12px; font-weight: bold; text-transform: uppercase; margin-left: 8px; }

.status-low { background-color: #6c757d; color: #fff; }

.status-medium { background-color: #ffc107; color: #333; }

.status-high { background-color: #dc3545; color: #fff; }

/* Blurred Overlay */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.5); backdrop-filter: blur(5px); display: flex; justify-content: center; z-index: 999; align-items: center; opacity: 0; visibility: hidden; transition: opacity 0.3s ease,visibility 0.3s ease; }

.modal-overlay.visible { opacity: 1; visibility: visible; }

/* Modal Container */
.trello-modal { width: 900px; background-color: #fff; border-radius: 8px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); font-family: Arial,sans-serif; overflow: hidden; padding: 20px; margin: 20px auto; overflow-y: auto; max-height: 90vh; opacity: 0; transform: scale(0.9); transition: opacity 0.3s ease,transform 0.3s ease; }

.trello-modal.visible { opacity: 1; transform: scale(1); }

.deal-trello-modal { width: 900px; background-color: #fff; border-radius: 8px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); font-family: Arial,sans-serif; overflow: hidden; padding: 20px; margin: 20px auto; overflow-y: auto; max-height: 90vh; transform: scale(0.9); transition: opacity 0.3s ease,transform 0.3s ease; }

.deal-trello-modal.visible { transform: scale(1); }

/* Modal Header */
.modal-header { display: flex; justify-content: space-between; align-items: center; box-shadow: 0 -26px 11px 1px #fff; /* padding: 16px; */ border-bottom: 1px solid #e0e0e0; background-color: #f9fafc; }

.modal-title { margin: 0; font-size: 20px; color: #172b4d; }
.modal-deal-title { margin: 0; font-size: 20px; color: #172b4d; }
/* Modal Body */
.modal-body { display: flex; padding: 16px; }

/* Left Section (Task Details) */
.left-section { flex: 3; margin-right: 16px; }

.form-group { margin-bottom: 16px; }

.form-group label { display: block; font-size: 14px; color: #172b4d; margin-bottom: 4px; }

.form-input { width: 100%; padding: 8px; border: 1px solid #e0e0e0; border-radius: 4px; font-size: 14px; color: #5e6c84; background-color: #f4f5f7; transition: border-color 0.2s; }

.form-input:focus { border-color: #0079bf; outline: none; }

textarea.form-input { resize: vertical; }

/* Activity Section */
.activity-section { margin-top: 16px; }

.activity-item { display: flex; align-items: center; margin-bottom: 12px; padding: 8px; background-color: #f4f5f7; border-radius: 4px; }

.activity-icon { margin-right: 8px; font-size: 16px; }

.activity-user { font-weight: bold; color: #172b4d; }

.activity-action { color: #5e6c84; margin: 0 4px; }

.activity-time { color: #6b778c; font-size: 12px; }

.activity-comment { margin-top: 4px; color: #5e6c84; font-size: 14px; }

/* Right Section (Actions and Details) */
.right-section { flex: 2; padding-left: 16px; border-left: 1px solid #e0e0e0; }

.action-group { margin-bottom: 24px; }

.action-group h3 { font-size: 16px; color: #172b4d; margin-bottom: 8px; }

.action-list { list-style: none; padding: 0; margin: 0; }

.action-item { margin-bottom: 8px; }

.action-btn { width: 100%; padding: 8px; background-color: #f4f5f7; border: none; border-radius: 4px; font-size: 14px; color: #172b4d; cursor: pointer; margin: 5px; text-align: left; transition: background-color 0.2s; }

.action-btn:hover { background-color: #e0e0e0; }

.reminder-input { display: flex; gap: 8px; align-items: center; }

#save-reminder-btn { padding: 10px; }

/* Parent and Child Tasks */
.child-tasks-section, .parent-task-section { margin-top: 16px; }

.child-tasks-list, .parent-task-details { padding: 8px; background-color: #f4f5f7; border-radius: 4px; }

#add-child-btn { margin-top: 8px; }

/* Header Actions */
.header-actions { display: flex; gap: 8px; align-items: center; }

/* Parent and Child Tasks */
.child-tasks-section, .parent-task-section { margin-top: 16px; }

.child-tasks-list, .parent-task-details { padding: 8px; background-color: #f4f5f7; border-radius: 4px; }

.child-tasks-list .task-card, .parent-task-details .task-card { padding: 8px; margin-bottom: 8px; background-color: #fff; border-radius: 4px; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); }

.task-card { padding: 12px; margin-bottom: 12px; background-color: #fff; border-radius: 8px; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); display: grid; grid-template-columns: 40px 1fr auto; /* Profile picture, details, status */ gap: 12px; align-items: center; }

.task-card img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }

.task-card .task-info { display: flex; flex-direction: column; gap: 4px; }

.task-card h6 { margin: 0; font-size: 14px; color: #172b4d; }

.task-card p { margin: 0; font-size: 12px; color: #5e6c84; }

.task-card .task-status { font-size: 12px; padding: 4px 8px; border-radius: 4px; background-color: #f4f5f7; color: #5e6c84; text-align: center; }

.task-card .task-meta { display: flex; gap: 20px; font-size: 12px; color: #5e6c84; }

.task-card .task-meta span { display: flex; align-items: center; gap: 4px; }

#add-child-btn, #change-parent-btn { margin-top: 8px; width: 100%; }

.activity-log-item { padding: 7px; margin-bottom: 8px; background: #f8f9fa; border-radius: 8px; border-left: 3px solid #4e73df; }

.log-header { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }

.log-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }

.log-type { margin-left: auto; font-size: 12px; padding: 2px 8px; background: #e9ecef; border-radius: 4px; }

.log-content { padding-left: 40px; font-size: 14px; }

.log-location { font-size: 12px; color: #6c757d; margin-top: 4px; }
/* Ensure file inputs are visible */
.file-inputs-container { display: block; width: 100%; }
/* Style the files list */
.file-uploads-list { max-height: 150px; overflow-y: auto; background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 0.375rem; }
.file-item { transition: background-color 0.2s; }
.file-item:hover { background-color: #f3f4f6; }
/* Remove default file input styling */
input[type="file"]::-webkit-file-upload-button { visibility: hidden; }

.task-list { width: 300px; min-height: 100px; height: 70vh; display: flex; flex-direction: column; }

.list { flex-grow: 1; /* makes the list take up available space */ overflow-y: auto; /* enables scrolling */ padding-bottom: 10px; /* gives some space at the bottom */ }

/* Mobile-specific styles */
@media (max-width: 768px) {
  /* Modal adjustments */
  .trello-modal { width: 95%; max-height: 85vh; margin: 0; position: relative; }
  .modal-body { flex-direction: column; overflow-y: auto; }
  .right-section { border-left: none; border-top: 1px solid #eee; padding-bottom: 80px; /* Space for mobile close button */ }
  /* Task items */
  .task-item { touch-action: none; /* Important for drag on mobile */ padding: 12px; }
  /* Board columns */
  .task-list { min-width: 280px; margin-bottom: 20px; }
  /* Prevent body scrolling when modal is open */
  body.modal-open { overflow: hidden; position: fixed; width: 100%; height: 100%; }
  /* Drag item styling */
  .task-item.dragging { transform: scale(1.05); box-shadow: 0 5px 15px rgba(0,0,0,0.2); }
}
/* Very small screens */
@media (max-width: 480px) {
  .board { flex-direction: column; align-items: center; }
  .task-list { width: 100%; margin-right: 0; }
  .modal-header { flex-wrap: wrap; }
  .modal-title { font-size: 1.2rem; margin-bottom: 8px; }
  .header-actions { width: 100%; }
  .header-actions button { padding: 8px; font-size: 14px; }
}

/* Select2 Container - Single Select */
.select2-container--default .select2-selection--single { min-height: 36px; padding: 4px 8px; border: 1px solid #d1d5db; border-radius: 6px; background-color: #fff; transition: all 0.2s; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); }

/* Dark mode adjustments */
.dark .select2-container--default .select2-selection--single { background-color: #1e293b; border-color: #4b5563; color: #fff; }

/* Dropdown styling */
.select2-dropdown { border: 1px solid #d1d5db; border-radius: 6px; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); }

.select2-container--default.select2-container--focus .select2-selection--single { border-color: #3b82f6; box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2); }

.select2-container--default .select2-selection--single .select2-selection__arrow { height: 34px; }
.status-update-icon { position: absolute; top: 6px; right: 85px; cursor: pointer; font-size: 16px; color: #344767; background: rgba(255, 255, 255, 0.8); border-radius: 50%; padding: 5px; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 4px rgba(0,0,0,0.1); transition: all 0.2s ease; z-index: 5; }
.status-update-icon:hover { background: #fff; transform: scale(1.1); box-shadow: 0 4px 8px rgba(0,0,0,0.15); }
.status-update-popup { display: none; position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); background: #fff; padding: 20px; border-radius: 8px; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15); z-index: 10000; width: 350px; }
.status-update-popup h4 { margin-top: 0; margin-bottom: 15px; color: #344767; border-bottom: 1px solid #eee; padding-bottom: 10px; }
.status-update-popup .form-group { margin-bottom: 15px; }
.status-update-popup .form-group label { display: block; margin-bottom: 5px; font-weight: 500; color: #344767; }
.status-update-popup .form-group select, .status-update-popup .form-group textarea { width: 100%; padding: 8px; border: 1px solid #ddd; border-radius: 4px; font-family: inherit; }
.status-update-popup .button-group { display: flex; justify-content: flex-end; gap: 10px; margin-top: 15px; }
.status-update-popup .button-group button { padding: 8px 16px; border: none; border-radius: 4px; cursor: pointer; font-weight: 500; }
.status-update-popup .button-group .save-btn { background-color: #344767; color: #fff; }
.status-update-popup .button-group .cancel-btn { background-color: #e9ecef; color: #344767; }
.status-update-overlay { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.5); z-index: 9999; }
