/* Todo Container Styles */
.todo-container {
    padding: 20px;
}

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

.todo-header h2 {
    color: var(--primary-color);
    font-size: 24px;
}

.add-task-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.3s;
}

.add-task-btn:hover {
    background-color: #0056b3;
}

/* Todo Filters Styles */
.todo-filters {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    padding: 10px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.filter-group {
    display: flex;
    gap: 10px;
}

.filter-btn {
    padding: 8px 16px;
    border: none;
    background: none;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s;
}

.filter-btn.active {
    background-color: var(--primary-color);
    color: white;
}

.sort-select {
    padding: 8px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background-color: white;
}

/* Todo List Styles */
.todo-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.task-item {
    background-color: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 15px;
    transition: transform 0.3s;
}

.task-item:hover {
    transform: translateY(-2px);
}

.task-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.task-content {
    flex: 1;
}

.task-title {
    font-weight: 600;
    margin-bottom: 5px;
}

.task-description {
    color: #666;
    font-size: 14px;
}

.task-meta {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: #888;
}

.task-priority {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.priority-low {
    background-color: #e3f2fd;
    color: #1976d2;
}

.priority-medium {
    background-color: #fff3e0;
    color: #f57c00;
}

.priority-high {
    background-color: #ffebee;
    color: #d32f2f;
}

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

.task-actions button {
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    transition: color 0.3s;
}

.task-actions button:hover {
    color: var(--primary-color);
}

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

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 20px;
    width: 50%;
    max-width: 500px;
    border-radius: 8px;
    position: relative;
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 10px;
    font-size: 24px;
    cursor: pointer;
}

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

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

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 8px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

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

.save-task-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    margin-top: 10px;
}

.save-task-btn:hover {
    background-color: #0056b3;
}

/* Board/Table Styles */
.todo-board {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.07);
    padding: 0;
    overflow-x: auto;
}
.todo-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    min-width: 700px;
}
.todo-table th, .todo-table td {
    padding: 14px 12px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
    background: #fff;
}
.todo-table th {
    background: #f7f8fa;
    font-weight: 600;
    color: #333;
    border-top: 1px solid #e1e1e1;
}
.todo-table tr:last-child td {
    border-bottom: none;
}

/* Status Dropdown Styles */
.status-dropdown {
    position: relative;
    display: inline-block;
    width: 140px;
}
.status-btn {
    width: 100%;
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    color: #fff;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
    outline: none;
    transition: background 0.2s;
}
.status-done {
    background: #00c875;
}
.status-working {
    background: #fdab3d;
}
.status-stuck {
    background: #e2445c;
}
.status-dropdown-content {
    display: none;
    position: absolute;
    left: 0;
    top: 110%;
    min-width: 140px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border-radius: 6px;
    z-index: 10;
}
.status-dropdown.open .status-dropdown-content {
    display: block;
}
.status-option {
    padding: 10px 16px;
    cursor: pointer;
    font-weight: 500;
    border-radius: 6px;
    margin: 2px 0;
    transition: background 0.2s;
}
.status-option.status-done {
    color: #00c875;
    background: #eafaf3;
}
.status-option.status-working {
    color: #fdab3d;
    background: #fff7e6;
}
.status-option.status-stuck {
    color: #e2445c;
    background: #fdeaea;
}
.status-option:hover {
    background: #f0f0f0;
}

/* Action Buttons */
.todo-table .action-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #888;
    font-size: 18px;
    margin-right: 8px;
    transition: color 0.2s;
}
.todo-table .action-btn:hover {
    color: var(--primary-color);
}

/* Responsive */
@media (max-width: 900px) {
    .todo-table {
        min-width: 500px;
    }
}

@media (max-width: 600px) {
    .todo-table {
        min-width: 350px;
    }
}

/* Things App Layout */
.things-app-container {
    display: flex;
    height: 100vh;
    background: #f5f6fa;
}
.things-sidebar {
    width: 260px;
    background: #fff;
    border-right: 1px solid #e6e6e6;
    display: flex;
    flex-direction: column;
    padding: 0 0 20px 0;
}
.sidebar-header {
    padding: 32px 24px 16px 24px;
    font-size: 18px;
    font-weight: 700;
    color: #333;
}
.sidebar-list {
    list-style: none;
    padding: 0 0 0 0;
    margin: 0;
}
.sidebar-list li {
    padding: 14px 32px;
    font-size: 16px;
    color: #444;
    cursor: pointer;
    border-left: 4px solid transparent;
    transition: background 0.2s, border-color 0.2s;
}
.sidebar-list li.active, .sidebar-list li:hover {
    background: #f0f4fa;
    border-left: 4px solid #0073ea;
    color: #0073ea;
}

.things-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0;
    position: relative;
}
.things-header {
    padding: 32px 40px 16px 40px;
    font-size: 22px;
    font-weight: 700;
    color: #222;
    background: #fff;
    border-bottom: 1px solid #e6e6e6;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.things-header .star {
    color: #f7b500;
    font-size: 22px;
    margin-right: 8px;
}
.add-minion-btn {
    background: #0073ea;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 18px;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: background 0.2s;
}
.add-minion-btn:hover {
    background: #005bb5;
}

