/* Typography - Modern system font stack */
* {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Main page body styling */
body {
    background: linear-gradient(135deg, #00ced1 0%, #009fa5 50%, #008b8d 100%);
    background-attachment: fixed;
    margin: 0;
    padding: 12px 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    height: 100vh;
    overflow: hidden;
    line-height: 1.6;
    position: relative;
    box-sizing: border-box;
}

/* Subtle background pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 2px 2px, rgba(255,255,255,0.1) 1px, transparent 0);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 0;
}
/* Page heading styling */
h1 {
    color: white;
    text-align: center;
    margin-top: 4px;
    margin-bottom: 12px;
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25), 0 1px 2px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 1;
}
/* Main container box for the to-do list - light gray box with border */
.todo-container {
    background: #e5e7eb;
    border: 1px solid rgba(209, 213, 219, 0.8);
    border-radius: 16px;
    box-shadow: 
        0 4px 6px rgba(0, 0, 0, 0.08),
        0 10px 20px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(0, 0, 0, 0.02) inset;
    padding: 0;
    width: 100%;
    max-width: 600px;
    flex: 1 1 auto;
    min-height: 0;
    margin-bottom: 6px;
    overflow-x: hidden;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    scrollbar-gutter: stable;
    position: relative;
    z-index: 1;
}

.todo-container:hover {
    box-shadow: 
        0 6px 12px rgba(0, 0, 0, 0.1),
        0 16px 32px rgba(0, 0, 0, 0.12),
        0 0 0 1px rgba(0, 0, 0, 0.03) inset;
}

/* Custom scrollbar styling to match rounded corners */
.todo-container::-webkit-scrollbar {
    width: 10px;
}

.todo-container::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 0 12px 12px 0;
}

.todo-container::-webkit-scrollbar-thumb {
    background: #bdbdbd;
    border-radius: 10px;
    border: 2px solid #fafafa;
}

.todo-container::-webkit-scrollbar-thumb:hover {
    background: #9e9e9e;
}

/* Firefox scrollbar styling */
.todo-container {
    scrollbar-width: thin;
    scrollbar-color: #bdbdbd transparent;
}
/* Section headers */
.section-header {
    background: #4338ca;
    padding: 14px 18px;
    margin: 0;
    border-bottom: 1px solid rgba(67, 56, 202, 0.5);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    color: #ffffff;
    transition: all 0.25s ease;
    position: relative;
}
.section-header:hover {
    background: #4f46e5;
    color: #ffffff;
}
.section-header.active {
    background: #4f46e5;
}
.section-header-icon {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    opacity: 0.7;
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.section-header-title {
    display: flex;
    align-items: center;
}
.section-header .chevron {
    font-size: 16px;
    color: #ffffff;
    transition: transform 0.3s ease, color 0.2s ease;
}
/* Section container */
.todo-section {
    display: flex;
    flex-direction: column;
}
/* Container for the list of task items - no individual scrollbar */
.todo-list {
    overflow: visible;
    padding: 12px;
    margin: 0;
    background: #e5e7eb;
}
.todo-list.collapsed {
    display: none;
    transition: opacity 0.3s ease, height 0.3s ease;
}
/* Active section */
.active-section {
    display: flex;
    flex-direction: column;
}
/* Completed section */
.completed-section {
    display: flex;
    flex-direction: column;
    border-top: 1px solid rgba(209, 213, 219, 0.4);
    background: #e5e7eb;
}
.completed-section.hidden {
    display: none;
}

/* Empty state styling */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    opacity: 0;
    animation: fadeIn 0.4s ease forwards;
    min-height: 200px;
}

