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

html {
    overflow-x: hidden; /* Prevent horizontal scrollbar during drag */
    overflow-y: auto;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", "Segoe UI Symbol";
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scrollbar when dragging items */
    overflow-y: auto;
}

/* Invisible draggable area for window dragging */
.drag-region {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 40px;
    z-index: 9999;
    -webkit-app-region: drag;
    background: transparent;
    pointer-events: auto;
}

/* Ensure buttons and interactive elements in the drag region are not draggable */
.drag-region button, 
.drag-region input, 
.drag-region select, 
.drag-region textarea,
.drag-region .nav-sidebar-btn {
    -webkit-app-region: no-drag;
}

/* Clickable links in todo items */
.todo-link {
    color: #3498db;
    text-decoration: underline;
    cursor: pointer;
    word-break: break-all;
    -webkit-app-region: no-drag;
}

.todo-link:hover {
    color: #2980b9;
    text-decoration: none;
}

.container {
    max-width: none;
    margin: 0 auto;
    padding: 10px 10px 10px 0;
    display: flex;
    gap: 10px;
    min-height: calc(100vh - 20px);
    height: 100vh;
    overflow-x: hidden; /* Prevent horizontal scrollbar during drag */
    overflow-y: visible;
}

.nav-sidebar {
    width: 55px;
    background-color: #2c3e50;
    border-radius: 0 10px 10px 0;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    padding: 8px 0;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    z-index: 1000;
}

.nav-sidebar-btn {
    background: none;
    border: none;
    color: #ecf0f1;
    padding: 12px 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px;
    margin: 2px 6px;
    position: relative;
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-sidebar-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateX(2px);
}

.nav-sidebar-btn.active {
    background-color: #5DADE2;
    color: white;
    box-shadow: 0 2px 8px rgba(93, 173, 226, 0.3);
}

.nav-text {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 2px;
    transform: rotate(180deg);
    text-transform: uppercase;
    line-height: 1.3;
}

.info-section {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 16px;
    background-color: #5DADE2;
    border-radius: 10px;
    border: 2px solid #3498db;
    min-width: 160px;
    box-shadow: 0 2px 8px rgba(93, 173, 226, 0.2);
}

h1 {
    text-align: center;
    margin-bottom: 20px;
    color: #2c3e50;
    font-size: 2.5rem;
}

.date-display-only {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 8px 4px 4px 4px;
    color: #f8f9fa;
    background-color: #5DADE2;
    border-radius: 10px;
    border: 3px solid #3498db;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    gap: 4px;
}

.main-date {
    font-size: 29px;
    font-weight: 700;
    text-align: center;
    line-height: 1.1;
    margin-bottom: 4px;
    margin-top: 4px;
}

.week-day-info {
    font-size: 20px;
    font-weight: 600;
    text-align: center;
    color: #f8f9fa;
    margin-bottom: -7px;
}

.relative-date-info {
    color: #f8f9fa;
    font-size: 20px;
    font-weight: 600;
    text-align: center;
    min-height: 18px;
    white-space: nowrap;
    margin-bottom: 8px;
}

.inline-calendar {
    background-color: white;
    border-radius: 10px;
    border: 1px solid #e9ecef;
    padding: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    max-width: 100%;
    overflow: visible;
}

.trash-section {
    background-color: #fff5f5;
    border: 2px solid #fed7d7;
    border-radius: 10px;
    padding: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    flex: 1;
    display: flex;
    flex-direction: column;
    height: calc(100vh - 24px);
    margin: 12px;
}

.trash-section h3 {
    margin: 0 0 10px 0;
    color: #c53030;
    text-align: center;
    font-size: 14px;
    border-bottom: 1px solid #fed7d7;
    padding-bottom: 8px;
}

.trash-columns {
    display: flex;
    gap: 12px;
    flex: 1;
    overflow-x: auto;
    overflow-y: visible;
    min-height: 400px;
    padding: 20px;
    justify-content: flex-start;
    align-items: stretch;
}

.trash-column {
    background-color: #fefefe;
    border: 1px solid #fed7d7;
    border-radius: 8px;
    min-width: 250px;
    max-width: 300px;
    flex: 1 1 280px;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    position: relative;
}

.trash-column-header {
    background-color: #fee2e2;
    color: #c53030;
    font-weight: 600;
    font-size: 12px;
    text-align: center;
    padding: 8px 10px;
    border-bottom: 1px solid #fed7d7;
    border-radius: 8px 8px 0 0;
}

.trash-column-items {
    flex: 1;
    overflow-y: auto;
    overflow-x: visible;
    padding: 8px;
    min-height: 200px;
    max-height: calc(100vh - 250px);
}

.trash-column-items::-webkit-scrollbar {
    width: 4px;
}

.trash-column-items::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 2px;
}

.trash-column-items::-webkit-scrollbar-thumb {
    background: #fed7d7;
    border-radius: 2px;
}

.trash-column-items::-webkit-scrollbar-thumb:hover {
    background: #fca5a5;
}

.trash-items::-webkit-scrollbar {
    width: 6px;
}

.trash-items::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.trash-items::-webkit-scrollbar-thumb {
    background: #c53030;
    border-radius: 3px;
}

.trash-items::-webkit-scrollbar-thumb:hover {
    background: #9b2c2c;
}

.trash-item {
    background-color: #fff5f5;
    border: 1px solid #fed7d7;
    opacity: 0.8;
    position: relative;
    z-index: 1;
}

.trash-item:hover {
    opacity: 1;
    box-shadow: 0 2px 8px rgba(197, 48, 48, 0.2);
    z-index: 10;
}

.trash-item .todo-text {
    color: #c53030;
}

.nav-btn {
    background-color: #5DADE2;
    color: white;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    flex-shrink: 0;
}

.nav-btn:hover {
    background-color: #3498db;
}

.today-nav-btn {
    background-color: #27ae60 !important;
    border-color: #229954 !important;
    color: white !important;
    font-weight: 600;
}

.today-nav-btn:hover {
    background-color: #229954 !important;
    border-color: #117864 !important;
    color: white !important;
}

.next-week-btn {
    background-color: #e67e22 !important;
    border-color: #d68910 !important;
    color: white !important;
    font-weight: 600;
}

.next-week-btn:hover {
    background-color: #d68910 !important;
    border-color: #b7700a !important;
    color: white !important;
}

.last-week-btn {
    background-color: #e67e22 !important;
    border-color: #d68910 !important;
    color: white !important;
    font-weight: 600;
    margin-left: 30px;
}

.last-week-btn:hover {
    background-color: #d68910 !important;
    border-color: #b7700a !important;
    color: white !important;
}

.last-day-btn {
    background-color: #9b59b6 !important;
    border-color: #8e44ad !important;
    color: white !important;
    font-weight: 600;
}

.last-day-btn:hover {
    background-color: #8e44ad !important;
    border-color: #7d3c98 !important;
    color: white !important;
}

.next-day-btn {
    background-color: #9b59b6 !important;
    border-color: #8e44ad !important;
    color: white !important;
    font-weight: 600;
}

.next-day-btn:hover {
    background-color: #8e44ad !important;
    border-color: #7d3c98 !important;
    color: white !important;
}

.date-display {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    flex: 1;
    justify-content: center;
    min-width: 0;
}

.date-display span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #1a1a1a;
}

.calendar-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.calendar-btn:hover {
    background-color: #ecf0f1;
}