.things-task-list {
    flex: 1;
    padding: 32px 40px 80px 40px;
    overflow-y: auto;
}

/* Task Item */
.things-task {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    margin-bottom: 16px;
    padding: 0 0 0 0;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s;
    border: 1px solid transparent;
}
.things-task.editing, .things-task:focus-within {
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    border: 1px solid #0073ea;
}
.things-task-row {
    display: flex;
    align-items: center;
    padding: 18px 24px 10px 24px;
    position: relative;
}
.things-task-checkbox {
    width: 22px;
    height: 22px;
    margin-right: 18px;
    accent-color: #0073ea;
}
.things-task-title {
    flex: 1;
    font-size: 18px;
    color: #222;
    border: none;
    background: transparent;
    outline: none;
    font-weight: 500;
    padding: 0;
    min-width: 60px;
}
.things-task-title[readonly] {
    cursor: pointer;
}
.things-task-notes {
    font-size: 15px;
    color: #666;
    background: #f7f8fa;
    border: none;
    border-radius: 0 0 10px 10px;
    margin: 0 24px 18px 64px;
    padding: 16px 16px;
    min-height: 120px;
    outline: none;
    display: none;
    resize: vertical;
    line-height: 1.5;
    font-family: inherit;
}
.things-task.editing .things-task-notes {
    display: block;
}
.things-task .things-task-notes[readonly] {
    background: #f7f8fa;
    cursor: pointer;
}

/* Collapsed notes preview */
.things-task-notes-preview {
    color: #b0b0b0;
    font-size: 15px;
    margin: 0 24px 18px 64px;
    padding: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background: none;
    border: none;
    min-height: 0;
    display: block;
    pointer-events: none;
}

/* Hide textarea when not editing */
.things-task:not(.editing) .things-task-notes {
    display: none;
}

/* Show preview only when not editing and notes exist */
.things-task.editing .things-task-notes-preview {
    display: none;
}

/* Floating Add Button */
.things-add-btn {
    position: fixed;
    right: 48px;
    bottom: 48px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #0073ea;
    color: #fff;
    border: none;
    font-size: 28px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.10);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    transition: background 0.2s;
}
.things-add-btn:hover {
    background: #005bb5;
}

/* Responsive */
@media (max-width: 900px) {
    .things-sidebar {
        width: 60px;
        min-width: 60px;
        max-width: 60px;
        padding: 0;
    }
    .sidebar-header, .sidebar-list li {
        padding-left: 8px;
        padding-right: 8px;
        font-size: 0;
    }
    .sidebar-list li {
        min-width: 44px;
        min-height: 44px;
    }
    .sidebar-list li.active, .sidebar-list li:hover {
        border-left: 4px solid #0073ea;
    }
    .things-header, .things-task-list {
        padding-left: 8px;
        padding-right: 8px;
    }
    .add-minion-btn {
        padding: 8px 10px;
        font-size: 0;
        min-width: 44px;
        min-height: 44px;
    }
    .add-minion-btn i {
        font-size: 22px;
    }
}
@media (max-width: 600px) {
    .things-app-container {
        flex-direction: column;
    }
    .things-sidebar {
        width: 100%;
        min-width: 0;
        max-width: none;
        border-right: none;
        border-bottom: 1px solid #e6e6e6;
        flex-direction: row;
        overflow-x: auto;
    }
    .sidebar-list {
        display: flex;
        flex-direction: row;
        width: 100%;
        justify-content: space-between;
    }
    .sidebar-list li {
        flex: 1;
        text-align: center;
        font-size: 0;
        min-width: 44px;
        min-height: 44px;
        padding: 10px 0;
    }
    .things-header {
        flex-direction: column;
        align-items: flex-start;
        padding: 18px 8px 10px 8px;
        gap: 8px;
    }
    .add-minion-btn {
        align-self: flex-end;
        margin-top: 4px;
        padding: 8px 10px;
        font-size: 0;
        min-width: 44px;
        min-height: 44px;
    }
    .add-minion-btn i {
        font-size: 22px;
    }
    .things-task-list {
        padding: 12px 4px 80px 4px;
    }
    .things-task-row {
        flex-direction: column;
        align-items: stretch;
        padding: 12px 8px 8px 8px;
        gap: 8px;
    }
    .status-label, .minion-select, .action-btn.delete-task {
        margin: 0 0 8px 0;
        width: 100%;
        min-width: 0;
        justify-content: center;
    }
    .minion-select {
        padding-left: 36px;
    }
    .things-task-title {
        font-size: 16px;
        min-width: 0;
        width: 100%;
    }
    .things-task-notes, .things-task-notes-preview {
        margin-left: 0;
        margin-right: 0;
        font-size: 15px;
    }
    
    .things-task-notes {
        min-height: 100px;
        padding: 12px;
    }
    .status-dropdown-menu {
        min-width: 90vw;
        left: 50% !important;
        transform: translateX(-50%) !important;
        border-radius: 14px;
        font-size: 18px;
    }
    .modal-content {
        width: 98vw !important;
        min-width: 0;
        max-width: 98vw;
        left: 1vw;
        right: 1vw;
        padding: 18px 6px 18px 6px;
    }
    #labelModal .modal-content, .minion-modal-content {
        width: 98vw !important;
        min-width: 0;
        max-width: 98vw;
        left: 1vw;
        right: 1vw;
        padding: 24px 16px;
        border-radius: 12px;
        min-height: 400px;
    }
    
    #labelForm {
        flex-direction: column;
        gap: 16px;
        padding: 16px;
    }
    
    #labelForm input[type="text"] {
        width: 100%;
    }
    
    #labelForm input[type="color"] {
        width: 56px;
        height: 56px;
        align-self: center;
    }
    
    .label-row {
        flex-direction: column;
        gap: 12px;
        padding: 16px;
    }
    
    .label-name-input {
        width: 100%;
    }
    
    .label-row .remove-label-btn {
        align-self: flex-end;
    }
    .things-add-btn {
        right: 12px;
        bottom: 12px;
        width: 48px;
        height: 48px;
        font-size: 22px;
    }
}

