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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f5f7fa;
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.kanban-container {
    width: 100%;
    max-width: none;
    margin: 0 auto;
    padding: 20px;
    flex: 1;
}

.version-footer {
    text-align: center;
    padding: 10px 0;
    color: #666;
    font-size: 12px;
    margin-top: auto;
}



header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.search-container {
    position: relative;
    margin-right: 10px;
}

.search-input {
    padding: 8px 30px 8px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 250px;
    font-size: 14px;
}

.search-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    pointer-events: none;
}

.search-info {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    z-index: 1000;
    font-size: 14px;
    color: #555;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.btn-board-switch {
    background: #4a90e2;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.2s;
    margin-left: 5px;
}

.btn-board-switch:hover {
    background: #357abd;
}

.search-container {
    position: relative;
    margin-right: 10px;
}

.search-highlight {
    background-color: #fff3cd;
    padding: 0 2px;
    border-radius: 2px;
    font-weight: bold;
}

/* Search Modal */
.search-modal {
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}

.search-modal h2 {
    margin-top: 0;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.search-results {
    overflow-y: auto;
    flex: 1;
}

.search-board-header {
    font-weight: bold;
    margin: 15px 0 8px 0;
    color: #555;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.search-result-item {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background-color 0.2s;
}

.search-result-item:hover {
    background-color: #f8f9fa;
}

.search-item-title {
    font-weight: 500;
    margin-bottom: 4px;
    color: #333;
}

.search-item-desc {
    color: #666;
    font-size: 0.9em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.no-results {
    color: #666;
    text-align: center;
    padding: 20px;
    font-style: italic;
}

.highlight-item {
    animation: highlight-fade 2s ease-out;
    box-shadow: 0 0 0 2px #4a90e2;
}

@keyframes highlight-fade {
    0% { box-shadow: 0 0 0 4px rgba(74, 144, 226, 0.7); }
    100% { box-shadow: 0 0 0 4px rgba(74, 144, 226, 0); }
}

.close-search {
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 24px;
    font-weight: bold;
    color: #666;
    cursor: pointer;
    line-height: 1;
}

.close-search:hover {
    color: #333;
}

/* Dropdown styles */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #fff;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 4px;
    right: 0;
}

.dropdown-content a {
    color: #333;
    padding: 8px 16px;
    text-decoration: none;
    display: block;
    font-size: 14px;
}

.dropdown-content a:hover {
    background-color: #f5f5f5;
}

.dropdown-content label {
    display: block;
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
}

.dropdown-content label:hover {
    background-color: #f5f5f5;
}

.dropdown-content input[type="checkbox"] {
    margin-right: 8px;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-divider {
    height: 1px;
    background-color: #e9ecef;
    margin: 4px 0;
}

.text-danger {
    color: #dc3545;
}

/* Board Selector Styles */
.board-selector {
    position: relative;
    display: inline-block;
    min-width: 200px;
    height: 40px; /* Ensure consistent height */
    display: flex;
    align-items: center;
}

/* Board title styles */
#board-title {
    font-size: 2rem;
    font-weight: bold;
    color: #2c3e50;
    cursor: pointer;
    margin: 0;
    padding: 0;
    line-height: 1.2;
    transition: color 0.2s ease;
}

#board-title:hover {
    color: #3498db;
}

.editable-title {
    font-size: 2rem !important;
    font-weight: bold !important;
    color: #2c3e50 !important;
    cursor: pointer;
    margin: 0;
    padding: 0;
    line-height: 1.2;
}

.board-selector-dropdown {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.board-selector-dropdown:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.dropdown-arrow {
    margin-left: 8px;
    font-size: 12px;
    color: #666;
}

.board-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    min-width: 250px;
    z-index: 1000;
    margin-top: 5px;
    overflow: hidden;
}

/* Show dropdown when hovering over the selector or the dropdown itself */
.board-selector:hover .board-dropdown-menu,
.board-dropdown-menu:hover {
    display: block;
    /* Add a small delay before hiding when mouse leaves */
    transition: opacity 0.2s ease-out, visibility 0.2s ease-out;
}

/* Add a gap between the selector and dropdown to make it easier to move between them */
.board-selector::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 10px;
    bottom: -5px;
    background: transparent;
}

