/* ============================================================
   Board "Focus" blocking modal (press F or context menu → Focus)
   Centered card over blurred backdrop. Goal: zero distractions.
   ============================================================ */

#task-focus-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.55);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
    overflow-y: auto;
    animation: tfm-fade-in 120ms ease-out;
}

@keyframes tfm-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

#task-focus-modal {
    width: 100%;
    max-width: 640px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 30px 80px -20px rgba(15, 23, 42, 0.45);
    padding: 40px 44px 36px;
    position: relative;
    animation: tfm-scale-in 160ms ease-out;
}

@keyframes tfm-scale-in {
    from { opacity: 0; transform: translateY(8px) scale(0.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

#task-focus-modal .tfm-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 18px;
    transition: background 0.15s ease, color 0.15s ease;
}
#task-focus-modal .tfm-close:hover {
    background: #f1f5f9;
    color: #0f172a;
}

#task-focus-modal .tfm-title {
    font-size: 1.625rem;
    line-height: 1.25;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 28px;
    word-wrap: break-word;
}

#task-focus-modal .tfm-section {
    margin-top: 24px;
}
#task-focus-modal .tfm-section-label {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: 10px;
}

/* Subtasks */
#task-focus-modal .tfm-subtasks {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
#task-focus-modal .tfm-subtask {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    transition: background 0.12s ease;
}
#task-focus-modal .tfm-subtask:hover {
    background: #f8fafc;
}
#task-focus-modal .tfm-subtask input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    flex-shrink: 0;
}
#task-focus-modal .tfm-subtask-title {
    font-size: 0.9375rem;
    color: #1e293b;
    line-height: 1.4;
}
#task-focus-modal .tfm-subtask.is-done .tfm-subtask-title {
    color: #94a3b8;
    text-decoration: line-through;
}
#task-focus-modal .tfm-empty {
    font-size: 0.8125rem;
    color: #94a3b8;
    font-style: italic;
    padding: 4px 10px;
}

#task-focus-modal .tfm-subtask {
    position: relative;
}
#task-focus-modal .tfm-subtask-handle {
    width: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    cursor: grab;
    opacity: 0.55;
    transition: opacity 0.12s ease, color 0.12s ease;
    flex-shrink: 0;
    font-size: 16px;
    user-select: none;
}
#task-focus-modal .tfm-subtask:hover .tfm-subtask-handle {
    opacity: 1;
    color: #64748b;
}
#task-focus-modal .tfm-subtask-handle:hover {
    color: #334155;
}
#task-focus-modal .tfm-subtask-handle:active {
    cursor: grabbing;
}
#task-focus-modal .tfm-subtask.is-dragging {
    opacity: 0.4;
}
#task-focus-modal .tfm-subtask.drop-before {
    box-shadow: inset 0 2px 0 0 #3b82f6;
}
#task-focus-modal .tfm-subtask.drop-after {
    box-shadow: inset 0 -2px 0 0 #3b82f6;
}
#task-focus-modal .tfm-subtask-delete {
    margin-left: auto;
    width: 22px;
    height: 22px;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.12s ease, background 0.12s ease, color 0.12s ease;
}
#task-focus-modal .tfm-subtask:hover .tfm-subtask-delete,
#task-focus-modal .tfm-subtask-delete:focus-visible {
    opacity: 1;
}
#task-focus-modal .tfm-subtask-delete:hover {
    background: #fee2e2;
    color: #b91c1c;
}

#task-focus-modal .tfm-subtask-add-row {
    margin-top: 6px;
    padding: 2px 10px;
}
#task-focus-modal .tfm-subtask-add-input {
    width: 100%;
    border: none;
    background: transparent;
    padding: 8px 0;
    font-size: 0.9375rem;
    color: #1e293b;
    outline: none;
    border-bottom: 1px dashed transparent;
    transition: border-color 0.15s ease;
}
#task-focus-modal .tfm-subtask-add-input::placeholder {
    color: #cbd5e1;
}
#task-focus-modal .tfm-subtask-add-input:focus {
    border-bottom-color: #cbd5e1;
}

/* URLs */
#task-focus-modal .tfm-urls {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
#task-focus-modal .tfm-url {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 8px;
    background: #f1f5f9;
    color: #1d4ed8;
    text-decoration: none;
    font-size: 0.875rem;
    word-break: break-all;
    transition: background 0.12s ease;
}
#task-focus-modal .tfm-url:hover {
    background: #e0e7ff;
    text-decoration: underline;
}
#task-focus-modal .tfm-url i {
    color: #64748b;
    flex-shrink: 0;
}

#task-focus-modal .tfm-hint {
    margin-top: 28px;
    text-align: center;
    font-size: 0.6875rem;
    color: #cbd5e1;
    letter-spacing: 0.04em;
}
#task-focus-modal .tfm-hint kbd {
    background: #f1f5f9;
    color: #64748b;
    border-radius: 4px;
    padding: 1px 6px;
    font-family: ui-monospace, SFMono-Regular, monospace;
    font-size: 0.6875rem;
}
