:root {
    --bg-gradient: radial-gradient(circle at 50% 50%, #0d0f1a 0%, #05060b 100%);
    --glass-bg: rgba(18, 20, 38, 0.65);
    --glass-border: rgba(255, 255, 255, 0.08);
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --text-muted-dark: #6b7280;
    --primary: #5d5fef;
    --primary-glow: rgba(93, 95, 239, 0.4);
    --primary-hover: #7072ff;
    --accent-cyan: #00f2fe;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --sidebar-width: 340px;
    --card-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Outfit', sans-serif;
    -webkit-font-smoothing: antialiased;
}

body {
    background: var(--bg-gradient);
    color: var(--text-main);
    height: 100vh;
    display: flex;
    overflow: hidden;
    position: relative;
}

body::before,
body::after {
    content: "";
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    filter: blur(140px);
    z-index: -1;
    opacity: 0.18;
}

body::before {
    background: var(--primary);
    top: 15%;
    left: 10%;
    animation: float-blob-1 12s infinite alternate ease-in-out;
}

body::after {
    background: var(--accent-cyan);
    bottom: 15%;
    right: 15%;
    animation: float-blob-2 15s infinite alternate ease-in-out;
}

@keyframes float-blob-1 {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(60px, 40px) scale(1.15);
    }
}

@keyframes float-blob-2 {
    0% {
        transform: translate(0, 0) scale(1.1);
    }

    100% {
        transform: translate(-80px, -50px) scale(0.9);
    }
}

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

.app-container {
    display: flex;
    width: 100%;
    height: 100%;
    padding: 24px;
    gap: 24px;
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.sidebar {
    width: var(--sidebar-width);
    flex-shrink: 0;
    transition: var(--transition-smooth);
}

.sidebar-header {
    padding: 24px;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.brand-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary), var(--accent-cyan));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px var(--primary-glow);
}

.brand-logo i {
    color: #fff;
    font-size: 1.1rem;
}

.brand-title {
    font-size: 1.25rem;
    font-weight: 700;
    background: linear-gradient(to right, #fff, #cbd5e1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sidebar-actions {
    display: flex;
    gap: 8px;
}

.search-container {
    position: relative;
    flex: 1;
}

.search-container i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.search-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 10px 12px 10px 36px;
    color: var(--text-main);
    outline: none;
}

.search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
}

.btn-add-target {
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    border: none;
    border-radius: 10px;
    color: white;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(93, 95, 239, 0.3);
}

.target-list {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    list-style: none;
}

.target-item {
    padding: 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid transparent;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    /* Mencegah kartu digencet/disusutkan saat konten bertambah */
    min-height: max-content;
}

.target-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.target-item.active {
    background: rgba(93, 95, 239, 0.1);
    border-color: rgba(93, 95, 239, 0.3);
}

.target-item.active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--primary);
    border-radius: 0 4px 4px 0;
}

.target-item-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.target-item-title {
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.4;
}

.target-item-actions {
    opacity: 0;
    display: flex;
    gap: 4px;
}

.target-item:hover .target-item-actions {
    opacity: 1;
}

.btn-icon-sm {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon-sm:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
}

.btn-icon-sm.delete:hover {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
}

.target-progress-bar-container {
    width: 100%;
    height: 6px;
    /* Ditingkatkan dari 4px agar lebih jelas */
    background: rgba(255, 255, 255, 0.15);
    /* Ditingkatkan dari 0.05 (5%) menjadi 15% agar track bar selalu terlihat */
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    /* Tambahan batas halus */
}

.target-progress-bar {
    height: 100%;
    background: linear-gradient(to right, var(--primary), var(--accent-cyan));
    border-radius: 10px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 8px var(--primary-glow);
    /* Tambahan efek menyala */
}

.target-item-footer {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.status-badge {
    padding: 3px 8px;
    border-radius: 20px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.65rem;
}

.status-badge.pending {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning);
}

.status-badge.completed {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
}

.main-content {
    flex: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.info-bar {
    padding: 16px 32px;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sync-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.sync-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--success);
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.5;
    }
}

.btn-logout {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #f87171;
    padding: 7px 14px;
    border-radius: 10px;
    font-size: 0.82rem;
    cursor: pointer;
}

.detail-panel {
    padding: 32px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 28px;
    overflow-y: auto;
}