/* Keep dropdown visible when hovering over it */
.board-dropdown-menu:hover {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Board list styles */
.board-list {
    max-height: 400px;
    overflow-y: auto;
    margin: 10px 0;
    padding: 0;
    list-style: none;
}

.board-item {
    padding: 8px 15px;
    margin: 2px 0;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    display: flex;
    align-items: center;
    position: relative;
}

.board-item:hover {
    background-color: #f5f7fa;
}

.board-item.active {
    background-color: #e3f2fd;
    color: #1976d2;
    font-weight: 500;
}

.board-actions {
    border-top: 1px solid #eee;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.btn-text {
    background: none;
    border: none;
    color: #3498db;
    padding: 8px 12px;
    text-align: left;
    cursor: pointer;
    border-radius: 4px;
    font-size: 14px;
    transition: background-color 0.2s;
}

.btn-text:hover {
    background-color: #f0f7ff;
}

.btn-text.btn-danger {
    color: #e74c3c;
    background: none;
    text-align: left;
    padding: 8px 12px;
    margin: 0;
}

.btn-text.btn-danger:hover {
    background-color: #fde8e6;
}

.btn-text.btn-danger:disabled {
    color: #ccc;
    cursor: not-allowed;
    background: none;
}

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

/* Dropdown styles */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 180px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 4px;
    overflow: hidden;
}

.dropdown-content a {
    color: #333;
    padding: 8px 16px;
    text-decoration: none;
    display: block;
    font-size: 14px;
    transition: background-color 0.2s;
}

.dropdown-content a:hover {
    background-color: #f5f5f5;
}

.dropdown-content .text-danger {
    color: #e74c3c;
}

.dropdown-content .text-danger:hover {
    background-color: #fde8e6;
}

.dropdown-divider {
    height: 1px;
    margin: 4px 0;
    background-color: #e0e0e0;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown:hover .btn-danger {
    background-color: #c0392b;
}

/* Duplicate button */
#duplicate-board-btn {
    background-color: #95a5a6;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
}

#duplicate-board-btn:hover {
    background-color: #7f8c8d;
}

h1 {
    color: #2c3e50;
    font-size: 2rem;
}

.editable-title {
    cursor: pointer;
    transition: color 0.2s;
}

.editable-title:hover {
    color: #3498db;
}

.title-input {
    font-family: inherit;
    text-align: center;
}

.btn-primary {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
}

.btn-primary:hover {
    background-color: #2980b9;
}

.btn-secondary {
    background-color: #95a5a6;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
}

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

.btn-danger {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
}

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

