@import url(color.css);
@import url(typography.css);
@import url(overrides.css);

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

body {
    /* font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif; */
    background-color: #f1f3f5;
    /* color: #1e293b; */
    overflow: hidden;
}

.app {
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-content {
    background: none !important;
}






#addColumnBtn {
    /* position: absolute;
    top: 50px;
    right: 0; */
    /* width: 150px; */
    /* display: none; */
}
.board-header {
    display: none !important;
}











#taskFeedBtn, #headerMenuBtn {
    display: none;
}








/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.375rem;
    font-size: 1.2rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background-color: #228be6;
    color: white;
}

.btn-primary:hover {
    background-color: #1c7ed6;
}

.btn-task-feed {
    background-color: #D97706;
    color: white;
}

.btn-task-feed:hover {
    background-color: #B45309;
}

.btn-secondary {
    background-color: transparent;
    border: 1px solid #d0ebff;
    color: #228be6;
}

.btn-secondary:hover {
    background-color: transparent;
    border: 1px solid #74c0fc;
    color: #1c7ed6;
}

.btn-icon {
    background-color: transparent;
    color: #64748b;
    padding: 0.5rem;
    font-size: 1.25rem;
    min-width: auto;
    position: relative;
}

.btn-icon:hover {
    background-color: #f1f5f9;
    color: #475569;
}

.btn-danger {
    /* background-color: #ef4444; */
    /* color: white; */
    border: 1px solid #ffc9c9;
    color: #fa5252;
    background: transparent;
}

.btn-danger:hover {
    /* background-color: #dc2626; */
    border: 1px solid #ffa8a8;
    color: #f03e3e;
}

.btn-small {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 4.5rem;
    right: 1rem;
    background: white;
    border: 1px solid #cbd5e1;
    border-radius: 0.375rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    z-index: 1000;
    min-width: 200px;
}



.dropdown-item {
    width: 100%;
    padding: 0.75rem 1rem;
    border: none;
    background: none;
    text-align: left;
    font-size: 0.875rem;
    cursor: pointer;
    color: #1e293b;
    transition: all 0.2s;
    display: block;
}

.dropdown-item:hover {
    background-color: #f1f5f9;
}

/* Archived Boards List */
.archived-boards-list {
    max-height: 400px;
    overflow-y: auto;
    margin: 1rem 0;
}

.archived-board-item {
    padding: 1rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.375rem;
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f8fafc;
}

.archived-board-name {
    font-weight: 500;
    color: #1e293b;
}

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

.archived-boards-empty {
    text-align: center;
    padding: 2rem;
    color: #64748b;
    font-style: italic;
}

/* Archived Cards List */
.archived-cards-modal {
    max-width: 700px;
    max-height: 80vh;
}

.archived-cards-list {
    max-height: 500px;
    overflow-y: auto;
    margin: 1rem 0;
}

.archived-card-item {
    padding: 1rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.375rem;
    margin-bottom: 0.75rem;
    background-color: #f8fafc;
}

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

.archived-card-title {
    font-weight: 600;
    color: #1e293b;
    font-size: 0.9375rem;
}

.archived-card-meta {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.archived-card-location {
    font-size: 0.75rem;
    color: #64748b;
    background-color: #e2e8f0;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
}

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

.archived-cards-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: #94a3b8;
}

.archived-cards-empty h4 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    color: #64748b;
}

/* Task Feed Page View */
.task-feed-container {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.task-feed-page-header {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.task-feed-title-section h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1e293b;
}

.task-feed-subtitle {
    font-size: 1rem;
    color: #64748b;
}

.task-feed-content {
    flex: 1;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.task-feed-empty {
    text-align: center;
    padding: 4rem 1rem;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
}

.task-feed-empty h4 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: #64748b;
}

.task-feed-empty p {
    font-size: 1rem;
    color: #94a3b8;
}

.task-board-section {
    margin-bottom: 2rem;
    background-color: rgba(255, 255, 255, 0.97);
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.task-board-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    background-color: #f8fafc;
    border-bottom: 2px solid #e2e8f0;
}

.task-board-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e293b;
}

.task-board-count {
    font-size: 0.875rem;
    color: #64748b;
    background-color: #e2e8f0;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    font-weight: 500;
}

.task-card-section {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #f1f5f9;
}

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