/* Minion Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999999;
}
.modal-content.minion-modal-content {
    background-color: #fff;
    margin: 8% auto;
    padding: 24px 32px 32px 32px;
    width: 350px;
    border-radius: 10px;
    position: relative;
    box-shadow: 0 4px 24px rgba(0,0,0,0.12);
}
#minionForm {
    display: flex;
    gap: 8px;
    margin-bottom: 18px;
}
#minionForm input {
    flex: 1;
    padding: 8px;
    border: 1px solid #e1e1e1;
    border-radius: 4px;
}
#minionForm button {
    background: #0073ea;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 8px 14px;
    cursor: pointer;
    font-weight: 500;
}
#minionList {
    list-style: none;
    padding: 0;
    margin: 0;
}
#minionList li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 16px;
}
#minionList li:last-child {
    border-bottom: none;
}
.remove-minion-btn {
    background: none;
    border: none;
    color: #e2445c;
    font-size: 18px;
    cursor: pointer;
    margin-left: 10px;
    transition: color 0.2s;
}
.remove-minion-btn:hover {
    color: #b71c1c;
}

.minion-group-header {
    font-size: 18px;
    font-weight: 700;
    margin: 32px 0 8px 0;
    padding-left: 8px;
    color: #4a90e2;
    letter-spacing: 0.5px;
}
.minion-group-header + .things-task {
    margin-top: 0;
}
.minion-group-header[style*='color: #bfa52f'] {
    color: #bfa52f;
}

.status-label {
    min-width: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    padding: 6px 18px;
    margin-right: 18px;
    cursor: pointer;
    position: relative;
    transition: background 0.2s;
    border: none;
    outline: none;
}
.status-done { background: #00c875; }
.status-working { background: #fdab3d; }
.status-stuck { background: #e2445c; }
.status-default { background: #bdbdbd; }
.status-due-date { background: #6c757d; }

.status-dropdown-menu {
    position: fixed;
    left: 0;
    top: 0;
    min-width: 180px;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,0.12);
    border-radius: 10px;
    z-index: 999999;
    padding: 10px 0 0 0;
    margin-top: 6px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    overflow: hidden;
    padding-bottom: 8px;
    transform: translateY(0);
}
.status-dropdown-option {
    width: 100%;
    display: flex;
    align-items: center;
    font-size: 15px;
    font-weight: 600;
    padding: 14px 0;
    border: none;
    background: none;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    border-radius: 0;
    margin: 0;
    justify-content: center;
}
.status-dropdown-option.status-done {
    background: #00c875;
    color: #fff;
}
.status-dropdown-option.status-working {
    background: #fdab3d;
    color: #fff;
}
.status-dropdown-option.status-stuck {
    background: #e2445c;
    color: #fff;
}
.status-dropdown-option.status-default {
    background: #bdbdbd;
    color: #fff;
}
.status-dropdown-option.status-due-date {
    background: #6c757d;
    color: #fff;
}
.status-dropdown-option:hover {
    filter: brightness(0.95);
}

.status-dropdown-footer {
    border-top: 1px solid #eee;
    margin-top: 8px;
    padding: 8px 0 0 0;
    text-align: center;
}
.status-dropdown-footer button {
    background: none;
    border: none;
    color: #888;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0 auto;
    transition: color 0.2s;
}
.status-dropdown-footer button:hover { color: #0073ea; }

/* Balloon animation area for Done */
.status-label .balloon-anim {
    position: absolute;
    left: 0; top: 0; right: 0; bottom: 0;
    pointer-events: none;
    z-index: 1;
}