.week-view {
    margin-bottom: 8px;
    padding: 4px 0;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.week-buttons-section {
    display: flex;
    gap: 6px;
    align-items: center;
    flex: 1;
    flex-wrap: nowrap;
    justify-content: center;
    padding: 2px 0;
}

.week-buttons {
    display: flex;
    justify-content: center;
    gap: 6px;
    flex-wrap: nowrap;
    margin-left: 20px;
    margin-right: 20px;
}

.week-day-btn {
    background-color: #ecf0f1;
    border: 2px solid #bdc3c7;
    border-radius: 8px;
    padding: 4px;
    width: 60px;
    height: 60px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-family: inherit;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    color: #2c3e50;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 11px;
}

.week-day-btn:hover {
    background-color: #bfc5c5;
    border-color: #7f8f90;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.week-day-btn.current {
    background-color: #5DADE2;
    border-color: #3498db;
    color: white;
    font-weight: 600;
}

.week-day-btn.current:hover {
    background-color: #3498db;
    border-color: #2980b9;
}

.week-day-btn.today {
    background-color: #27ae60;
    border-color: #229954;
    color: white;
    font-weight: 600;
}

.week-day-btn.today:hover {
    background-color: #229954;
    border-color: #117864;
}

.week-day-btn.weekend {
    background-color: #bfc5c5;
    border-color: #7f8f90;
}


.week-day-btn.weekend:hover {
    background-color: #bdc3c7;
    border-color: #7f8c8d;
}

.week-day-btn.weekend.current {
    background-color: #3498db;
    border-color: #2980b9;
}

.week-day-btn.weekend.today {
    background-color: #229954;
    border-color: #117864;
}

.week-day-btn.drag-over {
    background-color: #5DADE2;
    border-color: #3498db;
    color: white;
    transform: scale(1.05);
}

.today-nav-btn.drag-over {
    background-color: #229954 !important;
    border-color: #117864 !important;
    color: white !important;
}

.next-week-btn.drag-over {
    background-color: #b7700a !important;
    border-color: #a0640a !important;
    color: white !important;
}

.last-week-btn.drag-over {
    background-color: #b7700a !important;
    border-color: #a0640a !important;
    color: white !important;
}

.last-day-btn.drag-over {
    background-color: #7d3c98 !important;
    border-color: #6c3483 !important;
    color: white !important;
}

.next-day-btn.drag-over {
    background-color: #7d3c98 !important;
    border-color: #6c3483 !important;
    color: white !important;
}

.week-day-name {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    line-height: 1;
    margin-bottom: 4px;
}

.week-day-date {
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
    margin: 1px 0;
}

.week-day-month {
    font-size: 10px;
    line-height: 1;
    margin-top: 4px;
}

.main-layout {
    display: flex;
    gap: 15px;
    margin-top: 10px;
    margin-left: 70px;
    min-height: auto;
    height: calc(100vh - 40px);
    flex: 1;
    background-color: #f5f7fa;
    border-radius: 10px;
    padding: 10px;
    overflow-x: hidden; /* Prevent horizontal scrollbar during drag */
    overflow-y: visible;
}

.hidden {
    display: none !important;
}

.panel-header {
    text-align: center;
    margin-bottom: 20px;
    padding: 15px;
    background-color: #ecf0f1;
    border-radius: 10px;
}

.panel-header h2 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.5rem;
}

.panel-content {
    padding: 20px;
    text-align: center;
    color: #7f8c8d;
    font-style: italic;
}

.notes-info, .backburner-info {
    font-size: 12px;
    color: #7f8c8d;
    font-weight: normal;
    margin-top: 5px;
}

#notesPanel {
    width: 100% !important;
    max-width: none !important;
    flex: 1;
}

.notes-editor {
    height: calc(100vh - 60px);
    padding: 10px;
    width: 100%;
}

#notesTextarea {
    width: 100%;
    height: 100%;
    padding: 20px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 14px;
    line-height: 1.6;
    resize: none;
    outline: none;
    background-color: #fefefe;
    color: #2c3e50;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#notesTextarea:focus {
    border-color: #5DADE2;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1), 0 0 0 3px rgba(93, 173, 226, 0.1);
}

#notesTextarea::placeholder {
    color: #7f8f90;
    font-style: italic;
}

/* Whiteboard Styles */
#sketchPanel {
    width: 100% !important;
    max-width: none !important;
    height: calc(100vh - 60px);
    display: flex;
    flex-direction: column;
}

.whiteboard-toolbar {
    background-color: #ecf0f1;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 10px;
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.tool-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tool-group label {
    font-size: 12px;
    font-weight: 600;
    color: #2c3e50;
}

.tool-btn {
    background-color: #bdc3c7;
    border: none;
    border-radius: 6px;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    color: #2c3e50;
}

.tool-btn:hover {
    background-color: #7f8f90;
    transform: translateY(-1px);
}

.tool-btn.active {
    background-color: #5DADE2;
    color: white;
    box-shadow: 0 2px 4px rgba(93, 173, 226, 0.3);
}

.size-slider {
    width: 80px;
}

#sizeDisplay {
    font-size: 11px;
    color: #7f8c8d;
    min-width: 30px;
}

.color-palette {
    display: flex;
    gap: 4px;
}

.color-btn {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.color-btn:hover {
    transform: scale(1.1);
}

.color-btn.active {
    border-color: #2c3e50;
    box-shadow: 0 0 0 2px rgba(93, 173, 226, 0.3);
}

.whiteboard-container {
    flex: 1;
    background-color: white;
    border-radius: 8px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
}

#whiteboardCanvas {
    display: block;
    cursor: crosshair;
    background-color: white;
}

#whiteboardCanvas.eraser-cursor {
    cursor: grab;
}

.left-panel {
    /* Scale with window width, approximately matching center column width */
    flex: 1 1 280px;
    min-width: 250px;
    max-width: 350px;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.trash-panel {
    width: calc(100vw - 60px);
    height: 100vh;
    position: fixed;
    top: 0;
    left: 60px;
    z-index: 100;
    background-color: #f8f9fa;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.trash-panel .trash-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.center-section, .center-section-backburner {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-width: 600px;
    height: 100%;
    overflow-y: auto;
}

.right-panel {
    /* Keep right panel at a fixed comfortable width */
    flex: 0 0 270px;
    min-width: 250px;
    max-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    height: 100%;
    overflow-y: auto;
}

.input-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    background-color: #f8f9fa;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 10px;
    flex-shrink: 0;
}

.due-date-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.due-date-section label {
    font-size: 12px;
    color: #666;
    font-weight: 500;
}

.due-date-section input[type="date"] {
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background-color: white;
    width: 140px;
}

.date-priority-row {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: space-between;
}

.destination-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}

.destination-row label {
    font-size: 12px;
    color: #666;
    font-weight: 500;
    white-space: nowrap;
}

.destination-row select {
    flex: 1;
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background-color: white;
    cursor: pointer;
}

.priority-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #666;
    cursor: pointer;
    white-space: nowrap;
    margin-left: auto;
}

.priority-toggle input[type="checkbox"] {
    margin: 0;
    cursor: pointer;
}

.unsorted-pane {
    background-color: #5DADE2;
    border: 2px solid #3498db;
    border-radius: 10px;
    padding: 18px 12px;
    flex: 1;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Make misc items match kanban height in backburner panel */
#backburnerPanel .unsorted-pane {
    flex: 1;
    height: auto;
    display: flex;
    flex-direction: column;
}

#backburnerUnsortedItems {
    flex-grow: 1;
    overflow-y: auto;
    max-height: none;
    min-height: 0;
    padding-right: 8px;
}

.unsorted-pane h3 {
    margin: 0 0 15px 0;
    color: #f8f9fa;
    text-align: center;
    font-size: 20px;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
}

.daily-notes-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.daily-notes-textarea {
    width: 100%;
    flex: 1;
    padding: 10px;
    font-size: 14px;
    border: 2px solid #ddd;
    border-radius: 8px;
    resize: none;
    background-color: #ffffff;
    transition: border-color 0.3s ease;
    min-height: 100px;
    overflow-y: auto;
}

.daily-notes-textarea:focus {
    outline: none;
    border-color: #3498db;
}

.data-controls {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    margin-top: 6px;
}

.control-btn {
    padding: 14px 20px;
    font-size: 15px;
    background-color: #7f8f90;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    width: 100%;
    min-height: 50px;
}

.control-btn-small {
    padding: 8px 10px;
    font-size: 13px;
}

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

.new-section-btn {
    background-color: #7f8f90 !important;
}

.new-section-btn:hover {
    background-color: #8c9fa1 !important;
}

#todoInput, #backburnerInput {
    padding: 14px 14px;
    font-size: 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    width: 100%;
    outline: none;
    transition: all 0.3s ease;
    background-color: white;
    resize: none;
    min-height: 82px;
    font-family: inherit;
    line-height: 1.2;
    word-wrap: break-word;
    white-space: pre-wrap;
    overflow: hidden;
}