.task-card-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #f1f5f9;
}

.task-card-column {
    font-size: 0.75rem;
    font-weight: 500;
    color: #94a3b8;
    background-color: #f1f5f9;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.task-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.5rem;
    margin-bottom: 0.375rem;
    border-radius: 0.375rem;
    transition: all 0.2s;
    background-color: #fafbfc;
}

.task-item:hover {
    background-color: #f1f5f9;
    transform: translateX(2px);
}

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

.task-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
    margin: 0;
}

.task-item-text {
    flex: 1;
    font-size: 0.9375rem;
    color: #374151;
    line-height: 1.5;
}

.task-item-text.completed {
    text-decoration: line-through;
    color: #9ca3af;
}

/* Main Content */
.main-content {
    flex: 1;
    overflow: hidden;
    padding: 2rem;
}



/* Board Container */
.board-container {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.board-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1.25rem 0;
    /* background-color: rgba(255, 255, 255, 0.95); */
    /* border-radius: 0.75rem; */
    /* border: 1px solid #e2e8f0; */
    /* box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); */
}

.board-header h2 {
    font-size: 2rem;
    /* font-weight: 500; */
}

.board-actions {
    display: flex;
    gap: 0.5rem;
    position: relative;
}





/* Columns Container */
.columns-container {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 1rem;
    flex: 1;
    height: calc(100% - 90px);
}

.column {
    /* background-color: #e2e8f0; */
    /* border-radius: 0.5rem; */
    /* padding: 1rem; */
    /* min-width: 388px;
    max-width: 388px; */
    min-width: 400px;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    max-height: 100%;
    /* cursor: grab; */
    transition: all 0.2s;
}

.column.dragging-column {
    opacity: 0.5;
    cursor: grabbing;
}

.column.column-drag-over {
    background-color: #e9ecef;
    padding: 1rem;
    border-radius: 1rem;
}

.column-header {
    display: flex;
    /* justify-content: space-between; */
    align-items: center;
    margin-bottom: 1rem;
    cursor: grab;
}

.column-title {
    font-weight: 500;
    font-size: 1.4rem;
    margin-right: 8px;
    /* text-transform: uppercase; */
    /* letter-spacing: 0.05em; */
    /* color: #475569; */
}

.column-actions {
    position: relative;
    display: flex;
    gap: 0.25rem;
}

.column-menu-btn {
    /* background: none;
    border: none;
    font-size: 1.25rem;
    color: #64748b;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    transition: all 0.2s;
    line-height: 1; */
    width: 32px;
    height: 32px;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none'><path d='M4 16C4 17.5759 4.31039 19.1363 4.91345 20.5922C5.5165 22.0481 6.40042 23.371 7.51472 24.4853C8.62902 25.5996 9.95189 26.4835 11.4078 27.0866C12.8637 27.6896 14.4241 28 16 28C17.5759 28 19.1363 27.6896 20.5922 27.0866C22.0481 26.4835 23.371 25.5996 24.4853 24.4853C25.5996 23.371 26.4835 22.0481 27.0866 20.5922C27.6896 19.1363 28 17.5759 28 16C28 14.4241 27.6896 12.8637 27.0866 11.4078C26.4835 9.95189 25.5996 8.62902 24.4853 7.51472C23.371 6.40042 22.0481 5.5165 20.5922 4.91345C19.1363 4.31039 17.5759 4 16 4C14.4241 4 12.8637 4.31039 11.4078 4.91345C9.95189 5.5165 8.62902 6.40042 7.51472 7.51472C6.40042 8.62902 5.5165 9.95189 4.91345 11.4078C4.31039 12.8637 4 14.4241 4 16Z' stroke='%23ADB5BD' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/><path d='M10.6667 16V16.0133' stroke='%23ADB5BD' stroke-width='3' stroke-linecap='round'/><path d='M16 16V16.0133' stroke='%23ADB5BD' stroke-width='3' stroke-linecap='round'/><path d='M21.3333 16V16.0133' stroke='%23ADB5BD' stroke-width='3' stroke-linecap='round'/></svg>");
    border: none;
    background-color: transparent;
    text-indent: -9999px;
    white-space: nowrap;
    overflow: hidden;
}

.column-menu-btn:hover {
    opacity: 0.7;
}