#labelModal .modal-content {
    width: 600px;
    max-width: 95vw;
    min-height: 500px;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    background: #fff;
}

#labelModal .modal-content h3 {
    margin: 0 0 24px 0;
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    text-align: center;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 16px;
}
#labelForm {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
    align-items: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

#labelForm input[type="text"] {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 16px;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

#labelForm input[type="text"]:focus {
    outline: none;
    border-color: #0073ea;
    box-shadow: 0 0 0 3px rgba(0, 115, 234, 0.1);
}

#labelForm input[type="color"] {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    border: 2px solid #e9ecef;
    background: none;
    cursor: pointer;
    transition: border-color 0.2s;
}

#labelForm input[type="color"]:hover {
    border-color: #0073ea;
}

#labelForm button {
    background: #0073ea;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    transition: background 0.2s, transform 0.1s;
}

#labelForm button:hover {
    background: #005bb5;
    transform: translateY(-1px);
}
#labelList {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 400px;
    overflow-y: auto;
}

.label-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    margin-bottom: 8px;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    transition: all 0.2s;
}

.label-row:hover {
    border-color: #0073ea;
    box-shadow: 0 2px 8px rgba(0, 115, 234, 0.1);
    transform: translateY(-1px);
}

.label-row:last-child {
    margin-bottom: 0;
}
.label-swatch-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 8px;
    transition: background 0.2s;
}

.label-swatch-btn:hover {
    background: #f8f9fa;
}

.label-swatch {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 2px solid #e9ecef;
    display: inline-block;
    position: relative;
    transition: border-color 0.2s, transform 0.1s;
}

.label-swatch:hover {
    border-color: #0073ea;
    transform: scale(1.05);
}

.label-swatch .fa-fill-drip {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 18px;
    pointer-events: none;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.label-name-input {
    flex: 1;
    font-size: 16px;
    font-weight: 500;
    border: 2px solid transparent;
    background: #f8f9fa;
    padding: 12px 16px;
    border-radius: 8px;
    outline: none;
    transition: all 0.2s;
}

.label-name-input:focus {
    border-color: #0073ea;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0, 115, 234, 0.1);
}

.label-name-input:disabled {
    background: #e9ecef;
    color: #6c757d;
    cursor: not-allowed;
}
.label-row .remove-label-btn {
    background: #ffeaea;
    border: none;
    color: #e2445c;
    font-size: 16px;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.label-row .remove-label-btn:hover {
    background: #e2445c;
    color: #fff;
    transform: scale(1.05);
}

#addLabelBtn {
    width: 100%;
    background: #f8f9fa;
    border: 2px dashed #0073ea;
    color: #0073ea;
    font-size: 16px;
    font-weight: 600;
    padding: 16px 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 12px;
    margin-top: 24px;
    transition: all 0.2s;
}

#addLabelBtn:hover {
    background: #0073ea;
    color: #fff;
    border-style: solid;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 115, 234, 0.2);
}

.minion-select {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 8px 16px 8px 40px;
    font-size: 14px;
    font-weight: 500;
    color: #495057;
    margin-left: 12px;
    margin-right: 8px;
    outline: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    appearance: none;
    position: relative;
    min-width: 140px;
    transition: all 0.2s ease;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%236c757d" height="16" viewBox="0 0 24 24" width="16" xmlns="http://www.w3.org/2000/svg"><path d="M12 12c2.7 0 8 1.34 8 4v2H4v-2c0-2.66 5.3-4 8-4zm0-2a4 4 0 1 0 0-8 4 4 0 0 0 0 8z"/></svg>');
    background-repeat: no-repeat;
    background-position: 12px center;
}

.minion-select:hover {
    border-color: #0073ea;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.minion-select:focus {
    border-color: #0073ea;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0, 115, 234, 0.1), 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.minion-select option {
    font-size: 14px;
    font-weight: 500;
    color: #495057;
    padding: 8px;
}