.detail-header {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.detail-title {
    font-size: 1.75rem;
    font-weight: 700;
    background: linear-gradient(to right, #fff, #e2e8f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    border: 1px solid transparent;
    outline: none;
    width: 100%;
}

.detail-title:focus {
    border-color: var(--glass-border);
    -webkit-text-fill-color: var(--text-main);
}

.detail-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    border: 1px solid transparent;
    outline: none;
}

.detail-desc:focus {
    border-color: var(--glass-border);
    color: var(--text-main);
}

.progress-stats-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stats-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.stats-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 600;
}

.stats-value {
    font-size: 1.8rem;
    font-weight: 700;
}

.radial-progress {
    width: 60px;
    height: 60px;
    transform: rotate(-90deg);
}

.radial-progress circle {
    fill: none;
    stroke-width: 4;
    stroke-linecap: round;
}

.radial-progress .bg-circle {
    stroke: rgba(255, 255, 255, 0.05);
}

.radial-progress .fg-circle {
    stroke: url(#progressGradient);
    stroke-dasharray: 176;
    stroke-dashoffset: 176;
    transition: stroke-dashoffset 0.6s ease-out;
}

.section-title {
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title i {
    color: var(--primary);
}

.subtask-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
}

.subtask-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.subtask-item {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 14px 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    position: relative;
}

.subtask-main-row {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
}

.checkbox-container {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkmark {
    height: 22px;
    width: 22px;
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

.checkmark i {
    color: white;
    font-size: 0.75rem;
    opacity: 0;
    transform: scale(0.6);
    transition: 0.2s;
}

.checkbox-container input:checked~.checkmark {
    background: var(--primary);
    border-color: var(--primary);
}

.checkbox-container input:checked~.checkmark i {
    opacity: 1;
    transform: scale(1);
}

.subtask-text-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.subtask-name {
    font-size: 0.95rem;
    font-weight: 500;
    outline: none;
    border: 1px solid transparent;
}

.subtask-name.completed {
    text-decoration: line-through;
    color: var(--text-muted);
}

.subtask-notes {
    font-size: 0.8rem;
    color: var(--text-muted-dark);
    outline: none;
}

.subtask-actions {
    opacity: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.subtask-item:hover .subtask-actions {
    opacity: 1;
}

.btn-expand-sub {
    background: none;
    border: none;
    color: var(--text-muted-dark);
    font-size: 0.75rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}

.sub-subtask-section {
    width: 100%;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sub-subtask-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sub-subtask-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
}

.sub-subtask-name {
    flex: 1;
    font-size: 0.85rem;
    outline: none;
}

.sub-subtask-name.completed {
    text-decoration: line-through;
    color: var(--text-muted-dark);
}

.sub-subtask-delete {
    opacity: 0;
}

.sub-subtask-item:hover .sub-subtask-delete {
    opacity: 1;
}

.sub-subtask-adder {
    display: flex;
    gap: 8px;
    margin-top: 2px;
}

.sub-subtask-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 5px 10px;
    color: var(--text-main);
    font-size: 0.82rem;
    outline: none;
}

.btn-add-sub-subtask {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    background: rgba(93, 95, 239, 0.12);
    border: 1px solid rgba(93, 95, 239, 0.3);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.quick-input-container {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 6px 12px;
    margin-top: auto;
}

.quick-input-icon {
    color: var(--text-muted);
}

.quick-input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 0.95rem;
    outline: none;
    padding: 10px 0;
}

.btn-add-step {
    background: rgba(255, 255, 255, 0.05);
    border: none;
    border-radius: 8px;
    color: var(--text-main);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 40px;
    text-align: center;
    color: var(--text-muted);
    gap: 20px;
}

.empty-state-icon {
    width: 80px;
    height: 80px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary);
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5, 6, 11, 0.7);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
    padding: 20px;
}

.modal-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.modal-box {
    background: rgba(20, 22, 43, 0.9);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    width: 100%;
    max-width: 460px;
    padding: 28px;
    transform: translateY(25px);
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.modal-overlay.show .modal-box {
    transform: translateY(0);
}

.modal-title {
    font-size: 1.35rem;
    font-weight: 700;
}

.modal-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 12px 16px;
    color: var(--text-main);
    font-size: 0.95rem;
    outline: none;
}

.modal-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 8px;
}

.btn-modal-cancel {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    padding: 10px 20px;
    border-radius: 10px;
    cursor: pointer;
}

.btn-modal-submit {
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    border: none;
    color: white;
    padding: 10px 24px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
}