.active-section .empty-state {
    position: relative;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.empty-state-icon {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.4;
}

.active-section .empty-state {
    background-image: 
        radial-gradient(circle at 2px 2px, rgba(0, 206, 209, 0.08) 1px, transparent 0);
    background-size: 24px 24px;
}

.completed-section .empty-state {
    background-image: 
        radial-gradient(circle at 2px 2px, rgba(158, 158, 158, 0.06) 1px, transparent 0);
    background-size: 24px 24px;
}

.empty-state-text {
    font-size: 0.95rem;
    color: #9e9e9e;
    font-weight: 500;
    margin-top: 8px;
}

.active-section .empty-state-text {
    color: #757575;
}

.completed-section .empty-state-text {
    color: #bdbdbd;
}

/* Remove bottom margin from last task item to eliminate extra space */
.todo-item:last-child {
    margin-bottom: 0;
}
/* Styling for individual task items in the list */
.todo-item {
    padding: 14px 16px;
    margin-bottom: 8px;
    background: linear-gradient(to right, #ffffff 0%, #fdfdfd 100%);
    border-radius: 10px;
    border: 1px solid rgba(232, 232, 232, 0.8);
    border-left: 4px solid;
    border-image: linear-gradient(to bottom, #00ced1, #00b8c4) 1;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 1px 2px rgba(0, 0, 0, 0.04),
        0 0 0 1px rgba(0, 0, 0, 0.02) inset;
    opacity: 0;
    transform: translateY(-10px) scale(0.98);
    animation: slideIn 0.3s ease forwards;
}

@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

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

.todo-item.new-task {
    animation: slideIn 0.3s ease forwards, pulse 0.6s ease 0.3s;
}

.todo-item:hover {
    background: linear-gradient(to right, #f8f9fa 0%, #f5f5f5 100%);
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.08),
        0 2px 4px rgba(0, 0, 0, 0.04),
        0 0 0 1px rgba(0, 206, 209, 0.1) inset;
    transform: translateY(-2px);
    border-left-width: 5px;
    border-image: linear-gradient(to bottom, #00b8c4, #00a8b0) 1;
}

.todo-item.being-deleted {
    animation: fadeOut 0.3s ease forwards;
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: scale(0.95) translateY(-10px);
    }
}
/* Task text content styling */
.todo-item-text {
    flex: 1;
    white-space: pre-wrap;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #333;
    transition: all 0.2s ease;
}
/* Styling for completed tasks */
.todo-item.completed {
    background: linear-gradient(to right, #f5f5f5 0%, #f0f0f0 100%);
    border-image: linear-gradient(to bottom, #9e9e9e, #757575) 1;
    opacity: 0.85;
}
.todo-item.completed .todo-item-text {
    text-decoration: line-through;
    opacity: 0.65;
    color: #757575;
}
.todo-item.completed:hover {
    background: linear-gradient(to right, #eeeeee 0%, #e8e8e8 100%);
    opacity: 0.95;
}

.todo-item.moving {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
/* Checkbox styling */
.todo-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    flex-shrink: 0;
    accent-color: #00ced1;
    transition: transform 0.2s ease;
}

.todo-item input[type="checkbox"]:hover {
    transform: scale(1.1);
}

.todo-item input[type="checkbox"]:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 206, 209, 0.2);
    border-radius: 3px;
}
/* Edit button styling */
.edit-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-shrink: 0;
    margin-left: auto;
    border-radius: 6px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 36px;
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.edit-button svg {
    width: 20px;
    height: 20px;
    stroke: #757575;
    transition: all 0.25s ease;
}

.edit-button:hover {
    background-color: rgba(0, 206, 209, 0.12);
    box-shadow: 0 0 12px rgba(0, 206, 209, 0.2);
}
.edit-button:hover svg {
    stroke: #00ced1;
    transform: rotate(15deg) scale(1.1);
}
.edit-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 206, 209, 0.2);
}
/* Delete button styling */
.delete-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-shrink: 0;
    border-radius: 6px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 36px;
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.delete-button svg {
    width: 20px;
    height: 20px;
    stroke: #757575;
    transition: all 0.25s ease;
}

.delete-button:hover {
    background-color: rgba(211, 47, 47, 0.12);
    box-shadow: 0 0 12px rgba(211, 47, 47, 0.2);
}
.delete-button:hover svg {
    stroke: #d32f2f;
    transform: scale(1.15);
}
.delete-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.2);
}
/* Edit mode input styling */
.todo-item-edit-input {
    flex: 1;
    padding: 8px 12px;
    border: 2px solid #00ced1;
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: inherit;
    line-height: 1.5;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.todo-item-edit-input:focus {
    outline: none;
    border-color: #00b8c4;
    box-shadow: 0 0 0 3px rgba(0, 206, 209, 0.1);
}
/* Edit mode buttons */
.edit-save-button,
.edit-cancel-button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    padding: 8px;
    flex-shrink: 0;
    border-radius: 6px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 36px;
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}
.edit-save-button {
    color: #4CAF50;
}
.edit-save-button:hover {
    color: #45a049;
    background-color: rgba(76, 175, 80, 0.12);
    box-shadow: 0 0 12px rgba(76, 175, 80, 0.2);
    transform: scale(1.1);
}
.edit-save-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2);
}
.edit-cancel-button {
    color: #d32f2f;
}
.edit-cancel-button:hover {
    color: #b71c1c;
    background-color: rgba(211, 47, 47, 0.12);
    box-shadow: 0 0 12px rgba(211, 47, 47, 0.2);
    transform: scale(1.1);
}
.edit-cancel-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.2);
}
/* Drag handle styling */
.drag-handle {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    padding: 4px 2px;
    flex-shrink: 0;
    touch-action: none;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    -webkit-user-select: none;
    user-select: none;
}
.drag-handle svg {
    fill: #bdbdbd;
    transition: fill 0.2s ease;
}
.drag-handle:hover {
    background-color: rgba(0, 0, 0, 0.06);
}
.drag-handle:hover svg {
    fill: #757575;
}
.drag-handle:active {
    cursor: grabbing;
}
/* Drag placeholder (original item while dragging) */
.todo-item.dragging {
    opacity: 0.35;
    border: 2px dashed #bdbdbd;
    background: #f5f5f5 !important;
    border-image: none;
    box-shadow: none;
    transform: none !important;
}
/* Floating ghost clone */
.drag-ghost {
    position: fixed !important;
    z-index: 10000;
    pointer-events: none;
    opacity: 0.92;
    box-shadow: 0 8px 24px rgba(0,0,0,0.18), 0 2px 8px rgba(0,0,0,0.1);
    transform: rotate(1.5deg) scale(1.03) !important;
    animation: none !important;
    transition: none !important;
}
/* Drop indicator lines */
.todo-item.drag-insert-before {
    box-shadow: 0 -2px 0 0 #00ced1, 0 1px 2px rgba(0,0,0,0.04);
    margin-top: 2px;
}
.todo-item.drag-insert-after {
    box-shadow: 0 2px 0 0 #00ced1, 0 1px 2px rgba(0,0,0,0.04);
    margin-bottom: 2px;
}
/* Settle animation after drop */
.todo-item.settling {
    transition: all 0.2s cubic-bezier(0.2, 0, 0.2, 1);
}
/* Green checkmark for completed tasks */
.todo-item.completed input[type="checkbox"] {
    appearance: none;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    border-radius: 5px;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(76, 175, 80, 0.3);
}
.todo-item.completed input[type="checkbox"]::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: translate(-50%, -60%) rotate(45deg);
    animation: checkmarkAppear 0.3s ease;
}