.column-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.25rem;
    background: white;
    border: 1px solid #cbd5e1;
    border-radius: 0.375rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    z-index: 10;
    min-width: 150px;
}

.column-menu-item {
    width: 100%;
    padding: 0.5rem 1rem;
    border: none;
    background: none;
    text-align: left;
    font-size: 0.875rem;
    cursor: pointer;
    color: #1e293b;
    transition: all 0.2s;
}

.column-menu-item:hover {
    background-color: #f1f5f9;
}

.column-menu-item.delete-column-btn {
    color: #ef4444;
}

.column-menu-item.delete-column-btn:hover {
    background-color: #fef2f2;
}
.column:dragging .cards-container {
    min-width: 100px;
} 
.cards-container {
    /* flex: 1; */
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
    cursor: default;
}

.card {
    background-color: white;
    border-radius: 6px;
    padding: 1rem;
    /* box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); */
    cursor: pointer;
    transition: all 0.2s;
    overflow: hidden;
    min-width: 0;

    /* box-shadow: 0px 1px 4px rgba(0, 0, 0, 0.05); */
}

.card:hover {
    /* box-shadow: 0px 1px 6px rgba(0, 0, 0, 0.15); */
    /* transform: translateY(-1px); */
    background-color: #f8f9fa;
}

.card-title {
    color: #495057;
    font-weight: 400;
    /* margin-bottom: 0.25rem; */
    font-size: 1.3rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.4;
}

.card-description {
    font-size: 1.2rem;
    /* color: #64748b; */
    margin-top: 0.25rem;
    margin-bottom: 0.5rem;
    /* overflow: hidden; */
    /* max-height: 4rem; */
    color: #868e96;
    line-height: 1.4;
}

.card-meta {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}



.card.dragging {
    opacity: 0.5;
    /* cursor: pointer; */
}
.card {
    position: relative;
}
.card.drag-over-top {
    /* border-top: 10px solid #3b82f6; */
}
.card.drag-over-top::before {
    content: "";
    position: absolute;
    top: -5px;
    left: 0;
    right: 0;
    height: 10px;
    background: #339af0;
    pointer-events: none;
    border-radius: 6px;
  }

.card.drag-over-bottom {
    /* border-bottom: 10px solid #3b82f6; */
}

.card.drag-over-bottom::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 10px;
    background: #339af0;
    pointer-events: none;
    border-radius: 6px;
  }



.add-card-btn {
    margin-top: 4px;
    width: 100%;
    padding: 1rem;
    /* border: 2px dashed #94a3b8; */
    /* background-color: transparent; */
    color: #868e96;
    background-color: #e9ecef;
    border: none;
    /* border-radius: 0.375rem; */
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.2s;
    border-radius: 6px;
}

.add-card-btn:hover {
    background-color: #dee2e6;
    color: #212529;
}

/* Modal */
#columnModal .modal-actions,
#boardModal .modal-actions {
    flex-direction: column;
}    
#boardModal .modal-actions .btn,
#columnModal .modal-actions .btn {
    width: 100%;
}
#cardModalTitle {
    display: none;
}
#cardTitleInput {
    margin-bottom: 0;
    border-radius: 0.375rem 0.375rem 0 0;
}
#cardDescInput {
    border-radius: 0 0 0.375rem 0.375rem;
}

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

.modal.active {
    display: flex;
}

.modal-content {
    background-color: white;
    padding: 2rem;
    border-radius: 1.5rem;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    max-height: 90vh;
    overflow-y: auto;
}

.card-modal-large {
    max-width: 900px;
    width: 90%;
    min-width: 700px;
}

.modal-content h3 {
    margin-bottom: 1.3rem;
    font-size: 1.5rem;
}

.field-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
    margin-top: 1rem;
}

.field-label:first-of-type {
    margin-top: 0;
}

.input,
.textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.375rem;
    font-size: 1.3rem;
    font-family: inherit;
    margin-bottom: 1rem;
    outline: none;
    color: #1e293b;
    background-color: white;
}

.input:focus,
.textarea:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.textarea {
    min-height: 100px;
    resize: vertical;
}