.kanban-board {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 10px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.column {
    background-color: #ecf0f1;
    border-radius: 8px;
    padding: 15px;
    min-height: 500px;
    flex: 1;
    min-width: 280px;
    max-width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.column-hidden {
    min-width: 40px !important;
    max-width: 40px !important;
    flex: 0 0 40px !important;
    padding: 10px 5px;
    cursor: pointer;
    overflow: hidden;
    background-color: #d5dbdb;
}

.column-hidden .column-header {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0;
}

.column-hidden .column-actions {
    opacity: 1;
    margin-top: 10px;
}

.column-title-vertical {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    white-space: nowrap;
    font-weight: 600;
    color: #2c3e50;
    font-size: 1rem;
    text-align: center;
    margin: 10px 0;
    cursor: pointer;
}

.column-hidden .column-action-btn {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 2px 0;
}

.column-hidden .column-action-btn:hover {
    background: rgba(255, 255, 255, 0.4);
}

.column-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

/* Keep title + handle grouped */
.column-title-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.column-drag-handle {
    cursor: move;
    color: #7f8c8d;
    user-select: none;
    padding: 2px 4px;
    border-radius: 3px;
}

.column-drag-handle:hover {
    background-color: #bdc3c7;
    color: #2c3e50;
}

.column.dragging-column {
    opacity: 0.8;
}

.column-actions {
    display: flex;
    gap: 5px;
    opacity: 0;
    transition: opacity 0.2s;
}

.column:hover .column-actions {
    opacity: 1;
}

.column-action-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 3px;
    color: #7f8c8d;
    font-size: 14px;
}

.column-action-btn:hover {
    background-color: #bdc3c7;
    color: #2c3e50;
}

.column h2 {
    text-align: center;
    margin-bottom: 15px;
    color: #2c3e50;
    font-size: 1.2rem;
}

.items-container {
    min-height: 400px;
    width: 100%;
    overflow-y: auto;
}

.kanban-item {
    background-color: white;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    cursor: move;
    transition: transform 0.2s, box-shadow 0.2s;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.kanban-item[data-item-status] {
    border-left: 5px solid transparent;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.kanban-item[data-item-status="not-started"] {
    background-color: #f7f8f9;
    border-color: #95a5a6;
}

.kanban-item[data-item-status="research"] {
    background-color: #e8f9f5;
    border-color: #1abc9c;
}

.kanban-item[data-item-status="refinement"] {
    background-color: #f4e9fb;
    border-color: #9b59b6;
}

.kanban-item[data-item-status="ready"] {
    background-color: #fef7d9;
    border-color: #f1c40f;
}

.kanban-item[data-item-status="in-progress"] {
    background-color: #e6f2fc;
    border-color: #3498db;
}

.kanban-item[data-item-status="testing"] {
    background-color: #fde9d9;
    border-color: #e67e22;
}

.kanban-item[data-item-status="blocked"] {
    background-color: #fde4e1;
    border-color: #e74c3c;
}

.kanban-item[data-item-status="on-hold"] {
    background-color: #e6eaef;
    border-color: #34495e;
}

.kanban-item[data-item-status="removed"] {
    background-color: #f0f3f3;
    border-color: #7f8c8d;
}

.kanban-item[data-item-status="completed"] {
    background-color: #e5f7ed;
    border-color: #27ae60;
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.item-title {
    flex: 1;
    font-weight: 600;
    margin-right: 8px;
}

.item-duplicate-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 2px 5px;
    border-radius: 3px;
    color: #7f8c8d;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.2s, background-color 0.2s;
}

.kanban-item:hover .item-duplicate-btn {
    opacity: 1;
}

.item-duplicate-btn:hover {
    background-color: #ecf0f1;
    color: #2c3e50;
}

.kanban-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.kanban-item.dragging {
    opacity: 0.5;
    transform: rotate(5deg);
}

.item-title {
    font-weight: 600;
    margin-bottom: 8px;
    color: #2c3e50;
    word-wrap: break-word;
}

.item-description {
    margin-bottom: 10px;
    color: #5a6c7d;
    white-space: pre-line;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

/* Hide details on the main board */
.kanban-item .item-details {
    display: none;
}

/* Show details only in the modal */
#item-modal .item-details {
    display: block;
    margin: 10px 0;
    padding: 8px;
    background-color: #f8f9fa;
    border-left: 3px solid #3498db;
    color: #5a6c7d;
    font-size: 13px;
    line-height: 1.4;
    white-space: pre-line;
    word-wrap: break-word;
    border-radius: 0 4px 4px 0;
}

.item-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #7f8c8d;
    margin-top: 10px;
}

.item-meta > div {
    display: flex;
    align-items: center;
    gap: 5px;
}

.priority-badge {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

.priority-high {
    background-color: #e74c3c;
    color: white;
}

.priority-medium {
    background-color: #f39c12;
    color: white;
}

.priority-low {
    background-color: #27ae60;
    color: white;
}

.status-badge {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    margin-left: 5px;
}

.status-not-started {
    background-color: #95a5a6;
    color: white;
}

.status-research {
    background-color: #1abc9c;
    color: white;
}

.status-refinement {
    background-color: #9b59b6;
    color: white;
}

.status-ready {
    background-color: #f1c40f;
    color: white;
}

.status-in-progress {
    background-color: #3498db;
    color: white;
}

.status-testing {
    background-color: #e67e22;
    color: white;
}

.status-blocked {
    background-color: #e74c3c;
    color: white;
}

.status-on-hold {
    background-color: #34495e;
    color: white;
}

.status-removed {
    background-color: #7f8c8d;
    color: white;
}

.status-completed {
    background-color: #27ae60;
    color: white;
}

.tags-container {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.tag {
    background-color: #ecf0f1;
    color: #2c3e50;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 500;
}

.clickable-tag {
    cursor: pointer;
    transition: background-color 0.2s;
}

.clickable-tag:hover {
    background-color: #bdc3c7;
}

.clickable-badge {
    cursor: pointer;
    transition: opacity 0.2s, transform 0.1s;
}

.clickable-badge:hover {
    opacity: 0.8;
    transform: scale(1.05);
}

.form-group small {
    display: block;
    margin-top: 4px;
    color: #7f8c8d;
    font-size: 12px;
}

.column.drag-over {
    background-color: #d5dbdb;
    border: 2px dashed #3498db;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    max-width: 720px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.close {
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #aaa;
}

.close:hover {
    color: #333;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #2c3e50;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.form-group textarea {
    resize: vertical;
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 30px;
}

/* Column Management Styles */
.column-management {
    max-height: 400px;
    overflow-y: auto;
}

.columns-list {
    margin-bottom: 20px;
}

.column-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 10px;
    background-color: #f8f9fa;
    cursor: move;
}

.column-item.dragging {
    opacity: 0.5;
}

.drag-handle {
    cursor: move;
    color: #7f8c8d;
    font-size: 16px;
}

.column-name-input {
    flex: 1;
    padding: 5px 8px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 14px;
}

.column-item-actions {
    display: flex;
    gap: 5px;
}

.btn-small {
    padding: 4px 8px;
    font-size: 12px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

.btn-small.btn-danger {
    background-color: #e74c3c;
    color: white;
}

.btn-small.btn-danger:hover {
    background-color: #c0392b;
}

@media (max-width: 768px) {
    .kanban-board {
        flex-direction: column;
    }
    
    .column {
        min-width: auto;
    }
    
    header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .header-actions {
        flex-direction: column;
        width: 100%;
    }
    

}

/* Message notifications */
.message {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 6px;
    color: white;
    font-weight: 500;
    z-index: 1001;
    animation: slideIn 0.3s ease-out;
}

.message-success {
    background-color: #27ae60;
}

.message-error {
    background-color: #e74c3c;
}

.message-info {
    background-color: #3498db;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Filter bar styles */
.filter-bar {
    background-color: #3498db;
    color: white;
    padding: 10px 20px;
    margin-bottom: 20px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

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

.active-filter-tag {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 600;
    margin-right: 8px;
    cursor: pointer;
}

.active-filter-tag:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

#active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.btn-clear-filter {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: background-color 0.2s;
}

.btn-clear-filter:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

/* Undo button styles */
.btn-secondary:disabled {
    background-color: #bdc3c7;
    cursor: not-allowed;
    opacity: 0.6;
}

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

/* Dark mode */
body.dark-mode {
    background-color: #0f172a;
    color: #e5e7eb;
}

body.dark-mode #board-title,
body.dark-mode .editable-title,
body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3 {
    color: #e5e7eb !important;
}

body.dark-mode .board-selector-dropdown:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

body.dark-mode .dropdown-arrow {
    color: #9ca3af;
}

body.dark-mode .search-input {
    background-color: #0b1220;
    border-color: #334155;
    color: #e5e7eb;
}

body.dark-mode .search-icon {
    color: #94a3b8;
}

body.dark-mode .search-info {
    background: #111827;
    border-color: #1f2937;
    color: #e5e7eb;
}

body.dark-mode .board-dropdown-menu,
body.dark-mode .dropdown-content {
    background-color: #111827;
    border: 1px solid #1f2937;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
}

body.dark-mode .dropdown-content a,
body.dark-mode .dropdown-content label,
body.dark-mode .board-dropdown-menu .btn-text,
body.dark-mode .board-item {
    color: #e5e7eb;
}

body.dark-mode .dropdown-content a:hover,
body.dark-mode .dropdown-content label:hover,
body.dark-mode .board-item:hover,
body.dark-mode .btn-text:hover {
    background-color: #1f2937;
}

body.dark-mode .board-item.active {
    background-color: rgba(59, 130, 246, 0.18);
    color: #bfdbfe;
}

body.dark-mode .board-actions {
    border-top-color: #1f2937;
}

body.dark-mode .btn-secondary {
    background-color: #4b5563;
}

body.dark-mode .btn-secondary:hover {
    background-color: #374151;
}

body.dark-mode .btn-text.btn-danger:hover {
    background-color: rgba(239, 68, 68, 0.12);
}

body.dark-mode .column {
    background-color: #1f2937;
    color: #e5e7eb;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

body.dark-mode .column-hidden {
    background-color: #0f172a;
}

body.dark-mode .column-title-vertical,
body.dark-mode .column h2 {
    color: #e5e7eb;
}

body.dark-mode .column-drag-handle,
body.dark-mode .column-action-btn {
    color: #cbd5e1;
}

body.dark-mode .column-drag-handle:hover,
body.dark-mode .column-action-btn:hover {
    background-color: #374151;
    color: #f8fafc;
}

body.dark-mode .column.drag-over {
    background-color: #1e293b;
    border-color: #60a5fa;
}

body.dark-mode .kanban-item,
body.dark-mode .kanban-item[data-item-status] {
    background-color: #111827;
    color: #e5e7eb;
    box-shadow: 0 2px 8px rgba(0,0,0,0.35);
}

body.dark-mode .kanban-item .item-description,
body.dark-mode .item-description {
    color: #cbd5e1;
}

body.dark-mode .item-meta,
body.dark-mode .item-duplicate-btn {
    color: #9ca3af;
}

body.dark-mode .item-duplicate-btn:hover {
    background-color: #1f2937;
    color: #e5e7eb;
}

body.dark-mode .item-details {
    background-color: #0b1220;
    color: #cbd5e1;
    border-left-color: #60a5fa;
}

body.dark-mode .tags-container .tag {
    background-color: #1f2937;
    color: #e5e7eb;
}

body.dark-mode .modal-content {
    background-color: #111827;
    color: #e5e7eb;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}

body.dark-mode .close {
    color: #94a3b8;
}

body.dark-mode .close:hover {
    color: #e5e7eb;
}

body.dark-mode .form-group label,
body.dark-mode .form-group small {
    color: #cbd5e1;
}

body.dark-mode .form-group input,
body.dark-mode .form-group textarea,
body.dark-mode .form-group select {
    background-color: #0b1220;
    border: 1px solid #334155;
    color: #e5e7eb;
}

body.dark-mode .column-item {
    background-color: #111827;
    border-color: #1f2937;
    color: #e5e7eb;
}

body.dark-mode .detail-section {
    background-color: #0b1220;
    border-color: #1f2937;
}

body.dark-mode .backup-info {
    background-color: #0b1220;
    border-left-color: #60a5fa;
    color: #e5e7eb;
}

body.dark-mode .backup-info h3,
body.dark-mode .backup-info li {
    color: #e5e7eb;
}

body.dark-mode .backup-status {
    border-color: #1f2937;
}

body.dark-mode .backup-status.info {
    background-color: rgba(16, 185, 129, 0.18);
    color: #bbf7d0;
}

body.dark-mode .backup-status.success {
    background-color: rgba(56, 189, 248, 0.18);
    color: #bae6fd;
}

body.dark-mode .backup-status.error {
    background-color: rgba(248, 113, 113, 0.18);
    color: #fecdd3;
}

body.dark-mode .backup-file-btn {
    background-color: #111827;
    border-color: #1f2937;
    color: #e5e7eb;
}

body.dark-mode .backup-file-btn:hover {
    background-color: #1f2937;
}

body.dark-mode .search-result-item {
    border-bottom-color: #1f2937;
}

body.dark-mode .search-result-item:hover {
    background-color: #1f2937;
}

body.dark-mode .search-item-title {
    color: #e5e7eb;
}

body.dark-mode .search-item-desc {
    color: #cbd5e1;
}

body.dark-mode .estimate-badge {
    background-color: rgba(59, 130, 246, 0.2);
    color: #bfdbfe;
    border-color: #1d4ed8;
}

body.dark-mode .dropdown-divider {
    background-color: #1f2937;
}

body.dark-mode .version-footer {
    color: #9ca3af;
}

/* Cloud backup modal styles */
.cloud-backup-content {
    max-height: 600px;
    overflow-y: auto;
}

.cloud-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 20px 0;
}

.backup-status {
    padding: 10px;
    border-radius: 4px;
    margin: 15px 0;
    text-align: center;
    font-weight: 500;
}

.backup-status.info {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.backup-status.success {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.backup-status.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.backup-info {
    margin-top: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 4px;
    border-left: 4px solid #3498db;
}

.backup-info h3 {
    margin-bottom: 10px;
    color: #2c3e50;
    font-size: 14px;
}

.backup-info ul {
    margin: 0;
    padding-left: 20px;
}

.backup-info li {
    margin-bottom: 5px;
    font-size: 13px;
    color: #5a6c7d;
}

/* Restore backup modal styles */
.restore-modal-content {
    max-width: 700px;
}

#backup-list {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 20px;
}

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

.backup-item .backup-file-btn {
    flex: 1;
    margin-bottom: 0;
}

.backup-file-btn {
    display: block;
    width: 100%;
    text-align: left;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #f8f9fa;
    margin-bottom: 8px;
    cursor: pointer;
    white-space: nowrap;
}

.backup-file-btn:hover {
    background-color: #e2e6ea;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

/* Estimate badge */
.estimate-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 20px;
    padding: 0 6px;
    background-color: #e3f2fd;
    color: #1976d2;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 500;
    margin-left: 6px;
    border: 1px solid #bbdefb;
    cursor: default;
}

/* Make the badge more compact on smaller screens */
@media (max-width: 768px) {
    .estimate-badge {
        min-width: 20px;
        height: 18px;
        font-size: 11px;
        padding: 0 4px;
    }
}