@keyframes checkmarkAppear {
    0% {
        opacity: 0;
        transform: translate(-50%, -60%) rotate(45deg) scale(0);
    }
    50% {
        transform: translate(-50%, -60%) rotate(45deg) scale(1.2);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -60%) rotate(45deg) scale(1);
    }
}

/* Bulk menu button - left side */
.bulk-menu-button {
    padding: 12px 24px;
    background: #4338ca;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    margin-top: 0;
    margin-left: 0;
    box-shadow: 
        0 4px 12px rgba(67, 56, 202, 0.35),
        0 0 0 0 rgba(67, 56, 202, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 44px;
    min-width: 44px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bulk-menu-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.bulk-menu-button:hover {
    background: #4f46e5;
    box-shadow: 
        0 6px 20px rgba(79, 70, 229, 0.45),
        0 0 20px rgba(79, 70, 229, 0.3);
    transform: translateY(-2px);
}

.bulk-menu-button:hover::before {
    width: 300px;
    height: 300px;
}

.bulk-menu-button:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 
        0 2px 8px rgba(67, 56, 202, 0.3),
        0 0 0 0 rgba(67, 56, 202, 0.4);
}

.bulk-menu-button:focus {
    outline: none;
    box-shadow: 
        0 4px 12px rgba(67, 56, 202, 0.35),
        0 0 0 3px rgba(67, 56, 202, 0.2);
}

.bulk-menu-button svg {
    stroke: white;
}

/* Bulk menu dropdown */
.bulk-menu-container {
    position: relative;
}

.bulk-menu-dropdown {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 0;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(0, 0, 0, 0.05);
    min-width: 220px;
    z-index: 1000;
    display: none;
    overflow: hidden;
}

.bulk-menu-dropdown.show {
    display: block;
}

.bulk-menu-item {
    padding: 12px 20px;
    cursor: pointer;
    font-size: 0.95rem;
    color: #333;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.bulk-menu-item:last-child {
    border-bottom: none;
}

.bulk-menu-item:hover {
    background-color: rgba(0, 206, 209, 0.1);
}

.bulk-menu-item:active {
    background-color: rgba(0, 206, 209, 0.15);
}

/* Add button positioned outside container, below the box, right-aligned */
.add-button {
    padding: 12px 24px;
    background: #4338ca;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    margin-top: 0;
    align-self: flex-end;
    margin-right: 0;
    box-shadow: 
        0 4px 12px rgba(67, 56, 202, 0.35),
        0 0 0 0 rgba(67, 56, 202, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 44px;
    position: relative;
    overflow: hidden;
}

.add-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.add-button:hover {
    background: #4f46e5;
    box-shadow: 
        0 6px 20px rgba(79, 70, 229, 0.45),
        0 0 20px rgba(79, 70, 229, 0.3);
    transform: translateY(-2px);
}

.add-button:hover::before {
    width: 300px;
    height: 300px;
}

.add-button:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 
        0 2px 8px rgba(67, 56, 202, 0.3),
        0 0 0 0 rgba(67, 56, 202, 0.4);
}

.add-button:focus {
    outline: none;
    box-shadow: 
        0 4px 12px rgba(67, 56, 202, 0.35),
        0 0 0 3px rgba(67, 56, 202, 0.2);
}
/* Wrapper to align buttons (bulk menu on left, add button on right) */
.button-wrapper {
    width: 100%;
    max-width: 600px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 0;
    margin-bottom: 4px;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}
/* Modal overlay - full screen dark background (hidden by default) */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.65);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(8px) saturate(180%);
    -webkit-backdrop-filter: blur(8px) saturate(180%);
    opacity: 0;
    transition: opacity 0.3s ease, backdrop-filter 0.3s ease;
}
/* Show the modal overlay when the 'show' class is added */
.modal-overlay.show {
    display: flex;
    opacity: 1;
}
/* The modal dialog box (centered white box) */
.modal-content {
    background: linear-gradient(to bottom, #ffffff 0%, #fafafa 100%);
    padding: 36px;
    border-radius: 16px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 8px 16px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    min-width: 400px;
    max-width: 90vw;
    transform: scale(0.9) translateY(20px);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.modal-overlay.show .modal-content {
    transform: scale(1) translateY(0);
}
/* Modal heading styling */
.modal-content h2 {
    margin-top: 0;
    margin-bottom: 24px;
    color: #212121;
    font-size: 1.5rem;
    font-weight: 600;
}
/* Input and textarea styling in the modal */
.modal-content input,
.modal-content textarea {
    width: 100%;
    padding: 12px 16px;
    margin-bottom: 24px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    line-height: 1.5;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background-color: white;
}

.modal-content input:focus,
.modal-content textarea:focus {
    outline: none;
    border-color: #00ced1;
    box-shadow: 0 0 0 3px rgba(0, 206, 209, 0.1);
}
/* Textarea specific styling (larger height, resizable) */
.modal-content textarea {
    min-height: 120px;
    resize: vertical;
}
/* Container for Cancel and Ok buttons (aligned to the right) */
.modal-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}
/* General button styling for modal buttons */
.modal-buttons button {
    padding: 11px 26px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    min-height: 44px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}
/* Cancel button styling (gray) */
.cancel-button {
    background: linear-gradient(to bottom, #f0f0f0, #e0e0e0);
    color: #424242;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
/* Cancel button hover effect */
.cancel-button:hover {
    background: linear-gradient(to bottom, #e8e8e8, #d8d8d8);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}
.cancel-button:active {
    transform: translateY(0) scale(0.98);
}
/* Ok button styling (dark turquoise to match theme) */
.ok-button {
    background: linear-gradient(135deg, #00ced1 0%, #00b8c4 50%, #00a8b0 100%);
    color: white;
    box-shadow: 
        0 4px 12px rgba(0, 206, 209, 0.35),
        0 0 0 0 rgba(0, 206, 209, 0.4);
}
/* Ok button hover effect */
.ok-button:hover {
    background: linear-gradient(135deg, #00b8c4 0%, #00a8b0 50%, #009fa5 100%);
    box-shadow: 
        0 6px 16px rgba(0, 206, 209, 0.45),
        0 0 20px rgba(0, 206, 209, 0.3);
    transform: translateY(-1px);
}
.ok-button:active {
    transform: translateY(0) scale(0.98);
}
.ok-button:focus {
    outline: none;
    box-shadow: 
        0 4px 12px rgba(0, 206, 209, 0.35),
        0 0 0 3px rgba(0, 206, 209, 0.2);
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Responsive Design - Tablet (768px - 1024px) */
@media screen and (max-width: 1024px) {
    .todo-container {
        max-width: 90%;
    }
    
    .button-wrapper {
        max-width: 90%;
    }
    
    .bulk-menu-dropdown {
        left: 0;
    }
    
    .modal-content {
        min-width: 350px;
        padding: 28px;
    }
}

/* Responsive Design - Mobile (< 768px) */
@media screen and (max-width: 768px) {
    body {
        padding: 15px;
    }
    
    h1 {
        font-size: 1.75rem;
        margin-top: 10px;
        margin-bottom: 12px;
    }
    
    .todo-container {
        width: 100%;
        max-width: 100%;
        height: calc(100vh - 200px);
        min-height: 400px;
        border-radius: 8px;
    }
    
    .button-wrapper {
        width: 100%;
        max-width: 100%;
        padding: 0 15px;
    }
    
    .bulk-menu-button {
        margin-top: 0;
    }

    .add-button {
        margin-top: 0;
    }
    
    .modal-content {
        width: 90%;
        min-width: auto;
        max-width: 90vw;
        padding: 24px 20px;
        margin: 20px;
    }
    
    .modal-content h2 {
        font-size: 1.25rem;
        margin-bottom: 20px;
    }
    
    .section-header {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
    
    .todo-item {
        padding: 12px;
        margin-bottom: 6px;
    }
    
    .todo-item-text {
        font-size: 0.9rem;
    }
    
    .edit-button,
    .delete-button {
        min-width: 36px;
        min-height: 36px;
        padding: 8px;
    }

    .drag-handle {
        padding: 6px 4px;
        min-width: 24px;
        min-height: 32px;
    }

    .todo-list {
        padding: 10px;
    }
}

/* Responsive Design - Small Mobile (< 480px) */
@media screen and (max-width: 480px) {
    body {
        padding: 10px;
    }
    
    h1 {
        font-size: 1.5rem;
        margin-top: 8px;
        margin-bottom: 10px;
    }
    
    .todo-container {
        height: calc(100vh - 180px);
        min-height: 350px;
    }
    
    .button-wrapper {
        padding: 0 10px;
        margin-bottom: 4px;
    }
    
    .bulk-menu-button {
        padding: 10px 20px;
        font-size: 0.9rem;
        margin-top: 0;
    }
    
    .add-button {
        padding: 10px 20px;
        font-size: 0.9rem;
        margin-top: 0;
    }
    
    .modal-content {
        width: 95%;
        padding: 20px 16px;
    }
    
    .modal-content h2 {
        font-size: 1.1rem;
    }
    
    .modal-buttons {
        flex-direction: column;
        gap: 8px;
    }
    
    .modal-buttons button {
        width: 100%;
    }
    
    .section-header {
        padding: 8px 10px;
        font-size: 0.85rem;
    }
    
    .todo-item {
        padding: 10px;
        gap: 8px;
    }
    
    .todo-item-text {
        font-size: 0.85rem;
    }

    .drag-handle {
        padding: 8px 6px;
        min-width: 28px;
        min-height: 36px;
    }
}
