/* ============================================================
   Utilities: status dot, priority, task-detail panel, dropdown,
   badge, spinner, empty state
   ============================================================ */

/* Status dot with glow */
.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 3px;
}
.status-dot-todo { background: #94a3b8; box-shadow: 0 0 0 2px rgba(148,163,184,0.2); }
.status-dot-progress { background: #8b5cf6; box-shadow: 0 0 0 2px rgba(139,92,246,0.2); }
.status-dot-done { background: #10b981; box-shadow: 0 0 0 2px rgba(16,185,129,0.2); }

/* Priority colors */
.priority-urgent { color: #ef4444; }
.priority-high { color: #f97316; }
.priority-medium { color: #eab308; }
.priority-low { color: #6b7280; }

/* Task detail panel — fixed overlay */
#task-detail-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 480px;
    height: 100vh;
    z-index: 200;
    border-left: 1px solid #e2e8f0;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.08);
    transform: translateX(0);
    transition: transform 0.2s ease, opacity 0.2s ease;
}
#task-detail-panel.hidden {
    display: block;
    transform: translateX(100%);
    pointer-events: none;
    opacity: 0;
}

/* Dropdown menu */
.dropdown-menu {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 50;
}

/* Badge */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 1px 8px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Loading spinner */
.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #e2e8f0;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Empty state */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    color: #9ca3af;
    text-align: center;
}

/* Generic toast — Toast.show() in modules/core/js/helpers.js */
.td-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translate(-50%, 12px);
    padding: 10px 18px;
    background: #1e293b;
    color: #f8fafc;
    font-size: 13px;
    line-height: 1.3;
    max-width: min(80vw, 480px);
    border-radius: 8px;
    box-shadow: 0 8px 28px rgba(0,0,0,0.22);
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 10001;
    pointer-events: none;
    text-align: center;
}
.td-toast-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}
.td-toast-success { background: #047857; }
.td-toast-error { background: #b91c1c; }
.td-toast-warn { background: #b45309; }