.action-btn.delete-task {
    background: linear-gradient(135deg, #ffeaea 0%, #ffcdd2 100%);
    border: 2px solid #ffcdd2;
    border-radius: 12px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e2445c;
    font-size: 16px;
    margin-left: 12px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(226, 68, 92, 0.1);
    position: relative;
    overflow: hidden;
}

.action-btn.delete-task::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.action-btn.delete-task:hover {
    background: linear-gradient(135deg, #e2445c 0%, #c62828 100%);
    color: #fff;
    border-color: #e2445c;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(226, 68, 92, 0.3);
}

.action-btn.delete-task:hover::before {
    left: 100%;
}

.action-btn.delete-task:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(226, 68, 92, 0.2);
}

.things-task-title::placeholder {
    color: #bdbdbd;
    font-weight: 400;
    font-style: italic;
}

/* Inline Timer Button */
.timer-btn-inline {
    background: #0073ea;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    margin-left: 8px;
    transition: background 0.2s;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.timer-btn-inline:hover {
    background: #005bb5;
}

.timer-btn-inline.stop-timer {
    background: #e2445c;
}

.timer-btn-inline.stop-timer:hover {
    background: #b71c1c;
}

.timer-btn-inline i {
    font-size: 12px;
}

/* Time Input Container */
.time-input-container {
    display: flex;
    align-items: center;
    gap: 0;
    margin-left: 12px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 4px 4px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.time-input-container:hover {
    border-color: #0073ea;
    background: #fff;
}

.time-input-container:focus-within {
    border-color: #0073ea;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0, 115, 234, 0.1), 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

/* Inline Input Fields */
.time-input-inline {
    width: 32px;
    padding: 4px 0px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    background: transparent;
    transition: all 0.2s ease;
    outline: none;
    min-width: 32px;
    max-width: 32px;
}

.time-input-inline:focus {
    background: rgba(0, 115, 234, 0.1);
}

.time-label-small {
    font-size: 12px;
    font-weight: 600;
    color: #6c757d;
    margin: 0;
    display: block;
    transform: translateX(-8px);
    position: relative;
}

.due-date-input-inline {
    width: 140px;
    padding: 8px 12px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    background: #f8f9fa;
    margin-left: 12px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    color: #495057;
}

.due-date-input-inline:focus {
    outline: none;
    border-color: #0073ea;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0, 115, 234, 0.1), 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.due-date-input-inline:hover {
    border-color: #0073ea;
    background: #fff;
}

/* Enhanced Timer Button */
.timer-btn-inline {
    background: linear-gradient(135deg, #0073ea 0%, #005bb5 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    margin-left: 12px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 115, 234, 0.2);
    position: relative;
    overflow: hidden;
}

.timer-btn-inline::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.timer-btn-inline:hover {
    background: linear-gradient(135deg, #005bb5 0%, #004494 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 115, 234, 0.3);
}

.timer-btn-inline:hover::before {
    left: 100%;
}

.timer-btn-inline:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 115, 234, 0.2);
}

.timer-btn-inline.stop-timer {
    background: linear-gradient(135deg, #e2445c 0%, #c62828 100%);
    box-shadow: 0 2px 8px rgba(226, 68, 92, 0.2);
}

.timer-btn-inline.stop-timer:hover {
    background: linear-gradient(135deg, #c62828 0%, #b71c1c 100%);
    box-shadow: 0 4px 12px rgba(226, 68, 92, 0.3);
}

.timer-btn-inline i {
    font-size: 12px;
    z-index: 1;
    position: relative;
}

/* Time Tracking Styles */
.time-tracking-section {
    background: #f7f8fa;
    border-radius: 0 0 10px 10px;
    margin: 0 24px 18px 64px;
    padding: 16px;
    border-top: 1px solid #e6e6e6;
}

/* Due Date Styles */
.due-date-section {
    background: #f0f4fa;
    border-radius: 0 0 10px 10px;
    margin: 0 24px 18px 64px;
    padding: 16px;
    border-top: 1px solid #e6e6e6;
}

.due-date-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.due-date-label {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    min-width: 80px;
}

.due-date-input {
    padding: 8px 12px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.due-date-input:focus {
    outline: none;
    border-color: #0073ea;
    box-shadow: 0 0 0 3px rgba(0, 115, 234, 0.1);
}

/* Due Date Display (collapsed view) */
.due-date-display {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    margin: 0 24px 12px 64px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
}

.due-date-display i {
    color: #6c757d;
    font-size: 12px;
}

.due-date-normal {
    color: #6c757d;
}

.due-date-today {
    color: #0073ea;
    font-weight: 600;
}

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

.due-date-soon {
    color: #f57c00;
    font-weight: 600;
}

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

.time-input-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.time-label {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    min-width: 160px;
}

.time-input {
    width: 80px;
    padding: 6px 8px;
    border: 1px solid #e1e1e1;
    border-radius: 6px;
    font-size: 14px;
    text-align: center;
    background: #fff;
}

.time-input:focus {
    outline: none;
    border-color: #0073ea;
    box-shadow: 0 0 0 2px rgba(0, 115, 234, 0.1);
}

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

.timer-display {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    font-family: inherit;
    background: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #e1e1e1;
    min-width: 80px;
    text-align: center;
}

.timer-btn {
    background: #0073ea;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s;
}

.timer-btn:hover {
    background: #005bb5;
}

.timer-btn.stop-timer {
    background: #e2445c;
}

.timer-btn.stop-timer:hover {
    background: #b71c1c;
}

.timer-btn i {
    font-size: 12px;
}

/* Active Timer Display (collapsed view) */
.active-timer-display {
    background: #fff3e0;
    border: 1px solid #fdab3d;
    border-radius: 6px;
    margin: 0 24px 12px 64px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #f57c00;
    font-weight: 500;
}

.active-timer-display i {
    color: #fdab3d;
}

.active-timer-display .timer-display-inline {
    font-family: inherit;
    font-weight: 600;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    min-width: auto;
}

/* Timer Notification */
.timer-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #00c875;
    color: #fff;
    padding: 16px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1001;
    animation: slideInRight 0.3s ease-out;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.notification-content i {
    font-size: 18px;
}

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

/* Header Controls */
.header-controls {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Responsive adjustments for time tracking */
.mindmap-container {
    position: relative;
    height: calc(100vh - 120px);
    background: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e9ecef;
    min-height: 600px;
}

/* Miro-style Sidebar */
.mindmap-sidebar {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 280px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #e1e5e9;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    z-index: 999999;
    backdrop-filter: blur(10px);
}

.sidebar-section {
    margin-bottom: 30px;
}

.sidebar-section h3 {
    margin: 0 0 15px 0;
    font-size: 14px;
    font-weight: 600;
    color: #42526e;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tool-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

/* Line Properties Panel */
.property-group {
    margin-bottom: 15px;
}

.property-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 12px;
    font-weight: 500;
    color: #42526e;
}

.property-input {
    width: 100%;
    padding: 4px 8px;
    border: 1px solid #e1e5e9;
    border-radius: 4px;
    font-size: 12px;
}

.property-input[type="range"] {
    padding: 0;
    height: 20px;
}

.property-input[type="color"] {
    height: 30px;
    padding: 2px;
    cursor: pointer;
}

#thicknessValue, #opacityValue {
    font-size: 11px;
    color: #6b778c;
    margin-left: 8px;
}

.tool-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 8px;
    background: #f8f9fa;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 12px;
    color: #42526e;
    min-height: 60px;
}

.tool-btn:hover {
    background: #e9ecef;
    border-color: #dee2e6;
}

.tool-btn.active {
    background: #007bff;
    color: white;
    border-color: #0056b3;
}

.tool-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f8f9fa;
    color: #6c757d;
}

.tool-btn i {
    font-size: 16px;
    margin-bottom: 4px;
}

.tool-btn span {
    font-weight: 500;
}

/* Canvas Container */
.mindmap-canvas-container {
    position: fixed;
    top: 0;
    left: 240px; /* Account for sidebar width */
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #f8f9fa;
    z-index: 10;
    transition: left 0.3s ease;
}

/* When sidebar is collapsed */
.sidebar.collapsed ~ .main-content .mindmap-canvas-container {
    left: 60px;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .mindmap-canvas-container {
        left: 0;
        top: 60px; /* Account for mobile menu */
    }
}

.mindmap-canvas {
    flex: 1;
    position: relative;
    overflow: hidden;
    background: #ffffff;
    cursor: grab;
    pointer-events: auto;
}

.mindmap-canvas:active {
    cursor: grabbing;
}

.connections-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.connections-layer line {
    pointer-events: all;
    cursor: pointer;
    fill: none;
}

.connections-layer line.selected {
    stroke: #007bff;
    stroke-width: 3;
}

.connections-layer line.line-preview {
    stroke: #007bff;
    stroke-width: 2;
    stroke-dasharray: 5,5;
    opacity: 0.7;
}

.nodes-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.mindmap-node {
    pointer-events: auto;
}

.mindmap-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: #fff;
    border-bottom: 1px solid #e9ecef;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.mindmap-btn {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    color: #495057;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.mindmap-btn:hover {
    background: #f8f9fa;
    border-color: #0073ea;
    color: #0073ea;
}

.mindmap-btn.active {
    background: #0073ea;
    color: #fff;
    border-color: #0073ea;
}

.mindmap-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f8f9fa;
    color: #6c757d;
}

.mindmap-btn:disabled:hover {
    background: #f8f9fa;
    border-color: #e9ecef;
    color: #6c757d;
}

/* Resize handles for mind map nodes */
.resize-handle {
    position: absolute;
    background: #007bff;
    border: 2px solid #fff;
    border-radius: 50%;
    width: 8px;
    height: 8px;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.mindmap-node:hover .resize-handle {
    opacity: 1;
}

.resize-nw {
    top: -4px;
    left: -4px;
    cursor: nw-resize;
}

.resize-ne {
    top: -4px;
    right: -4px;
    cursor: ne-resize;
}

.resize-sw {
    bottom: -4px;
    left: -4px;
    cursor: sw-resize;
}

.resize-se {
    bottom: -4px;
    right: -4px;
    cursor: se-resize;
}

.resize-n {
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    cursor: n-resize;
}

.resize-s {
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    cursor: s-resize;
}

.resize-w {
    top: 50%;
    left: -4px;
    transform: translateY(-50%);
    cursor: w-resize;
}

.resize-e {
    top: 50%;
    right: -4px;
    transform: translateY(-50%);
    cursor: e-resize;
}

/* Drag cursor */
.mindmap-node {
    cursor: grab;
}

.mindmap-node:active {
    cursor: grabbing;
}

/* Disable active state animations for text nodes */
.text-node:active {
    transform: none !important;
    animation: none !important;
}


.mindmap-info {
    color: #6c757d;
    font-size: 14px;
    margin-left: auto;
}

.mindmap-canvas {
    position: relative;
    width: 100%;
    height: calc(100% - 60px);
    cursor: grab;
    overflow: hidden;
}

.mindmap-canvas.dragging {
    cursor: grabbing;
}

.connections-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.connections-layer line {
    pointer-events: all;
    cursor: pointer;
    fill: none;
}

.connections-layer line.selected {
    stroke: #007bff;
    stroke-width: 3;
}

.connections-layer line.line-preview {
    stroke: #007bff;
    stroke-width: 2;
    stroke-dasharray: 5,5;
    opacity: 0.7;
}

.nodes-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

/* Node Styles */
.mindmap-node {
    position: absolute;
    background: #fff;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 12px 16px;
    min-width: 120px;
    cursor: move;
    user-select: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.2s;
    z-index: 10;
}

.mindmap-node:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.mindmap-node.selected {
    border-color: #0073ea;
    box-shadow: 0 0 0 3px rgba(0, 115, 234, 0.2);
}

/* Disable transitions during resize for smooth resizing */
.mindmap-node.resizing {
    transition: none !important;
    will-change: transform, width, height;
}

/* Reset will-change after resize ends */
.mindmap-node:not(.resizing) {
    will-change: auto;
}

/* Text nodes - minimal styling like Miro */
.text-node {
    background: transparent !important;
    border: none !important;
    border-radius: 4px;
    padding: 0 !important;
    min-width: 100px;
    min-height: 30px;
    box-shadow: none !important;
    transition: none !important;
}

.text-node-input {
    background: transparent;
    border: none;
    outline: none;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    padding: 8px 12px;
    width: 100%;
    height: 100%;
    font-family: inherit;
    resize: none;
    box-sizing: border-box;
    overflow: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
    line-height: 1.4;
    user-select: text;
    cursor: text;
}

.text-node-input:focus {
    background: rgba(0, 115, 234, 0.1);
    border-radius: 4px;
}

.text-node.selected {
    box-shadow: 0 0 0 2px rgba(0, 115, 234, 0.3) !important;
}

/* Hide resize handles for text nodes by default */
.text-node .resize-handle {
    opacity: 0;
}

.text-node:hover .resize-handle {
    opacity: 1;
}

/* Box nodes - traditional node styling */
.box-node {
    background: #fff;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    padding: 12px;
    min-width: 150px;
    min-height: 80px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.mindmap-node.dragging {
    z-index: 100;
    transform: rotate(2deg);
}

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

.node-title {
    font-weight: 600;
    font-size: 16px;
    color: #212529;
    border: none;
    background: none;
    outline: none;
    width: 100%;
    padding: 0;
    margin: 0;
}

.node-title:focus {
    background: #f8f9fa;
    border-radius: 4px;
    padding: 2px 4px;
}

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

.mindmap-node:hover .node-actions {
    opacity: 1;
}

.node-action-btn {
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.node-action-btn:hover {
    background: #f8f9fa;
    color: #495057;
}

.node-action-btn.delete:hover {
    background: #ffeaea;
    color: #e2445c;
}

.node-content {
    font-size: 14px;
    color: #6c757d;
    line-height: 1.4;
}

.node-status {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    margin-top: 8px;
}

.node-status.done {
    background: #d4edda;
    color: #155724;
}

.node-status.working {
    background: #fff3cd;
    color: #856404;
}

.node-status.stuck {
    background: #f8d7da;
    color: #721c24;
}

/* Connection Styles */
.connection {
    stroke: #dee2e6;
    stroke-width: 2;
    fill: none;
    pointer-events: stroke;
    cursor: pointer;
}

.connection:hover {
    stroke: #0073ea;
    stroke-width: 3;
}

.connection.selected {
    stroke: #0073ea;
    stroke-width: 3;
    stroke-dasharray: 5,5;
}

/* Marquee Selection */
.marquee-selection {
    position: absolute;
    border: 2px dashed #007bff;
    background-color: rgba(0, 123, 255, 0.1);
    pointer-events: none;
    z-index: 999999;
}

/* Connection Mode */
.mindmap-canvas.connection-mode {
    cursor: crosshair;
}

.mindmap-canvas.connection-mode .mindmap-node {
    cursor: pointer;
}

/* Animations */
@keyframes nodeAppear {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.mindmap-node.new {
    animation: nodeAppear 0.3s ease-out;
}

/* Disable animations for text nodes */
.text-node.new {
    animation: none !important;
}

@keyframes connectionDraw {
    from {
        stroke-dashoffset: 100;
    }
    to {
        stroke-dashoffset: 0;
    }
}

.connection.new {
    stroke-dasharray: 100;
    animation: connectionDraw 0.5s ease-out forwards;
}

/* Responsive adjustments for time tracking */
@media (max-width: 600px) {
    .header-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    
    .view-toggle {
        align-self: center;
    }
    
    .mindmap-toolbar {
        padding: 8px 12px;
        gap: 6px;
    }
    
    .mindmap-btn {
        padding: 6px 8px;
        font-size: 12px;
    }
    
    .mindmap-btn span {
        display: none;
    }
    
    .mindmap-info {
        display: none;
    }
    
    .mindmap-node {
        min-width: 100px;
        padding: 8px 12px;
    }
    
    .node-title {
        font-size: 14px;
    }
    
    .node-content {
        font-size: 12px;
    }
    
    .time-tracking-section {
        margin-left: 0;
        margin-right: 0;
        padding: 12px;
    }
    
    .time-input-row {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    
    .time-label {
        min-width: auto;
        font-size: 13px;
    }
    
    .time-input {
        width: 100%;
        max-width: 120px;
    }
    
    .timer-controls-row {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    
    .timer-display {
        text-align: center;
        font-size: 16px;
    }
    
    .timer-btn {
        justify-content: center;
        padding: 10px 16px;
    }
    
    .active-timer-display {
        margin-left: 0;
        margin-right: 0;
        font-size: 13px;
    }
    
    .timer-notification {
        top: 10px;
        right: 10px;
        left: 10px;
        padding: 12px 16px;
    }
    
    .timer-btn-inline {
        width: 32px;
        height: 32px;
        font-size: 12px;
        margin-left: 4px;
    }
    
    .timer-btn-inline i {
        font-size: 10px;
    }
    
    .time-input-container {
        margin-left: 8px;
        padding: 3px 4px;
    }
    
    .time-input-inline {
        width: 28px;
        font-size: 12px;
        padding: 3px 0px;
        min-width: 28px;
        max-width: 28px;
    }
    
    .time-label-small {
        font-size: 10px;
        transform: translateX(-8px);
    }
    
    .due-date-input-inline {
        width: 110px;
        font-size: 12px;
        margin-left: 8px;
        padding: 6px 8px;
    }
    
    .timer-btn-inline {
        width: 36px;
        height: 36px;
        margin-left: 8px;
    }
    
    .action-btn.delete-task {
        width: 36px;
        height: 36px;
        margin-left: 8px;
    }
    
    .minion-select {
        margin-left: 8px;
        padding: 6px 12px 6px 32px;
        font-size: 12px;
    }
    
    .due-date-section {
        margin-left: 0;
        margin-right: 0;
        padding: 12px;
    }
    
    .due-date-row {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    
    .due-date-label {
        min-width: auto;
        font-size: 13px;
    }
    
    .due-date-input {
        width: 100%;
    }
    
    .due-date-display {
        margin-left: 0;
        margin-right: 0;
        font-size: 13px;
    }
}

/* Line Control Points */
.line-control-point {
    pointer-events: all;
    cursor: pointer;
    transition: all 0.2s ease;
}

.line-control-point:hover {
    r: 8;
    filter: drop-shadow(0 2px 4px rgba(0, 123, 255, 0.3));
}

.line-control-point:active {
    r: 7;
    filter: drop-shadow(0 1px 2px rgba(0, 123, 255, 0.4));
}

/* Box Control Points */
.box-control-point {
    pointer-events: all;
    cursor: pointer;
    transition: all 0.2s ease;
}

.box-control-point:hover {
    r: 8;
    filter: drop-shadow(0 2px 4px rgba(40, 167, 69, 0.3));
}

.box-control-point:active {
    r: 7;
    filter: drop-shadow(0 1px 2px rgba(40, 167, 69, 0.4));
}

/* Text Tool Active State */
.text-tool-active .mindmap-node {
    cursor: text !important;
}

.text-tool-active .mindmap-node:hover {
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.2) !important;
    border-color: #007bff !important;
}

.text-tool-active .resize-handle {
    opacity: 0 !important;
    pointer-events: none !important;
}

.text-tool-active .node-action-btn {
    opacity: 0.5;
    pointer-events: none;
}

/* Box Tool Active State */
.box-tool-active .mindmap-node {
    cursor: crosshair !important;
}

.box-tool-active .mindmap-node:hover {
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.2) !important;
    border-color: #28a745 !important;
}

.box-tool-active .resize-handle {
    opacity: 0 !important;
    pointer-events: none !important;
}

.box-tool-active .node-action-btn {
    opacity: 0.5;
    pointer-events: none;
}

/* Mouse Tool Active State - Disable text editing */
.mouse-tool-active .text-node-input,
.mouse-tool-active .node-title {
    pointer-events: none;
    cursor: default;
    background-color: transparent;
    border: none;
    outline: none;
}

.mouse-tool-active .text-node-input:focus,
.mouse-tool-active .node-title:focus {
    background-color: transparent;
    border: none;
    outline: none;
    box-shadow: none;
}

/* Text Tool Active State - Enable text editing */
.text-tool-active .text-node-input {
    pointer-events: all !important;
    cursor: text !important;
}

.text-tool-active .text-node-input:focus {
    background: rgba(0, 115, 234, 0.1) !important;
    border-radius: 4px !important;
} 