.loading-overlay {
    position: absolute;
    inset: 0;
    background: rgba(5, 6, 11, 0.85);
    backdrop-filter: blur(8px);
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    transition: 0.4s;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    border-top-color: var(--primary);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.saving-indicator {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    padding: 12px 20px;
    border-radius: 12px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 10px;
    transform: translateY(100px);
    opacity: 0;
    transition: 0.3s;
}

.saving-indicator.show {
    transform: translateY(0);
    opacity: 1;
}

.toast-notification {
    position: fixed;
    top: 24px;
    right: 24px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 14px 20px;
    border-radius: 12px;
    z-index: 1100;
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateY(-100px);
    opacity: 0;
    transition: 0.3s;
}

.toast-notification.show {
    transform: translateY(0);
    opacity: 1;
}

#login-screen {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--bg-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    transition: 0.5s;
}

#login-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

.login-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    background: rgba(18, 20, 40, 0.75);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px 36px 36px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.login-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.login-brand-logo {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: white;
}

.btn-google-signin {
    width: 100%;
    padding: 14px 20px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.google-icon {
    width: 22px;
    height: 22px;
}

.user-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    border-radius: 40px;
    padding: 4px 12px 4px 4px;
}

.user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

/* ============================================================
   RESPONSIVE MOBILE VIEW (Maksimal Lebar 768px)
   ============================================================ */
.btn-toggle-sidebar {
    display: none;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    width: 36px;
    height: 36px;
    border-radius: 8px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-right: 10px;
    flex-shrink: 0;
}

.sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(5, 6, 11, 0.8);
    backdrop-filter: blur(4px);
    z-index: 900;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
}

.sidebar-backdrop.show {
    opacity: 1;
    pointer-events: auto;
}

.category-badge {
    font-size: 0.6rem;
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
    display: inline-block;
    margin-bottom: 4px;
    text-transform: uppercase;
    display: inline-block;
}

.priority-badge {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
}

@media screen and (max-width: 768px) {
    body {
        overflow-x: hidden;
    }

    .app-container {
        padding: 10px;
        gap: 0;
    }

    .sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        bottom: 0;
        z-index: 1000;
        width: 85%;
        max-width: 320px;
        border-radius: 0 20px 20px 0;
        background: rgba(13, 15, 26, 0.95);
        box-shadow: 20px 0 50px rgba(0, 0, 0, 0.8);
    }

    .sidebar.open {
        left: 0;
    }

    .btn-toggle-sidebar {
        display: flex;
    }

    .info-bar {
        padding: 12px 16px;
    }

    #sync-text {
        font-size: 0.75rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 130px;
    }

    .detail-panel {
        padding: 16px;
        gap: 20px;
    }

    .detail-title {
        font-size: 1.35rem;
    }

    .progress-stats-card {
        padding: 14px 16px;
    }

    .subtask-item {
        padding: 12px;
        gap: 12px;
    }

    .target-item-actions,
    .subtask-actions,
    .sub-subtask-delete {
        opacity: 1;
    }

    .modal-box {
        padding: 20px;
    }

    /* Efek Stagnasi (Si "Berteriak" halus) */
    .target-item.stagnant {
        border: 1px solid rgba(245, 158, 11, 0.4);
        background: rgba(245, 158, 11, 0.05);
    }

    /* Header Detail Baru */
    .detail-header {
        display: flex;
        flex-direction: column;
        gap: 8px;
        margin-bottom: 20px;
    }

    .detail-meta-row {
        display: flex;
        gap: 20px;
        align-items: flex-end;
        margin-top: 10px;
    }

    .meta-label {
        font-size: 0.7rem;
        color: var(--text-muted);
        text-transform: uppercase;
        font-weight: 700;
        margin-bottom: 4px;
        display: block;
    }

}

/* Komponen Input & Badge */
.select-styled {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: white;
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
}

.priority-Urgent {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.priority-High {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.priority-Medium {
    background: rgba(93, 95, 239, 0.2);
    color: #818cf8;
    border: 1px solid rgba(93, 95, 239, 0.3);
}

.priority-Low {
    background: rgba(156, 163, 175, 0.2);
    color: #9ca3af;
    border: 1px solid rgba(156, 163, 175, 0.3);
}

.priority-completed {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.target-item {
    padding: 10px 12px;
    gap: 6px;
    flex-shrink: 0;
    min-height: max-content;
}

.target-item.stagnant {
    border: 1px solid rgba(245, 158, 11, 0.4);
    background: rgba(245, 158, 11, 0.05);
}

@keyframes blink-warning {
    0% {
        opacity: 1;
        border-color: var(--danger);
    }

    50% {
        opacity: 0.4;
        border-color: transparent;
    }

    100% {
        opacity: 1;
        border-color: var(--danger);
    }
}

.target-item.stagnant {
    border: 2px solid var(--danger) !important;
    animation: blink-warning 1.5s infinite;
}