#todoInput:focus, #backburnerInput:focus {
    border-color: #5DADE2;
    box-shadow: 0 0 0 3px rgba(93, 173, 226, 0.1);
}

#addBtn, #addBackburnerBtn {
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 600;
    background-color: #5DADE2;
    border: 2px solid #3498db;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

#addBtn:hover, #addBackburnerBtn:hover {
    background-color: #3498db;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(93, 173, 226, 0.3);
}

.kanban-board {
    display: flex;
    flex-direction: column;
    flex: 1;
    margin-top: 0px;
    gap: 5px;
    position: relative;
    z-index: 10;
}

.column-headers {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
}

.column-header {
    text-align: center;
    padding-bottom: 6px;
    border-bottom: 3px solid #ecf0f1;
    font-size: 1.4rem;
    font-weight: bold;
    color: #2c3e50;
}

.column-header:nth-child(1) {
    color: #e74c3c;
}

.column-header:nth-child(2) {
    color: #f39c12;
}

.column-header:nth-child(3) {
    color: #27ae60;
}

.main-columns {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.column {
    background-color: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.12);
    min-height: 176px;
    position: relative;
    z-index: 10;
}

/* Section Styles */
.section-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 5px;
    margin-bottom: 10px;
    background-color: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid #5DADE2;
    padding: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    cursor: move;
    transition: all 0.3s ease;
}

/* Backburner sections with wider columns */
.center-section-backburner .section-row {
    grid-template-columns: 2fr 2fr 2fr;
    gap: 35px;
}

.section-row:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.section-row.dragging {
    opacity: 0.5;
    transform: rotate(2deg);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.section-header {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2px;
    padding: 4px 8px;
    border-bottom: 2px solid #e9ecef;
    border-radius: 6px;
    transition: background-color 0.2s ease;
    cursor: pointer;
}

.section-header:hover {
    background-color: #f8f9fa;
}

.section-header:active {
    background-color: #e9ecef;
}

.section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    background: none;
    border: none;
    outline: none;
    padding: 2px 4px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    flex: 1;
}

.section-title:hover {
    background-color: #dee2e6;
}

.section-title:focus {
    background-color: #dee2e6;
}


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