/* Rich Text Editor */
.rich-text-editor {
    width: 100%;
    min-height: 150px;
    max-height: none;
    padding: 1rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.375rem;
    font-size: 1.3rem;
    font-family: inherit;
    margin-bottom: 1rem;
    outline: none;
    overflow-y: auto;
    resize: vertical;
}

.rich-text-editor:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.rich-text-editor:empty:before {
    content: attr(data-placeholder);
    color: #9ca3af;
}

.rich-text-editor p {
    margin: 0.5rem 0;
}

.rich-text-editor strong {
    font-weight: 600;
}

.rich-text-editor em {
    font-style: italic;
}

.rich-text-editor ul, .rich-text-editor ol {
    margin-left: 1.5rem;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

/* Checklist */
#addChecklistItemBtn {
    width: 100%;
    border: 1px solid #e7f5ff;
    margin-top: 4px;
    border-radius: 0.375rem;
    text-align: center;
}
#addChecklistItemBtn:hover {
    border: 1px solid #d0ebff;
}

.checklist-container {
    margin-bottom: 1rem;
}

.checklist-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1px;
    padding: 0.5rem;
    border-radius: 0.375rem;
    background-color: #f9fafb;
}

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

.checklist-item input[type="text"] {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0.25rem;
    font-size: 1.2rem;
    outline: none;
}

.checklist-item input[type="text"]:focus {
    background: white;
    border: 1px solid #cbd5e1;
    border-radius: 0.25rem;
}

.checklist-item-delete {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    padding: 0.25rem;
    font-size: 1.2rem;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.checklist-item-delete:hover {
    opacity: 1;
}

/* Links */
.links-container {
    margin-bottom: 1rem;
}

.link-input-group {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    position: relative;
}
#addLinkBtn {
    position: absolute;
    right: 16px;
    top: 11px;
    font-size: 1.1rem;
}
.link-item-icon {
    display: none;
}

.link-input-group .input {
    flex: 1;
    margin-bottom: 0;
}

.link-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    padding: 0.75rem;
    border-radius: 0.375rem;
    background-color: #f9fafb;
    /* border: 1px solid #e5e7eb; */
    transition: all 0.2s;
    overflow: hidden;
}

.link-item:hover {
    background-color: #f3f4f6;
    border-color: #d1d5db;
}

.link-item-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.link-item-content {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.link-item-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    text-decoration: none;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.link-item-title-input {
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    border: 1px solid #e5e7eb;
    border-radius: 0.25rem;
    padding: 0.25rem 0.5rem;
    width: 100%;
    background: white;
    transition: border-color 0.2s;
}

.link-item-title-input:focus {
    outline: none;
    border-color: #2563eb;
}

.link-item-url {
    font-size: 0.75rem;
    color: #2563eb;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-top: 0.125rem;
    text-decoration: none;
    transition: color 0.2s;
    display: block;
    max-width: 100%;
}

.link-item-url:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.link-item-edit {
    background: none;
    border: 1px solid #e5e7eb;
    color: #374151;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    border-radius: 0.25rem;
    transition: all 0.2s;
    flex-shrink: 0;
    margin-right: 0.25rem;
}

.link-item-edit:hover {
    background-color: #f3f4f6;
    border-color: #d1d5db;
}

.link-item-delete {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    padding: 0.25rem;
    font-size: 1.2rem;
    opacity: 0.6;
    transition: opacity 0.2s;
    flex-shrink: 0;
}

.link-item-delete:hover {
    opacity: 1;
}


.btn-link {
    background: none;
    border: none;
    color: #3b82f6;
    cursor: pointer;
    padding: 0.5rem 0;
    font-size: 0.875rem;
    text-align: left;
    transition: color 0.2s;
}

.btn-link:hover {
    color: #2563eb;
}

.modal-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: space-between;
    margin-top: 0.5rem;
    align-items: center;
}

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

.modal-actions-right {
    display: flex;
    gap: 0.5rem;
    margin-left: auto;
}

/* Background Modal Styles */
.background-options {
    margin-bottom: 1rem;
}

.background-type-selector {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.background-type-selector label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.background-type-selector input[type="radio"] {
    cursor: pointer;
}

.background-option {
    margin-bottom: 0.5rem;
}

.background-option label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.color-input {
    width: 100%;
    height: 50px;
    border: 1px solid #cbd5e1;
    border-radius: 0.375rem;
    cursor: pointer;
}

.file-input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    cursor: pointer;
}

