* {
    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 {
    position: relative;
    z-index: 100;
    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: 3000;
    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;
    gap: 8px;
}

/* 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;
}

.board-dropdown-menu.board-dropdown-modal {
    position: static;
    display: block;
    min-width: 100%;
    margin-top: 0;
    border: 1px solid #e6e6e6;
    box-shadow: none;
}

/* 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.archived {
    cursor: default;
    opacity: 0.75;
}

.board-item.archived:hover {
    background-color: transparent;
}

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

.board-item-empty {
    padding: 10px 15px;
    color: #6c757d;
    font-size: 13px;
}

.board-item-actions {
    margin-left: auto;
    display: flex;
    gap: 6px;
}

.board-item-actions .btn-text {
    font-size: 12px;
    padding: 2px 4px;
}

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

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

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

.share-header {
    font-size: 12px;
    font-weight: 600;
    color: #2c3e50;
}

.share-controls {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.share-controls select {
    flex: 1;
    min-width: 140px;
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 12px;
    color: #2c3e50;
    background: #f7f9fb;
}

.share-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.share-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 12px;
    color: #2c3e50;
    background: #f7f9fb;
    border-radius: 6px;
    padding: 6px 8px;
}

.share-meta {
    display: flex;
    align-items: center;
    gap: 6px;
}

.share-tag {
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 999px;
    background: #e9eef3;
    color: #2c3e50;
}

.share-info {
    font-size: 12px;
    color: #5f6b7a;
}

.share-empty {
    font-size: 12px;
    color: #8b98a9;
}

.public-section {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.public-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #2c3e50;
}

.public-secret-controls {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.public-expiry-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #2c3e50;
}

.public-expiry-row label {
    min-width: 72px;
}

.public-expiry-row input,
.public-expiry-row select {
    padding: 5px 6px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 12px;
    color: #2c3e50;
    background: #f7f9fb;
}

.public-expiry-row input:disabled,
.public-expiry-row select:disabled {
    opacity: 0.65;
}

.public-link {
    display: flex;
    align-items: center;
    gap: 6px;
}

.public-link input {
    flex: 1;
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 12px;
    color: #2c3e50;
    background: #f7f9fb;
}

.public-link input:disabled {
    opacity: 0.65;
}

.board-badge {
    margin-left: 6px;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 999px;
    background: #f0f4f8;
    color: #1f2d3d;
}

.board-badge-shared {
    background: #e6f0ff;
    color: #2c4a7d;
}

.board-modal-content {
    max-width: 900px;
}

.board-modal-header {
    display: grid;
    grid-template-columns: minmax(220px, auto) minmax(260px, 420px);
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 10px;
    padding-right: 32px;
}

.board-modal-search {
    position: relative;
    min-width: 220px;
    max-width: 420px;
}

.board-modal-search .search-input {
    width: 100%;
}

.board-modal-menu {
    margin-top: 8px;
}

.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;
}

body.public-readonly .header-actions > * {
    display: none;
}

body.public-readonly .view-menu,
body.public-readonly .appearance-menu {
    display: inline-block;
}

body.public-readonly .board-dropdown-menu,
body.public-readonly .dropdown-arrow {
    display: none !important;
}

body.public-readonly #open-board-modal-btn {
    display: none;
}

body.public-readonly .board-selector-dropdown {
    cursor: default;
}

body.public-readonly #board-title {
    cursor: default;
    pointer-events: none;
}

body.public-readonly .column-actions,
body.public-readonly .column-drag-handle,
body.public-readonly .item-duplicate-btn {
    display: none;
}

body.public-readonly .kanban-item {
    cursor: default;
}

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

.view-toggle {
    display: inline-flex;
    align-items: center;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    overflow: hidden;
    background-color: #fff;
}

.view-toggle-btn {
    border: none;
    background: transparent;
    color: #475569;
    cursor: pointer;
    font-size: 14px;
    min-height: 38px;
    padding: 8px 12px;
    transition: background-color 0.2s, color 0.2s;
}

.view-toggle-btn:hover {
    background-color: #eef2f7;
}

.view-toggle-btn.active {
    background-color: #3498db;
    color: #fff;
}

.gantt-zoom {
    display: none;
    align-items: center;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    overflow: hidden;
    background-color: #fff;
}

.gantt-zoom-btn {
    border: none;
    background: transparent;
    color: #475569;
    cursor: pointer;
    font-size: 17px;
    font-weight: 700;
    min-height: 38px;
    min-width: 38px;
    padding: 8px 10px;
    transition: background-color 0.2s, color 0.2s;
}

.gantt-zoom-btn:hover:not(:disabled) {
    background-color: #eef2f7;
}

.gantt-zoom-btn:disabled {
    color: #cbd5e1;
    cursor: not-allowed;
}

.gantt-zoom-label {
    min-width: 56px;
    padding: 0 10px;
    color: #334155;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
}

.empty-state {
    padding: 40px;
    text-align: center;
    color: #6b7280;
    font-size: 1.1rem;
}

/* 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: 3000;
    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-button {
    width: 100%;
    border: none;
    background: transparent;
    color: #333;
    cursor: pointer;
    display: block;
    font: inherit;
    font-size: 14px;
    padding: 8px 16px;
    text-align: left;
    white-space: nowrap;
}

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

.dropdown-panel {
    padding: 10px;
    min-width: 240px;
}

.appearance-menu > .dropdown-content {
    overflow: visible;
}

.dropdown-panel .view-toggle,
.dropdown-panel .gantt-zoom {
    width: 100%;
}

.dropdown-panel .view-toggle-btn {
    flex: 1;
}

.dropdown-panel .view-toggle {
    margin-top: 8px;
}

.dropdown-panel .gantt-zoom-label {
    flex: 1;
}

.dropdown-submenu {
    position: relative;
}

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

.dropdown-submenu:hover .dropdown-submenu-content,
.dropdown-submenu.open .dropdown-submenu-content {
    display: block;
}

.dropdown-submenu-content label {
    display: block;
    padding: 8px 16px;
    font-size: 14px;
    white-space: nowrap;
}

.dropdown-submenu-content label: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;
}

.account-menu {
    margin-left: auto;
}

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

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;
}

.gantt-board {
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow-x: visible;
    padding-bottom: 10px;
}

.gantt-scroll {
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    padding-bottom: 10px;
}

.gantt-chart {
    min-width: 760px;
    background-color: #fff;
    border: 1px solid #dce3ea;
    border-radius: 8px;
    overflow: visible;
}

.gantt-header,
.gantt-row {
    display: grid;
    grid-template-columns: 280px 1fr;
}

.gantt-header {
    position: sticky;
    top: 0;
    z-index: 2;
    background-color: #f8fafc;
    border-bottom: 1px solid #dce3ea;
}

.gantt-task-header {
    position: sticky;
    left: 0;
    z-index: 4;
    padding: 12px 14px;
    font-size: 13px;
    font-weight: 700;
    background-color: #f8fafc;
    color: #475569;
    border-right: 1px solid #dce3ea;
    box-shadow: 6px 0 10px -10px rgba(15, 23, 42, 0.45);
}

.gantt-dates-header,
.gantt-timeline-cell {
    display: grid;
    min-width: 0;
}

.gantt-date-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    min-height: 42px;
    min-width: 0;
    padding: 6px 2px;
    border-right: 1px solid #e8eef4;
    color: #64748b;
    line-height: 1.1;
    overflow: hidden;
    text-align: center;
    white-space: nowrap;
}

.gantt-date-primary,
.gantt-date-secondary {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: clip;
}

.gantt-date-primary {
    font-size: 10px;
}

.gantt-date-secondary {
    color: #334155;
    font-size: 12px;
    font-weight: 700;
}

.gantt-body {
    display: grid;
}

.gantt-row {
    min-height: 54px;
    border-bottom: 1px solid #eef2f7;
}

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

.gantt-task-cell {
    position: sticky;
    left: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    padding: 10px 14px;
    border: none;
    border-right: 1px solid #dce3ea;
    background: #fff;
    color: inherit;
    cursor: pointer;
    min-width: 0;
    text-align: left;
    box-shadow: 6px 0 10px -10px rgba(15, 23, 42, 0.45);
}

.gantt-task-cell:disabled {
    cursor: default;
}

.gantt-task-cell:not(:disabled):hover,
.gantt-unscheduled-card:not(:disabled):hover {
    background-color: #f8fafc;
}

.gantt-task-title {
    color: #1f2937;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gantt-task-meta {
    color: #64748b;
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gantt-timeline-cell {
    align-items: center;
    background-image: linear-gradient(to right, #e8eef4 1px, transparent 1px);
    background-size: calc(100% / var(--gantt-units, 1)) 100%;
    padding: 11px 0;
}

.gantt-bar {
    align-items: center;
    align-self: stretch;
    border-radius: 4px;
    color: #fff;
    display: flex;
    font-size: 12px;
    font-weight: 600;
    min-width: 0;
    overflow: hidden;
    padding: 0 8px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gantt-bar-high {
    background-color: #3498db;
}

.gantt-bar-mandate {
    background-color: #e74c3c;
}

.gantt-bar-secondary {
    background-color: #27ae60;
}

.gantt-empty {
    padding: 28px;
    color: #64748b;
    text-align: center;
}

.gantt-unscheduled {
    border-top: 1px solid #dce3ea;
    padding: 16px;
    background-color: #f8fafc;
}

.gantt-unscheduled h3 {
    margin: 0 0 6px;
    color: #334155;
    font-size: 16px;
}

.gantt-unscheduled p {
    margin: 0 0 12px;
    color: #64748b;
    font-size: 13px;
}

.gantt-unscheduled-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.gantt-unscheduled-card {
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background-color: #fff;
    color: #334155;
    cursor: pointer;
    font-size: 13px;
    max-width: 260px;
    overflow: hidden;
    padding: 8px 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gantt-unscheduled-card:disabled {
    cursor: default;
    color: #64748b;
}

.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;
    opacity: 0.5;
}

.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;
}

.item-url {
    margin-bottom: 8px;
    font-size: 12px;
}

.item-url a {
    color: #3498db;
    text-decoration: none;
}

.item-url a:hover {
    text-decoration: underline;
}

/* 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-mandate {
    background-color: #e74c3c;
    color: white;
}

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

.priority-secondary {
    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);
}

body.modal-open {
    overflow: hidden;
}

.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-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.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-error {
    margin-top: 12px;
    color: #b00020;
    background: #fff0f3;
    border: 1px solid #ffd6de;
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 14px;
}

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

.passkey-section {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #e1e5ea;
    display: grid;
    gap: 10px;
}

.passkey-section h3 {
    margin: 0;
    font-size: 16px;
    color: #2c3e50;
}

.passkey-subtitle {
    margin: 0;
    color: #5f6b7a;
    font-size: 13px;
}

.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-container {
        padding: 14px;
    }

    .kanban-board {
        flex-direction: column;
        gap: 16px;
    }
    
    .column {
        min-width: auto;
        min-height: 360px;
        padding: 12px;
    }
    
    header {
        flex-direction: column;
        gap: 15px;
        text-align: left;
        align-items: stretch;
    }
    
    .header-actions {
        flex-direction: row;
        flex-wrap: wrap;
        width: 100%;
        justify-content: flex-start;
    }

    .header-actions > * {
        flex: 1 1 160px;
        min-width: 140px;
    }

    .board-selector {
        width: 100%;
    }

    .board-selector-dropdown {
        justify-content: space-between;
        width: 100%;
    }

    #board-title {
        font-size: 1.6rem;
        word-break: break-word;
    }

    .search-container {
        width: 100%;
        margin-right: 0;
    }

    .search-input {
        width: 100%;
    }

    .header-actions .btn-primary,
    .header-actions .btn-secondary,
    .header-actions .btn-danger {
        width: 100%;
        padding: 12px 14px;
    }

    .view-toggle {
        width: 100%;
    }

    .view-toggle-btn {
        flex: 1;
        min-height: 42px;
    }

    .gantt-zoom {
        width: 100%;
    }

    .gantt-zoom-label {
        flex: 1;
    }

    .account-menu {
        margin-left: 0;
    }

    .items-container {
        min-height: 240px;
    }

    .gantt-chart {
        min-width: 680px;
    }

    .gantt-header,
    .gantt-row {
        grid-template-columns: 220px 1fr;
    }

    .kanban-item {
        padding: 12px;
    }

    .item-meta {
        flex-wrap: wrap;
        gap: 8px;
    }

    .filter-bar {
        padding: 10px 12px;
    }

    .filter-content {
        flex-wrap: wrap;
        justify-content: flex-start;
    }

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

/* 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 {
    color: #f8fafc !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.65);
}

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,
body.dark-mode .dropdown-submenu-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 .dropdown-button,
body.dark-mode .dropdown-submenu-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 .dropdown-button:hover,
body.dark-mode .dropdown-submenu-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 .board-public-settings {
    border-top-color: #1f2937;
}

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

body.dark-mode .public-toggle {
    color: #e5e7eb;
}

body.dark-mode .public-link input {
    background: #0f172a;
    border-color: #1f2937;
    color: #e5e7eb;
}

body.dark-mode .public-expiry-row input,
body.dark-mode .public-expiry-row select {
    background: #0f172a;
    border-color: #1f2937;
    color: #e5e7eb;
}

body.dark-mode .share-header,
body.dark-mode .share-info,
body.dark-mode .share-empty,
body.dark-mode .share-row {
    color: #e5e7eb;
}

body.dark-mode .share-row {
    background: #0f172a;
}

body.dark-mode .share-controls select {
    background: #0f172a;
    border-color: #1f2937;
    color: #e5e7eb;
}

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

body.dark-mode .board-badge-shared {
    background: #1d3554;
    color: #dbeafe;
}

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

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

body.dark-mode .view-toggle {
    background-color: #111827;
    border-color: #334155;
}

body.dark-mode .view-toggle-btn {
    color: #cbd5e1;
}

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

body.dark-mode .view-toggle-btn.active {
    background-color: #2563eb;
    color: #f8fafc;
}

body.dark-mode .gantt-zoom {
    background-color: #111827;
    border-color: #334155;
}

body.dark-mode .gantt-zoom-btn {
    color: #cbd5e1;
}

body.dark-mode .gantt-zoom-btn:hover:not(:disabled) {
    background-color: #1f2937;
}

body.dark-mode .gantt-zoom-btn:disabled {
    color: #475569;
}

body.dark-mode .gantt-zoom-label {
    color: #e5e7eb;
}

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

body.dark-mode .empty-state {
    color: #9ca3af;
}

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 .gantt-chart {
    background-color: #111827;
    border-color: #1f2937;
}

body.dark-mode .gantt-header {
    background-color: #0f172a;
    border-bottom-color: #1f2937;
}

body.dark-mode .gantt-task-header,
body.dark-mode .gantt-task-cell {
    border-color: #1f2937;
    box-shadow: 6px 0 10px -10px rgba(0, 0, 0, 0.8);
}

body.dark-mode .gantt-task-header {
    background-color: #0f172a;
}

body.dark-mode .gantt-task-header,
body.dark-mode .gantt-date-marker,
body.dark-mode .gantt-task-meta,
body.dark-mode .gantt-empty,
body.dark-mode .gantt-unscheduled p {
    color: #94a3b8;
}

body.dark-mode .gantt-row {
    border-bottom-color: #1f2937;
}

body.dark-mode .gantt-task-cell {
    background-color: #111827;
}

body.dark-mode .gantt-task-cell:not(:disabled):hover,
body.dark-mode .gantt-unscheduled-card:not(:disabled):hover {
    background-color: #1f2937;
}

body.dark-mode .gantt-task-title,
body.dark-mode .gantt-unscheduled h3,
body.dark-mode .gantt-date-secondary {
    color: #e5e7eb;
}

body.dark-mode .gantt-date-marker {
    border-right-color: #1f2937;
}

body.dark-mode .gantt-timeline-cell {
    background-image: linear-gradient(to right, #1f2937 1px, transparent 1px);
}

body.dark-mode .gantt-unscheduled {
    background-color: #0f172a;
    border-top-color: #1f2937;
}

body.dark-mode .gantt-unscheduled-card {
    background-color: #111827;
    border-color: #334155;
    color: #e5e7eb;
}

body.dark-mode .gantt-unscheduled-card:disabled {
    color: #94a3b8;
}

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 .item-title {
    color: #f8fafc;
}

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 .form-error {
    background-color: #3f1d1d;
    border-color: #7f1d1d;
    color: #fecaca;
}

body.dark-mode .passkey-section {
    border-top-color: #1f2937;
}

body.dark-mode .passkey-section h3,
body.dark-mode .passkey-subtitle {
    color: #cbd5e1;
}

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;
    }
}

@media (max-width: 600px) {
    .modal-content {
        width: calc(100% - 24px);
        margin: 12px auto;
        max-height: calc(100vh - 24px);
        padding: 16px;
        border-radius: 12px;
    }

    .search-modal {
        max-height: calc(100vh - 24px);
    }

    .form-group input,
    .form-group textarea,
    .form-group select,
    .search-input {
        font-size: 16px;
    }

    .message {
        top: 12px;
        right: 12px;
        left: 12px;
    }
}

@media (max-width: 480px) {
    .column-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .column-actions {
        opacity: 1;
    }

    .board-modal-header {
        align-items: stretch;
        grid-template-columns: 1fr;
        padding-right: 0;
    }
}