.section-delete-btn {
    background-color: #e74c3c;
    color: white;
    border: none;
    border-radius: 4px;
    width: 24px;
    height: 24px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.section-delete-btn:hover {
    background-color: #c0392b;
    transform: scale(1.1);
}

.section-move-btn {
    background-color: #5DADE2;
    color: white;
    border: none;
    border-radius: 4px;
    width: 24px;
    height: 24px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.section-move-btn:hover {
    background-color: #3498db;
    transform: scale(1.1);
}

.section-up-btn, .section-down-btn {
    background-color: #7f8f90;
    color: white;
    border: none;
    border-radius: 4px;
    width: 24px;
    height: 24px;
    font-size: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.section-up-btn:hover, .section-down-btn:hover {
    background-color: #7f8c8d;
    transform: scale(1.1);
}

.section-column {
    background-color: white;
    border-radius: 8px;
    min-height: 80px;
    border: 2px dashed #ddd;
    transition: border-color 0.3s ease;
    padding: 8px;
    display: flex;
    flex-direction: column;
}

.section-column.drag-over {
    border-color: #5DADE2;
    background-color: #ecf0f1;
}

.section-todo {
    border-left: 3px solid #e74c3c;
}

.section-in-progress {
    border-left: 3px solid #f39c12;
}

.section-done {
    border-left: 3px solid #27ae60;
}

.items {
    min-height: 96px;
    width: 100%;
    height: 100%;
    flex-grow: 1;
}

/* Auto-height scrolling for unsorted sections */
.unsorted-pane .items {
    flex-grow: 1;
    overflow-y: auto;
    max-height: none;
    min-height: 0;
    padding-right: 8px;
}

.todo-item {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 18px 90px 18px 12px;
    margin-bottom: 10px;
    cursor: move;
    transition: all 0.3s ease;
    position: relative;
    user-select: none;
    min-height: 48px;
    z-index: 1;
}

.todo-item.due-today {
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.todo-item.due-tomorrow {
    background-color: #fff3cd;
    border-color: #ffeaa7;
}

.todo-item.overdue {
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.todo-item.item-done {
    background-color: #d4edda !important;
    border-color: #c3e6cb !important;
}

/* High priority styling - must come after due date styles for proper precedence */
.todo-item.high-priority {
    background-color: #ffe6e6 !important;
    border-color: #ffb3b3 !important;
    font-weight: bold;
}

#doneColumn .todo-item.high-priority,
.section-done .todo-item.high-priority {
    background-color: #d4edda !important;
    border-color: #c3e6cb !important;
}

.due-now {
    color: #dc3545;
    font-weight: bold;
}

.edit-date-priority-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
    justify-content: space-between;
}

.edit-priority-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #666;
    cursor: pointer;
    white-space: nowrap;
    margin-left: auto;
}

.edit-priority-checkbox {
    margin: 0;
    cursor: pointer;
}

.item-count {
    font-size: 0.9em;
    color: #000000;
    font-weight: normal;
}

.tooltip {
    display: none;
    position: absolute;
    z-index: 999999;
    pointer-events: none;
}

.trash-item .tooltip,
.trash-column .tooltip {
    z-index: 9999999 !important;
}

.trash-item:hover .tooltip {
    z-index: 99999999 !important;
}


.tooltip-content {
    background-color: #2c3e50;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border: 1px solid #34495e;
}

.tooltip-date {
    font-weight: 600;
    margin-bottom: 2px;
}

.tooltip-time {
    font-size: 11px;
    opacity: 0.9;
    margin-bottom: 4px;
}

.tooltip-ago {
    font-size: 11px;
    color: #5DADE2;
    font-weight: 500;
}

.tooltip-section {
    font-size: 11px;
    color: #e67e22;
    font-weight: 500;
    font-style: italic;
    margin-top: 2px;
}

.tooltip-due-date {
    font-size: 11px;
    color: #e74c3c;
    font-weight: 500;
    margin-top: 2px;
}

.tooltip-due-date.due-today {
    color: #e74c3c;
    font-weight: 600;
}

.tooltip-due-date.due-tomorrow {
    color: #f39c12;
    font-weight: 600;
}

.tooltip-due-date.overdue {
    color: #e74c3c;
    font-weight: 600;
}

.tooltip-due-date.future {
    color: white;
    font-weight: 500;
}

.edit-container {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: calc(100% + 78px);
    margin-right: -78px;
}

.edit-text-input {
    width: 100%;
    padding: 4px 6px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    box-sizing: border-box;
    resize: none;
    overflow: hidden;
    min-height: 28px;
    line-height: 1.4;
}

.edit-date-input {
    width: 120px;
    padding: 4px 6px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 12px;
    font-family: inherit;
    box-sizing: border-box;
}

.edit-buttons {
    display: flex;
    gap: 4px;
    justify-content: flex-end;
}

.edit-save-btn, .edit-cancel-btn {
    padding: 2px 6px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
}

.edit-save-btn {
    background-color: #27ae60;
    color: white;
}

.edit-save-btn:hover {
    background-color: #219a52;
}

.edit-cancel-btn {
    background-color: #e74c3c;
    color: white;
}

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

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

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

.todo-text {
    font-size: 14px;
    line-height: 1.4;
    word-wrap: break-word;
    word-break: break-word;
    flex: 1;
    user-select: text;
    cursor: text;
    pointer-events: auto;
    width: 100%;
}

.item-actions {
    position: absolute;
    top: 5px;
    right: 5px;
    display: none;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 2px;
    width: 78px;
    z-index: 100;
}

.item-actions button {
    z-index: 100;
}

.trash-item .item-actions {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: 1fr;
    width: 52px;
    z-index: 50;
}

.trash-item .item-actions button {
    z-index: 50;
}

.todo-item:hover .item-actions {
    display: grid;
}

.edit-btn, .copy-new-btn, .move-btn, .create-section-btn, .delete-btn, .restore-btn, .backburner-btn, .todo-btn {
    border: none;
    border-radius: 4px;
    width: 24px;
    height: 24px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.edit-btn {
    background-color: #9b59b6;
    color: white;
}

.edit-btn:hover {
    background-color: #8e44ad;
    transform: scale(1.1);
}


.copy-new-btn {
    background-color: #e67e22;
    color: white;
}

.copy-new-btn:hover {
    background-color: #d35400;
    transform: scale(1.1);
}

.move-btn {
    background-color: #f39c12;
    color: white;
}

.move-btn:hover {
    background-color: #e67e22;
    transform: scale(1.1);
}

.create-section-btn {
    background-color: #27ae60;
    color: white;
}

.create-section-btn:hover {
    background-color: #229954;
    transform: scale(1.1);
}

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

.delete-btn:hover {
    background-color: #c0392b;
    transform: scale(1.1);
}
.restore-btn {
    background-color: #27ae60;
    color: white;
}
.restore-btn:hover {
    background-color: #229954;
    transform: scale(1.1);
}

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

.backburner-btn:hover {
    background-color: #c0392b;
    transform: scale(1.1);
}

.todo-btn {
    background-color: #3498db;
    color: white;
}

.todo-btn:hover {
    background-color: #2980b9;
    transform: scale(1.1);
}

.column.drag-over {
    background-color: #ecf0f1;
    border: 2px dashed #5DADE2;
}

/* Special hover indicator for returning items to main later bar */
.unsorted-pane.drag-over-later-return {
    background-color: #fff7ed;
    border: 3px dashed #f97316;
    box-shadow: 0 0 10px rgba(249, 115, 22, 0.3);
}

/* Mobile and tablet breakpoints */
@media (max-width: 1200px) {
    .center-section, .center-section-backburner {
        min-width: 500px;
    }
    .left-panel {
        flex: 0 0 220px;
        min-width: 200px;
    }
    
    /* Make trash columns smaller on medium screens */
    .trash-column {
        min-width: 220px;
        max-width: 260px;
        flex: 1 1 240px;
    }
    .right-panel {
        flex: 0 0 250px;
        min-width: 230px;
    }
}

@media (max-width: 768px) {
    .week-view {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    
    .week-buttons-section {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
    
    .info-section {
        min-width: 120px;
        padding: 10px 14px;
    }
    
    .date-display-only .week-info {
        font-size: 10px;
    }
    
    .date-display-only .relative-date-info {
        font-size: 14px;
    }
    
    .main-layout {
        flex-direction: column;
        gap: 15px;
        min-height: auto;
    }
    
    .left-panel {
        width: 100%;
    }
    
    /* Make trash columns even smaller on mobile */
    .trash-column {
        min-width: 180px;
        max-width: 220px;
        flex: 1 1 200px;
    }
    
    .trash-columns {
        gap: 8px;
        padding: 15px;
    }
    
    .right-section {
        width: 100%;
    }
    
    .unsorted-pane {
        min-height: 200px;
        flex: none;
    }
    
    .week-buttons {
        justify-content: center;
    }
    
    .main-columns {
        grid-template-columns: 1fr;
    }
    
    .column-headers {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .section-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .date-navigation {
        flex-direction: column;
        gap: 8px;
    }
    
    .data-controls {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 5px;
    }
    
    .control-btn {
        flex: 1;
        min-width: 120px;
        font-size: 20px;
        padding: 10px 20px;
    }
    
    /* Stack data management columns on mobile */
    .data-management-columns {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

.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: white;
    margin: 10% auto;
    padding: 0;
    border-radius: 12px;
    width: 400px;
    max-width: 90%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #ecf0f1;
}

.modal-header h3 {
    margin: 0;
    color: #2c3e50;
}

.close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.close:hover {
    color: #333;
}

.calendar-container {
    padding: 20px;
}

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

.calendar-nav span {
    font-weight: 600;
    font-size: 14px;
    color: #2c3e50;
}

.month-year-clickable {
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background-color 0.2s;
    user-select: none;
}

.month-year-clickable:hover {
    background-color: #f0f0f0;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.calendar-header {
    text-align: center;
    font-weight: 600;
    color: #7f8c8d;
    padding: 6px 2px;
    font-size: 10px;
}

.calendar-day {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    padding: 8px 4px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 12px;
    min-height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.calendar-day:hover {
    background-color: #e3f2fd;
}

.calendar-day.other-month {
    color: #bdc3c7;
    background-color: #f8f9fa;
}

.calendar-day.selected {
    background-color: #5DADE2 !important;
    color: white !important;
}

.calendar-day.selected.has-todo-items,
.calendar-day.selected.has-progress-items,
.calendar-day.selected.has-done-items {
    background-color: #5DADE2 !important;
    color: white !important;
    border-color: #3498db !important;
}

.calendar-day.today {
    background-color: #27ae60 !important;
    color: white !important;
    font-weight: 600;
}

.calendar-day.today.has-todo-items,
.calendar-day.today.has-progress-items,
.calendar-day.today.has-done-items {
    background-color: #27ae60 !important;
    color: white !important;
    border-color: #229954 !important;
    font-weight: 600;
}

.calendar-day.drag-over {
    background-color: #5DADE2;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(93, 173, 226, 0.3);
}

.calendar-day.has-todo-items {
    background-color: #ffcdd2 !important;
    border-color: #f8bbd9 !important;
}

.calendar-day.has-progress-items {
    background-color: #ffecb3 !important;
    border-color: #ffe082 !important;
}

.calendar-day.has-done-items {
    background-color: #c8e6c9 !important;
    border-color: #a5d6a7 !important;
}

.calendar-day.has-todo-items:hover {
    background-color: #ffb3ba !important;
}

.calendar-day.has-progress-items:hover {
    background-color: #ffe082 !important;
}

.calendar-day.has-done-items:hover {
    background-color: #a5d6a7 !important;
}

.feedback-message {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #27ae60;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    z-index: 1001;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.feedback-message.show {
    transform: translateX(0);
    opacity: 1;
}

.edit-input {
    width: 100%;
    padding: 8px 12px;
    font-size: 14px;
    border: 2px solid #5DADE2;
    border-radius: 4px;
    outline: none;
    background-color: white;
    font-family: inherit;
    line-height: 1.4;
}

/* Wiki Panel Styles */
.wiki-panel {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ecf0f1;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.wiki-container {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.wiki-header {
    padding: 20px;
    border-bottom: 1px solid #e0e6ed;
    background-color: #f8f9fa;
    display: flex;
    justify-content: center;
    align-items: center;
}

.wiki-buttons {
    display: flex;
    gap: 20px;
}

.wiki-control-btn {
    padding: 12px 24px;
    font-size: 16px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    min-width: 160px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.wiki-control-btn:hover {
    background-color: #2980b9;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.wiki-control-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.wiki-content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background-color: #ffffff;
    line-height: 1.6;
}

.wiki-content-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Markdown styling for wiki content */
.wiki-content-inner h1,
.wiki-content-inner h2,
.wiki-content-inner h3,
.wiki-content-inner h4,
.wiki-content-inner h5,
.wiki-content-inner h6 {
    margin: 20px 0 10px 0;
    color: #2c3e50;
    font-weight: 600;
}

.wiki-content-inner h1 {
    font-size: 2em;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
}

.wiki-content-inner h2 {
    font-size: 1.5em;
    border-bottom: 1px solid #bdc3c7;
    padding-bottom: 5px;
}

.wiki-content-inner h3 {
    font-size: 1.2em;
}

.wiki-content-inner p {
    margin: 10px 0;
    color: #34495e;
}

.wiki-content-inner ul,
.wiki-content-inner ol {
    margin: 10px 0;
}

.wiki-content-inner li {
    margin: 5px 0;
    color: #34495e;
}

.wiki-content-inner code {
    background-color: #f4f4f4;
    padding: 2px 4px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.wiki-content-inner pre {
    background-color: #f4f4f4;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    margin: 10px 0;
}

.wiki-content-inner pre code {
    background: none;
    padding: 0;
}

.wiki-content-inner blockquote {
    border-left: 4px solid #3498db;
    padding-left: 15px;
    margin: 10px 0;
    color: #7f8c8d;
    font-style: italic;
}

.wiki-content-inner table {
    border-collapse: collapse;
    width: 100%;
    margin: 10px 0;
}

.wiki-content-inner th,
.wiki-content-inner td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

.wiki-content-inner th {
    background-color: #f2f2f2;
    font-weight: 600;
}

.wiki-content-inner a {
    color: #3498db;
    text-decoration: none;
}

.wiki-content-inner a:hover {
    text-decoration: underline;
}

.wiki-content-inner strong {
    color: #2c3e50;
    font-weight: 600;
}

.wiki-content-inner em {
    color: #7f8c8d;
    font-style: italic;
}

/* Settings Panel Styles */
.settings-panel {
    position: absolute;
    top: 0;
    left: 70px; /* Account for left navigation bar */
    right: 0;
    bottom: 0;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.settings-container {
    padding: 15px;
    height: 100vh;
    overflow-y: hidden;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
}

.settings-header {
    margin-bottom: 15px;
    border-bottom: 2px solid #ecf0f1;
    padding-bottom: 8px;
    flex-shrink: 0;
}

.settings-header h2 {
    color: #2c3e50;
    font-size: 20px;
    margin: 0;
}

.settings-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0 15px 20px 15px;
    overflow-y: auto;
    max-height: calc(100vh - 80px);
}

/* Settings top row layout */
.settings-top-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.settings-section {
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #3498db;
    display: flex;
    flex-direction: column;
}

.settings-box {
    min-height: 400px;
}

/* Changelog section - fills remaining space */
.changelog-section {
    flex: 1;
    min-height: 700px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}


/* Data Management sub-columns */
.data-management-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.data-management-left,
.data-management-right {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Changelog specific styling */
.changelog-display {
    width: 100%;
    font-size: 14px;
    line-height: 1.5;
}

.changelog-display strong {
    color: #2c3e50;
}

.changelog-entries ul {
    margin: 5px 0;
    padding-left: 30px;
}

.changelog-entries li {
    margin: 3px 0;
}

.changelog-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    overflow-y: auto;
    max-height: 100%;
    position: relative;
}

/* Statistics section styling */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 8px;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
}

.stat-number {
    font-size: 24px;
    font-weight: 700;
    color: #3498db;
    line-height: 1;
}

/* Color coding for different stat types */
#statsNewItems {
    color: #3498db; /* Blue for new items */
}

#statsMiscItems {
    color: #f39c12; /* Brighter orange for backburner items */
}

#statsTodoItems {
    color: #c0392b; /* Darker red for todo items */
}

#statsInProgressItems {
    color: #ffde59; /* Orange-yellow for in progress */
}

#statsDoneItems {
    color: #27ae60; /* Green for done */
}

#statsTrashItems {
    color: #7f8c8d; /* Grey for trash */
}

/* Color coding for stat item containers using specific classes */
.stat-item.stat-new-items {
    background-color: rgba(52, 152, 219, 0.2);
    border-color: rgba(52, 152, 219, 0.2);
}

.stat-item.stat-misc-items {
    background-color: rgba(243, 156, 18, 0.2);
    border-color: rgba(243, 156, 18, 0.2);
}

.stat-item.stat-todo-items {
    background-color: rgba(192, 57, 43, 0.2);
    border-color: rgba(192, 57, 43, 0.2);
}

.stat-item.stat-in-progress-items {
    background-color: rgba(255, 236, 161, 0.2);
    border-color: rgba(255, 236, 161, 0.2);
}

.stat-item.stat-done-items {
    background-color: rgba(39, 174, 96, 0.2);
    border-color: rgba(39, 174, 96, 0.2);
}

.stat-item.stat-trash-items {
    background-color: rgba(127, 140, 141, 0.2);
    border-color: rgba(127, 140, 141, 0.2);
}

.stat-label {
    font-size: 11px;
    color: #6c757d;
    margin-top: 4px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.settings-section h3 {
    color: #2c3e50;
    font-size: 16px;
    margin: 0 0 6px 0;
    font-weight: 600;
    flex-shrink: 0;
}

.setting-item {
    margin-bottom: 12px;
}

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

.setting-label {
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: 500;
    color: #2c3e50;
    cursor: pointer;
    margin-bottom: 5px;
}

.setting-label input[type="checkbox"] {
    margin-right: 8px;
    transform: scale(1.2);
}

.setting-label select {
    margin-left: 10px;
    padding: 4px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
}

.setting-description {
    font-size: 11px;
    color: #7f8c8d;
    margin: 3px 0 0 0;
    line-height: 1.3;
}

/* Add proper spacing after label buttons */
label.settings-btn + .setting-description {
    margin-top: 8px;
}

.settings-btn, label.settings-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #3498db;
    color: white;
    margin-right: 8px;
    margin-bottom: 8px;
    display: inline-block;
}

.settings-btn:hover, label.settings-btn:hover {
    background-color: #2980b9;
    transform: translateY(-1px);
}

.danger-btn {
    background-color: #e74c3c !important;
}

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

/* Recurring Tasks Styles */
.recurring-form-section {
    padding: 20px;
    background: white;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    flex: 1;
    height: 100%;
    overflow-y: auto;
}

.recurring-form-section h3 {
    margin-bottom: 20px;
    color: #2c3e50;
    font-size: 18px;
}

.recurring-input-section textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.3s ease;
    margin-bottom: 15px;
    min-height: 300px;
}

.recurring-input-section textarea:focus {
    outline: none;
    border-color: #3498db;
}

.recurring-frequency-section {
    margin-bottom: 15px;
}

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

.recurring-frequency-section select {
    width: 100%;
    padding: 10px;
    border: 2px solid #e1e8ed;
    border-radius: 6px;
    font-size: 14px;
    background-color: white;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.recurring-frequency-section select:focus {
    outline: none;
    border-color: #3498db;
}

.frequency-details {
    margin-bottom: 15px;
}

.frequency-option {
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.frequency-option.hidden {
    display: none;
}

.frequency-option label {
    font-weight: 500;
    color: #2c3e50;
}

.frequency-option input[type="number"],
.frequency-option select {
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.due-date-offset-section {
    margin-bottom: 15px;
    padding: 10px;
    background-color: #f1f2f6;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.due-date-offset-section label {
    font-weight: 500;
    color: #2c3e50;
}

.due-date-offset-section input {
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    width: 60px;
}

.date-range-section {
    margin-bottom: 15px;
}

.date-range-row {
    display: flex;
    gap: 15px;
}

.date-input-group {
    flex: 1;
}

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

.date-input-group input[type="date"] {
    width: 100%;
    padding: 10px;
    border: 2px solid #e1e8ed;
    border-radius: 6px;
    font-size: 14px;
    background-color: white;
    transition: border-color 0.3s ease;
}

.date-input-group input[type="date"]:focus {
    outline: none;
    border-color: #3498db;
}

.priority-section {
    margin-bottom: 20px;
    padding: 10px;
    background-color: #fff5f5;
    border-radius: 6px;
}

.recurring-btn {
    width: 100%;
    padding: 12px 20px;
    background-color: #27ae60;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.recurring-btn:hover {
    background-color: #219a52;
    transform: translateY(-1px);
}

/* Recurring Tasks Management */
.center-section-recurring {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin: 10px;
    overflow-y: auto;
    flex: 1;
    min-width: auto;
}

/* Full-page layout for recurring tasks */
#recurringPanel {
    width: 400px;
    height: calc(100vh - 60px);
    flex-shrink: 0;
}

.recurring-management-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f1f2f6;
}

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

.recurring-danger-btn {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.3s ease, transform 0.1s ease;
}

.recurring-danger-btn:hover {
    background-color: #c0392b;
    transform: translateY(-1px);
}

.recurring-danger-btn:active {
    transform: translateY(0);
}

.recurring-management-header h3 {
    color: #2c3e50;
    font-size: 20px;
}

.recurring-count {
    background-color: #3498db;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.recurring-warning {
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    border-radius: 4px;
    padding: 12px;
    margin-bottom: 20px;
    color: #856404;
}

.recurring-warning p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

.recurring-tasks-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.recurring-task-item {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    transition: all 0.3s ease;
}

.recurring-task-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.recurring-task-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.recurring-task-text {
    font-weight: 600;
    color: #2c3e50;
    flex: 1;
    margin-right: 15px;
}

.recurring-task-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.recurring-task-id {
    font-size: 11px;
    font-weight: 500;
    color: #7f8c8d;
    background: #ecf0f1;
    padding: 4px 8px;
    border-radius: 12px;
    white-space: nowrap;
}

.recurring-task-actions {
    display: flex;
    gap: 8px;
}

.recurring-task-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.edit-recurring-btn {
    background-color: #3498db;
    color: white;
}

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

.delete-recurring-btn {
    background-color: #e74c3c;
    color: white;
}

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

.recurring-task-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #dee2e6;
}

.recurring-detail {
    background-color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
}

.recurring-detail-label {
    font-weight: 600;
    color: #6c757d;
    margin-right: 5px;
}

.recurring-detail-value {
    color: #495057;
}

/* Recurring task indicator wrapper - positions indicator at top left with negative margin */
.recurring-indicator-wrapper {
    position: absolute;
    top: -12px;
    left: -14px;
    z-index: 5;
    pointer-events: none;
}

/* Recurring task indicator on todo items */
.recurring-indicator {
    display: inline-block;
    width: 30px;
    height: 30px;
    position: relative;
    cursor: help;
    pointer-events: all;
}

/* Bold recurring indicator for urgent items */
.item[data-high-priority="true"] .recurring-indicator {
    width: 30px;
    height: 30px;
    background-color: #e74c3c;
    border-radius: 50%;
    border: 4px solid #c0392b;
    box-shadow: 0 0 0 2px #fff, 0 0 8px rgba(231, 76, 60, 0.5);
}

.recurring-indicator::before {
    content: "🔄";
    position: absolute;
    top: 0px;
    left: 0px;
    font-size: 20px;
    line-height: 30px;
    width: 30px;
    height: 30px;
    text-align: center;
    font-weight: normal;
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", "Segoe UI Symbol", sans-serif;
}

/* Bold emoji for urgent recurring items with red background */
.item[data-high-priority="true"] .recurring-indicator::before {
    font-size: 18px;
    line-height: 30px;
    width: 30px;
    height: 30px;
    font-weight: 900;
    color: white;
    filter: drop-shadow(1px 1px 2px rgba(0,0,0,0.8));
}

/* Make todo item border thicker/bolder for urgent items */
.todo-item.high-priority {
    border-width: 3px !important;
}

.recurring-tooltip {
    position: absolute;
    background-color: #2c3e50;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    transform: translateY(-100%);
    margin-top: -10px;
}

/* Search Panel Styles */
.search-panel {
    position: absolute;
    top: 0;
    left: 70px; /* Account for left navigation bar */
    right: 0;
    bottom: 0;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.search-container {
    padding: 15px;
    height: 100vh;
    overflow-y: hidden;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
}

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

.search-section {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.search-input-section {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 15px;
}

.search-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 16px;
    background-color: white;
    transition: border-color 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.search-btn {
    padding: 12px 20px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 80px;
}

.search-btn:hover {
    background-color: #2980b9;
    transform: translateY(-1px);
}

.search-stats-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.search-stats {
    color: #7f8c8d;
    font-size: 14px;
    flex-shrink: 0;
}

.search-filters {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
}

.search-filter-item {
    display: flex;
    align-items: center;
}

.search-filter-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #2c3e50;
    user-select: none;
}

.search-filter-label input[type="checkbox"] {
    margin: 0;
    cursor: pointer;
}

.search-filter-text {
    font-weight: 500;
}

.search-results-section {
    margin-top: 10px;
}

.search-results {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.search-result-item {
    background: white;
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    padding: 15px;
    transition: all 0.3s ease;
}

.search-result-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.search-result-text {
    font-size: 16px;
    color: #2c3e50;
    margin-bottom: 10px;
    line-height: 1.4;
}

.search-result-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 12px;
    color: #7f8c8d;
}

.search-result-meta span {
    background: #ecf0f1;
    padding: 3px 8px;
    border-radius: 4px;
}

.search-result-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.search-action-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.search-action-btn:hover {
    transform: translateY(-1px);
}

.search-action-nav {
    background-color: #3498db;
    color: white;
}

.search-action-nav:hover {
    background-color: #2980b9;
}

.search-action-add {
    background-color: #27ae60;
    color: white;
}

.search-action-add:hover {
    background-color: #219a52;
}

.search-action-backburner {
    background-color: #f39c12;
    color: white;
}

.search-action-backburner:hover {
    background-color: #d68910;
}

.search-highlight {
    background-color: #fff3cd;
    font-weight: bold;
}

/* Pomodoro Timer Styles */
.pomodoro-container {
    text-align: center;
    padding: 20px;
}

.pomodoro-timer {
    font-size: 48px;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 10px;
    font-family: 'Courier New', monospace;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.pomodoro-status {
    font-size: 18px;
    color: #7f8c8d;
    margin-bottom: 5px;
    font-weight: 500;
}

.pomodoro-session {
    font-size: 14px;
    color: #95a5a6;
    margin-bottom: 20px;
}

.pomodoro-controls {
    justify-content: right;
    gap: 10px;
    flex-wrap: wrap;
}

.pomodoro-btn {
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.pomodoro-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.pomodoro-btn:active:not(:disabled) {
    transform: translateY(0);
}

.pomodoro-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.pomodoro-start {
    background-color: #27ae60;
    color: white;
}

.pomodoro-start:hover:not(:disabled) {
    background-color: #219a52;
}

.pomodoro-pause {
    background-color: #f39c12;
    color: white;
}

.pomodoro-pause:hover:not(:disabled) {
    background-color: #d68910;
}

.pomodoro-stop {
    background-color: #e74c3c;
    color: white;
}

.pomodoro-stop:hover:not(:disabled) {
    background-color: #c0392b;
}

.pomodoro-skip {
    background-color: #3498db;
    color: white;
}

.pomodoro-skip:hover:not(:disabled) {
    background-color: #2980b9;
}

.pomodoro-settings {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    text-align: left;
    border-top: 2px solid #ecf0f1;
    padding-top: 20px;
}

.pomodoro-setting {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* Override for settings inline layout */
.pomodoro-settings-inline .pomodoro-setting {
    flex-direction: row !important;
}

.pomodoro-setting label {
    font-size: 13px;
    font-weight: 600;
    color: #34495e;
}

.pomodoro-setting input[type="number"] {
    padding: 8px 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.pomodoro-setting input[type="number"]:focus {
    border-color: #3498db;
    outline: none;
}

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

.pomodoro-active {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.pomodoro-timer.work-mode {
    color: #27ae60;
}

.pomodoro-timer.break-mode {
    color: #3498db;
}

.pomodoro-timer.long-break-mode {
    color: #9b59b6;
}

/* Pomodoro Completion Overlay */
.pomodoro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease-in-out;
}

.pomodoro-overlay.hidden {
    display: none;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.pomodoro-completion-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 60px;
    border-radius: 20px;
    text-align: center;
    color: white;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    animation: scaleIn 0.3s ease-in-out;
}

@keyframes scaleIn {
    from { transform: scale(0.8); }
    to { transform: scale(1); }
}

.pomodoro-completion-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 700;
}

.pomodoro-completion-content p {
    font-size: 24px;
    margin-bottom: 40px;
    opacity: 0.9;
}

.pomodoro-completion-btn {
    background-color: white;
    color: #667eea;
    border: none;
    padding: 15px 40px;
    font-size: 20px;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.pomodoro-completion-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* General settings alignment */
.settings-box h3 {
    text-align: left;
}

.settings-box .setting-item {
    text-align: left;
    margin-bottom: 15px;
}

.settings-box .setting-item .setting-label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    color: #2c3e50;
}

.settings-box .setting-control-row {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 5px;
}

.settings-box .setting-control-row select,
.settings-box .setting-control-row input {
    flex-shrink: 0;
    min-width: 200px;
}

.settings-box .setting-description {
    flex: 1;
    margin: 0;
    font-size: 13px;
    color: #7f8c8d;
    line-height: 1.4;
}

/* Pomodoro settings inline layout */
.pomodoro-settings-inline {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 10px;
}

.pomodoro-settings-inline .pomodoro-setting {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pomodoro-settings-inline .pomodoro-setting label {
    font-size: 12px;
    font-weight: 600;
    color: #34495e;
    white-space: nowrap;
    min-width: fit-content;
}

.pomodoro-settings-inline .pomodoro-setting input[type="number"] {
    width: 60px;
    height: 40px;
    padding: 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 12px;
    text-align: center;
}

.pomodoro-settings-inline .pomodoro-setting input[type="checkbox"] {
    margin-right: 5px;
}

.pomodoro-settings-inline .pomodoro-setting .setting-label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    margin: 0;
}

/* Panel visibility controls */
.panel-visibility-controls {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.panel-visibility-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    margin: 0;
}

.panel-visibility-item input[type="checkbox"] {
    margin: 0;
}

/* Compact pomodoro UI for todo panel */
.right-panel .pomodoro-container {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 6px 8px 2px 8px;
    margin: 2px 0;
    border: 1px solid #e1e8ed;
}

.right-panel .pomodoro-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    line-height: 1;
    margin: 0;
    height: 24px;
}

.right-panel .pomodoro-info {
    display: flex;
    align-items: baseline;
    gap: 8px;
    height: 24px;
}

.right-panel .pomodoro-mode-text {
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
    line-height: 1;
    vertical-align: baseline;
}

.right-panel .pomodoro-timer {
    font-weight: 700;
    color: #2c3e50;
    font-size: 14px;
    line-height: 1;
    vertical-align: baseline;
}

.right-panel .pomodoro-session {
    font-size: 14px;
    color: #7f8c8d;
    font-weight: 500;
    line-height: 1;
    vertical-align: baseline;
}

.right-panel .pomodoro-controls {
    display: flex;
    gap: 4px;
}

.right-panel .pomodoro-btn {
    width: 20px;
    height: 20px;
    border-radius: 2px;
    border: none;
    font-size: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.right-panel .pomodoro-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.right-panel .pomodoro-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.right-panel .pomodoro-start {
    background-color: #27ae60;
    color: white;
}

.right-panel .pomodoro-pause {
    background-color: #f39c12;
    color: white;
}

.right-panel .pomodoro-stop {
    background-color: #e74c3c;
    color: white;
}

.right-panel .pomodoro-skip {
    background-color: #3498db;
    color: white;
}

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

.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: #ccc;
    transition: .4s;
    border-radius: 24px;
}

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

input:checked + .toggle-slider {
    background-color: #3498db;
}

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

/* Dark Mode Styles */
body.dark-mode {
    background-color: #1a1a1a;
    color: #e0e0e0;
}

/* Container and main layout */
body.dark-mode .container {
    background-color: #1a1a1a;
}

body.dark-mode .main-layout {
    background-color: #1a1a1a;
}

/* Dark mode links */
body.dark-mode .todo-link {
    color: #5DADE2;
}

body.dark-mode .todo-link:hover {
    color: #3498db;
}

/* Navigation sidebar */
body.dark-mode .nav-sidebar {
    background-color: #2d2d2d;
    border-right: 1px solid #444;
}

body.dark-mode .nav-sidebar-btn {
    background-color: #3a3a3a;
    color: #e0e0e0;
    border: 1px solid #555;
}

body.dark-mode .nav-sidebar-btn:hover {
    background-color: #4a4a4a;
    border-color: #666;
}

body.dark-mode .nav-sidebar-btn.active {
    background-color: #3498db;
    color: white;
}

/* Panels */
body.dark-mode .left-panel,
body.dark-mode .center-section,
body.dark-mode .center-section-backburner,
body.dark-mode .right-panel {
    background-color: #2d2d2d;
    border: 1px solid #444;
}

/* Input sections */
body.dark-mode textarea,
body.dark-mode input[type="text"],
body.dark-mode input[type="date"],
body.dark-mode input[type="number"],
body.dark-mode select {
    background-color: #3a3a3a;
    color: #e0e0e0;
    border: 1px solid #555;
}

body.dark-mode textarea::placeholder,
body.dark-mode input::placeholder {
    color: #999;
}

/* Buttons */
body.dark-mode button:not(.nav-sidebar-btn):not(.pomodoro-btn) {
    background-color: #3a3a3a;
    color: #e0e0e0;
    border: 1px solid #555;
}

body.dark-mode button:not(.nav-sidebar-btn):not(.pomodoro-btn):hover {
    background-color: #4a4a4a;
    border-color: #666;
}

/* Todo items */
body.dark-mode .todo-item {
    background-color: #3a3a3a;
    border: 1px solid #555;
    color: #e0e0e0;
}

body.dark-mode .todo-item.high-priority {
    border-color: #e74c3c;
    box-shadow: 0 0 5px rgba(231, 76, 60, 0.3);
}

body.dark-mode .todo-item.completed {
    background-color: #2d4a2d;
    border-color: #4a7c59;
}

/* Unsorted pane */
body.dark-mode .unsorted-pane {
    background-color: #2c3e50;
    border: 2px solid #3498db;
}

/* Column headers */
body.dark-mode .column-header {
    background-color: #3a3a3a;
    color: #e0e0e0;
    border-bottom: 1px solid #555;
}

/* Sections */
body.dark-mode .section-row {
    background-color: #2d2d2d;
    border: 1px solid #444;
}

body.dark-mode .section-header {
    background-color: #3a3a3a;
    border-bottom: 1px solid #555;
}

body.dark-mode .section-title {
    background-color: transparent;
    color: #e0e0e0;
    border: none;
}

/* Week buttons */
body.dark-mode .week-day-btn {
    background-color: #3a3a3a;
    color: #e0e0e0;
    border: 1px solid #555;
}

body.dark-mode .week-day-btn:hover {
    background-color: #4a4a4a;
}

body.dark-mode .week-day-btn.selected {
    background-color: #3498db;
    color: white;
}

/* Calendar */
body.dark-mode .calendar-grid {
    background-color: #2d2d2d;
}

body.dark-mode .calendar-day {
    background-color: #3a3a3a;
    color: #e0e0e0;
    border: 1px solid #555;
}

body.dark-mode .calendar-day:hover {
    background-color: #4a4a4a;
}

body.dark-mode .calendar-day.today {
    background-color: #3498db;
    color: white;
}

/* Settings panel */
body.dark-mode .settings-panel,
body.dark-mode .settings-container {
    background-color: #2d2d2d;
}

body.dark-mode .settings-box {
    background-color: #3a3a3a;
    border: 1px solid #555;
}

body.dark-mode .settings-header h2 {
    color: #e0e0e0;
}

body.dark-mode .setting-label {
    color: #e0e0e0;
}

body.dark-mode .setting-description {
    color: #999;
}

/* Statistics */
body.dark-mode .stat-item {
    background-color: #3a3a3a;
    border: 1px solid #555;
}

body.dark-mode .stat-number {
    color: #3498db;
}

body.dark-mode .stat-label {
    color: #e0e0e0;
}

/* Notes panel */
body.dark-mode .notes-panel {
    background-color: #2d2d2d;
}

body.dark-mode .notes-editor {
    background-color: #3a3a3a;
}

body.dark-mode #notesTextarea {
    background-color: #3a3a3a;
    color: #e0e0e0;
    border: 1px solid #555;
}

/* Sketch panel */
body.dark-mode .sketch-panel {
    background-color: #2d2d2d;
}

body.dark-mode .whiteboard-container {
    background-color: #3a3a3a;
    border: 1px solid #555;
}

/* Wiki panel */
body.dark-mode .wiki-panel {
    background-color: #2d2d2d;
}

body.dark-mode .wiki-content {
    background-color: #3a3a3a;
    color: #e0e0e0;
}

/* Trash panel */
body.dark-mode .trash-panel {
    background-color: #2d2d2d;
}

body.dark-mode .trash-item {
    background-color: #3a3a3a;
    border: 1px solid #555;
    color: #e0e0e0;
}

/* Pomodoro in dark mode */
body.dark-mode .pomodoro-container {
    background-color: #3a3a3a;
    border: 1px solid #555;
}

body.dark-mode .pomodoro-timer {
    color: #e0e0e0;
}

body.dark-mode .pomodoro-status {
    color: #999;
}

/* Tooltips in dark mode */
body.dark-mode .tooltip {
    background-color: #1a1a1a;
    color: #e0e0e0;
    border: 1px solid #555;
}

body.dark-mode .tooltip-content {
    background-color: #2d2d2d;
    color: #e0e0e0;
    border: 1px solid #555;
}

/* Modal in dark mode */
body.dark-mode .modal-content {
    background-color: #2d2d2d;
    border: 1px solid #444;
}

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

body.dark-mode .modal-header h3 {
    color: #e0e0e0;
}

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

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

/* Feedback messages in dark mode */
body.dark-mode .feedback-message {
    background-color: #27ae60;
    color: white;
    border: 1px solid #2ecc71;
}

/* Calendar in dark mode (additional styles) */
body.dark-mode .calendar-container {
    background-color: #2d2d2d;
}

body.dark-mode .nav-btn {
    background-color: #3a3a3a;
    color: #e0e0e0;
    border: 1px solid #555;
}

body.dark-mode .nav-btn:hover {
    background-color: #4a4a4a;
}

body.dark-mode .month-year-clickable {
    color: #e0e0e0;
}

/* Recurring tasks in dark mode */
body.dark-mode .recurring-form-section,
body.dark-mode .center-section-recurring {
    background-color: #2d2d2d;
    border: 1px solid #444;
}

body.dark-mode .recurring-management-header h3 {
    color: #e0e0e0;
}

body.dark-mode .recurring-tooltip {
    background-color: #2d2d2d;
    color: #e0e0e0;
    border: 1px solid #555;
}

body.dark-mode .danger-btn,
body.dark-mode .recurring-danger-btn {
    background-color: #e74c3c;
    color: white;
}

body.dark-mode .danger-btn:hover,
body.dark-mode .recurring-danger-btn:hover {
    background-color: #c0392b;
}

/* Settings buttons in dark mode */
body.dark-mode .settings-btn {
    background-color: #3498db;
    color: white;
    border: none;
}

body.dark-mode .settings-btn:hover {
    background-color: #2980b9;
}

/* Search panel in dark mode */
body.dark-mode .search-panel,
body.dark-mode .search-container {
    background-color: #2d2d2d;
}

body.dark-mode .search-input {
    background-color: #3a3a3a;
    color: #e0e0e0;
    border: 2px solid #555;
}

body.dark-mode .search-results {
    background-color: #3a3a3a;
    border: 1px solid #555;
}


body.dark-mode .search-filter-label {
    color: #e0e0e0;
}

body.dark-mode .search-section {
    background: #3a3a3a;
    border: 1px solid #555;
}

/* Edit input in dark mode */
body.dark-mode .edit-input {
    background-color: #3a3a3a;
    color: #e0e0e0;
    border: 1px solid #555;
}

/* Pomodoro overlay in dark mode */
body.dark-mode .pomodoro-overlay {
    background-color: rgba(0, 0, 0, 0.8);
}

body.dark-mode .pomodoro-completion-content {
    background: linear-gradient(135deg, #444 0%, #666 100%);
    color: #e0e0e0;
}

body.dark-mode .pomodoro-completion-btn {
    background-color: #3498db;
    color: white;
}

body.dark-mode .pomodoro-completion-btn:hover {
    background-color: #2980b9;
}

/* Input file labels in dark mode */
body.dark-mode input[type="file"] {
    background-color: #3a3a3a;
    color: #e0e0e0;
}

/* Toggle switch in dark mode */
body.dark-mode .toggle-slider {
    background-color: #555;
}

body.dark-mode input:checked + .toggle-slider {
    background-color: #3498db;
}

/* Additional form elements */
body.dark-mode input[type="checkbox"],
body.dark-mode input[type="radio"] {
    background-color: #3a3a3a;
    border: 1px solid #555;
}

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

/* Additional white elements that need dark mode fixes */
body.dark-mode .inline-calendar {
    background-color: #2d2d2d;
    border: 1px solid #444;
}

body.dark-mode .whiteboard-container {
    background-color: #3a3a3a;
    border: 1px solid #555;
}

body.dark-mode .whiteboard-canvas {
    background-color: #3a3a3a;
}

body.dark-mode .column {
    background-color: #3a3a3a;
    border: 1px solid #555;
}

body.dark-mode .section-column {
    background-color: #3a3a3a;
    border: 1px solid #555;
}

body.dark-mode .wiki-content {
    background-color: #3a3a3a;
}

body.dark-mode .search-result-item {
    background-color: #3a3a3a;
    border: 1px solid #555;
    color: #e0e0e0;
}

body.dark-mode .recurring-form-section {
    background-color: #3a3a3a;
    border: 1px solid #555;
}

body.dark-mode .recurring-detail {
    background-color: #3a3a3a;
    border: 1px solid #555;
    color: #e0e0e0;
}

body.dark-mode .center-section-recurring {
    background-color: #2d2d2d;
    border: 1px solid #444;
}

/* Color input styling in dark mode */
body.dark-mode input[type="color"] {
    background-color: #3a3a3a;
    border: 1px solid #555;
}

/* Enhanced responsive layout for larger screens */
/* Responsive breakpoints for different screen sizes */
@media (min-width: 1600px) {
    .left-panel {
        flex: 1 1 300px;
        max-width: 380px;
    }
    .right-panel {
        flex: 0 0 300px;
    }
    .center-section, .center-section-backburner {
        min-width: 700px;
    }
    .week-day-btn {
        width: 70px;
        height: 70px;
        font-size: 12px;
    }
    .week-buttons-section {
        gap: 8px;
    }
    .week-buttons {
        gap: 8px;
        margin-left: 30px;
        margin-right: 30px;
    }
}

@media (min-width: 1920px) {
    .left-panel {
        flex: 1 1 320px;
        max-width: 400px;
    }
    .right-panel {
        flex: 0 0 320px;
    }
    .center-section, .center-section-backburner {
        min-width: 800px;
    }
    .main-layout {
        gap: 20px;
    }
    .week-day-btn {
        width: 75px;
        height: 75px;
        font-size: 13px;
    }
    .week-buttons-section {
        gap: 10px;
    }
    .week-buttons {
        gap: 10px;
        margin-left: 35px;
        margin-right: 35px;
    }
}

@media (min-width: 2560px) {
    .left-panel {
        flex: 1 1 380px;
        max-width: 450px;
    }
    .right-panel {
        flex: 0 0 350px;
        max-width: 400px;
    }
    .center-section, .center-section-backburner {
        min-width: 1000px;
    }
    .main-layout {
        gap: 25px;
    }
    .week-day-btn {
        width: 80px;
        height: 80px;
        font-size: 14px;
    }
    .week-buttons-section {
        gap: 12px;
    }
    .week-buttons {
        gap: 12px;
        margin-left: 40px;
        margin-right: 40px;
    }
}

/* Toggle slider button in dark mode */
body.dark-mode .toggle-slider:before {
    background-color: #e0e0e0;
}

/* Shortcuts background text */
.shortcuts-background {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    pointer-events: none;
    opacity: 0.5;
    user-select: none;
    width: 90%;
    max-width: 600px;
}

.shortcuts-text {
    font-size: 17px;
    color: #95a5a6;
    text-align: center;
    line-height: 1.4;
    font-weight: 300;
}

.shortcuts-title {
    font-size: 22px;
    font-weight: 500;
    margin-bottom: 10px;
    display: block;
}

.shortcut-item {
    display: block;
    margin: 2px 0;
}

.shortcut-item kbd {
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    border-radius: 0;
    box-shadow: none;
}

/* Make the background relative for positioning */
.center-section {
    position: relative;
}