.file-input::-webkit-file-upload-button {
    padding: 0.375rem 0.75rem;
    border: none;
    border-radius: 0.25rem;
    background-color: #3b82f6;
    color: white;
    cursor: pointer;
    font-size: 0.875rem;
    margin-right: 0.5rem;
}

.file-input::-webkit-file-upload-button:hover {
    background-color: #2563eb;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Settings Modal */
#settingsBackgroundBtn, #dark-mode-settings {
    display: none;
}
#closeSettingsBtn {
    width: 100%;
}
.settings-section {
    margin-bottom: 1.5rem;
}

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

.settings-item {
    padding: 0.75rem 0;
}

.settings-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    font-size: 0.875rem;
    cursor: pointer;
}

.settings-button {
    width: 100%;
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.375rem;
    background: white;
    text-align: left;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
}

.settings-button:hover {
    background-color: #f9fafb;
    border-color: #94a3b8;
}

.settings-button.delete {
    color: #ef4444;
    border-color: #fecaca;
}

.settings-button.delete:hover {
    background-color: #fef2f2;
    border-color: #fca5a5;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

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

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

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

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

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

/* Dark Mode */
body.dark-mode {
    background-color: #1e293b;
    color: #e2e8f0;
}

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

body.dark-mode .main-content {
    background-color: #1e293b;
}

body.dark-mode .board-selector {
    background-color: #1e293b;
    border-color: #334155;
    color: #e2e8f0;
}

body.dark-mode .btn-secondary {
    background-color: #334155;
    color: #e2e8f0;
}

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

body.dark-mode .board-header {
    background-color: rgba(30, 41, 59, 0.95);
    border-color: #475569;
}

body.dark-mode .board-header h2 {
    color: #e2e8f0;
}

body.dark-mode .column {
    background-color: #334155;
}

body.dark-mode .column-title {
    color: #cbd5e1;
}

body.dark-mode .column-menu-btn {
    color: #94a3b8;
}

body.dark-mode .column-menu-btn:hover {
    background-color: #475569;
    color: #cbd5e1;
}

body.dark-mode .column-menu {
    background-color: #1e293b;
    border-color: #475569;
}

body.dark-mode .column-menu-item {
    color: #e2e8f0;
}

body.dark-mode .column-menu-item:hover {
    background-color: #334155;
}

body.dark-mode .card {
    background-color: #1e293b;
    color: #e2e8f0;
}

body.dark-mode .card:hover {
    background-color: #475569;
}

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

body.dark-mode .add-card-btn {
    border-color: #475569;
    color: #94a3b8;
}

body.dark-mode .add-card-btn:hover {
    border-color: #64748b;
    color: #cbd5e1;
}

body.dark-mode .modal-content {
    background-color: #1e293b;
    color: #e2e8f0;
}

body.dark-mode .input,
body.dark-mode .textarea,
body.dark-mode .rich-text-editor {
    background-color: #334155;
    border-color: #475569;
    color: #e2e8f0;
}

body.dark-mode .input:focus,
body.dark-mode .textarea:focus,
body.dark-mode .rich-text-editor:focus {
    border-color: #3b82f6;
}

body.dark-mode .rich-text-editor:empty:before {
    color: #64748b;
}

body.dark-mode .checklist-item {
    background-color: #334155;
}

body.dark-mode .checklist-item input[type="text"] {
    color: #e2e8f0;
}

body.dark-mode .checklist-item input[type="text"]:focus {
    background-color: #1e293b;
    border-color: #475569;
}

body.dark-mode .link-item {
    background-color: #334155;
    border-color: #475569;
}

body.dark-mode .link-item:hover {
    background-color: #475569;
    border-color: #64748b;
}

body.dark-mode .link-item-title {
    color: #e2e8f0;
}

body.dark-mode .link-item-title-input {
    background-color: #1e293b;
    border-color: #475569;
    color: #e2e8f0;
}

body.dark-mode .link-item-title-input:focus {
    border-color: #3b82f6;
}

body.dark-mode .link-item-url {
    color: #60a5fa;
}

body.dark-mode .link-item-url:hover {
    color: #93c5fd;
}

body.dark-mode .link-item-edit {
    background-color: #334155;
    border-color: #475569;
    color: #e2e8f0;
}

body.dark-mode .link-item-edit:hover {
    background-color: #475569;
    border-color: #64748b;
}
body.dark-mode .card-link-tile {
    background-color: #1e3a5f;
    border-color: #2563eb;
    color: #93c5fd;
}

body.dark-mode .card-link-tile:hover {
    background-color: #1e40af;
    border-color: #3b82f6;
}

body.dark-mode .archived-card-item {
    background-color: #334155;
    border-color: #475569;
}

body.dark-mode .archived-card-title {
    color: #e2e8f0;
}

body.dark-mode .archived-card-location {
    background-color: #475569;
    color: #cbd5e1;
}

body.dark-mode .archived-cards-empty {
    color: #94a3b8;
}

body.dark-mode .archived-cards-empty h4 {
    color: #cbd5e1;
}

body.dark-mode .settings-button {
    background-color: #334155;
    border-color: #475569;
    color: #e2e8f0;
}

body.dark-mode .settings-button:hover {
    background-color: #475569;
}

body.dark-mode .settings-button.delete {
    color: #f87171;
    border-color: #7f1d1d;
}

body.dark-mode .settings-button.delete:hover {
    background-color: #450a0a;
}

body.dark-mode .settings-section-title {
    color: #94a3b8;
}

body.dark-mode .field-label {
    color: #cbd5e1;
}

body.dark-mode .btn-icon:hover {
    background-color: #334155;
    color: #cbd5e1;
}

body.dark-mode .dropdown-menu {
    background-color: #1e293b;
    border-color: #475569;
}

body.dark-mode .dropdown-item {
    color: #e2e8f0;
}

body.dark-mode .dropdown-item:hover {
    background-color: #334155;
}

body.dark-mode .archived-board-item {
    background-color: #334155;
    border-color: #475569;
}

body.dark-mode .archived-board-name {
    color: #e2e8f0;
}

body.dark-mode .archived-boards-empty {
    color: #94a3b8;
}

body.dark-mode .empty-columns-state {
    color: #94a3b8;
}

body.dark-mode .empty-columns-state h3 {
    color: #cbd5e1;
}

body.dark-mode .empty-columns-state p {
    color: #94a3b8;
}

body.dark-mode .task-feed-page-header {
    background-color: rgba(30, 41, 59, 0.95);
    border-color: #475569;
}

body.dark-mode .task-feed-title-section h2 {
    color: #e2e8f0;
}

body.dark-mode .task-feed-subtitle {
    color: #94a3b8;
}

body.dark-mode .task-feed-empty {
    background-color: rgba(30, 41, 59, 0.95);
    border-color: #475569;
}

body.dark-mode .task-feed-empty h4 {
    color: #cbd5e1;
}

body.dark-mode .task-feed-empty p {
    color: #94a3b8;
}

body.dark-mode .task-board-section {
    background-color: rgba(30, 41, 59, 0.97);
    border-color: #475569;
}

body.dark-mode .task-board-header {
    background-color: #334155;
    border-bottom-color: #475569;
}

body.dark-mode .task-board-name {
    color: #e2e8f0;
}

body.dark-mode .task-board-count {
    background-color: #475569;
    color: #cbd5e1;
}

body.dark-mode .task-card-section {
    border-bottom-color: #334155;
}

body.dark-mode .task-card-header {
    color: #cbd5e1;
    border-bottom-color: #334155;
}

body.dark-mode .task-card-column {
    background-color: #475569;
    color: #cbd5e1;
}

body.dark-mode .task-item {
    background-color: #334155;
}

body.dark-mode .task-item:hover {
    background-color: #475569;
}

body.dark-mode .task-item-text {
    color: #e2e8f0;
}

body.dark-mode .task-item-text.completed {
    color: #64748b;
}

body.dark-mode .task-feed-empty {
    color: #94a3b8;
}

body.dark-mode .task-feed-empty h4 {
    color: #cbd5e1;
}

body.dark-mode ::-webkit-scrollbar-track {
    background: #1e293b;
}

body.dark-mode ::-webkit-scrollbar-thumb {
    background: #475569;
}

body.dark-mode ::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

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

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

    .main-content {
        padding: 1rem;
    }

    .board-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .column {
        min-width: 260px;
        max-width: 260px;
    }
}
