:root {
    --bg: #0b0f1a;
    --card: #161b2b;
    --accent: #00d2ff;
    --accent-glow: rgba(0, 210, 255, 0.3);
    --text: #ffffff;
    --text-dim: #94a3b8;
    --danger: #ff4b2b;
    --success: #00c853;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Inter', sans-serif; background: var(--bg); color: var(--text); height: 100vh; overflow: hidden; }

.app-container { display: flex; height: 100vh; }


/* Estilo padrão para todos os links */
a {
    color: #00d2ff;                /* Cor do link */
    text-decoration: none;        /* Remove o sublinhado padrão */
    font-weight: bold;            /* Deixa em negrito */
    transition: color 0.3s ease;  /* Transição suave de cor */
    opacity:1;
}


a:hover {
    opacity:0.7;
}




/* 1. Ajuste no Container da Lista para permitir crescimento/encolhimento */
.list-container {
    flex: 1;                /* Faz o container ocupar todo o espaço restante */
    display: flex;
    flex-direction: column;
    overflow: hidden;       /* Impede que o container "vaze" para fora do sidebar */
    margin-top: 10px;
}

/* 2. Ajuste na Lista de Tarefas propriamente dita */
.task-list {
    flex-grow: 1;
    overflow-y: auto;       /* Ativa o scroll vertical quando necessário */
    padding-right: 8px;     /* Espaço para a scrollbar não cobrir o conteúdo */
}

/* 3. Estilização da Scrollbar (Estilo Moderno/Dark) */
.task-list::-webkit-scrollbar {
    width: 6px;
}

.task-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
}

.task-list::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 10px;
    opacity: 0.5;
}

.task-list::-webkit-scrollbar-thumb:hover {
    background: var(--success);
}







/* Sidebar */
#sidebar {
    width: 350px; 
    background: var(--card); 
    border-right: 1px solid rgba(255,255,255,0.05);
    display: flex; 
    flex-direction: column; 
    padding: 25px;
    height: 100vh; /* Garante que o sidebar tenha a altura da tela inteira */
}
.sidebar-header h1 { color: var(--accent); margin-bottom: 20px; font-weight: 800; }
.btn-new {
    background: var(--accent); color: #000; border: none; padding: 12px;
    border-radius: 10px; font-weight: 700; cursor: pointer; transition: 0.3s;
}
.list-label { font-size: 11px; text-transform: uppercase; color: var(--text-dim); margin: 25px 0 10px; letter-spacing: 1px; }


/* Item da Lista */
.task-item {
    background: rgba(255,255,255,0.03); border-radius: 12px; padding: 12px 15px;
    margin-bottom: 10px; cursor: pointer; border: 1px solid transparent;
    display: flex; justify-content: space-between; align-items: center; transition: 0.2s;
}
.task-item:hover { background: rgba(255,255,255,0.08); }
.task-item.selected { border-color: var(--accent); background: rgba(0, 210, 255, 0.05); }

/* Tarefa do Topo (Destaque) */
.task-item:first-child { border: 2px solid var(--accent); box-shadow: 0 0 15px var(--accent-glow); }

/* Localize este bloco e deixe assim: */
.task-item-info {
    flex-grow: 1;
    /* pointer-events: none;  <-- REMOVA OU COMENTE ESTA LINHA */
    cursor: pointer; /* Garante que mostre a "mãozinha" ao passar o mouse */
}
.task-item-info strong { display: block; font-size: 14px; }
.task-item-info span { font-size: 11px; color: var(--text-dim); }
.btn-del-small { background: none; border: none; color: var(--text-dim); cursor: pointer; padding: 5px; font-size: 16px; }
.btn-del-small:hover { color: var(--danger); }

/* Main Content */
#content { flex-grow: 1; padding: 60px; display: flex; flex-direction: column; align-items: center; justify-content: center; }

.status-indicator { background: var(--accent); color: #000; font-size: 13px; font-weight: 900; padding: 12px 16px; border-radius: 20px; margin-bottom: 25px; }
.main-title-input {
    background: none; border: none; color: #fff; font-size: 2.5rem; font-weight: 700;
    text-align:; border-bottom: 2px solid transparent; transition: 0.3s; width: 100%;
}
.main-title-input:focus { border-bottom-color: var(--accent); outline: none; }

#timerDisplay { font-size: 12rem; font-weight: 800; font-variant-numeric: tabular-nums; text-shadow: 0 0 50px var(--accent-glow); margin: 20px 0; }

.main-controls { display: flex; gap: 20px; margin-bottom: 50px; }
.btn-start { background: var(--accent); color: #000; padding: 18px 60px; border-radius: 50px; border: none; font-size: 1.5rem; font-weight: 700; cursor: pointer; box-shadow: 0 10px 20px var(--accent-glow); }
.btn-reset { background: rgba(255,255,255,0.05); color: #fff; border: 1px solid var(--text-dim); padding: 10px 25px; border-radius: 10px; cursor: pointer; }

.task-adjustments { display: flex; align-items: center; gap: 20px; background: rgba(255,255,255,0.03); padding: 20px; border-radius: 20px; }
.btn-priority { background: var(--success); border: none; padding: 10px 15px; border-radius: 8px; font-weight: 600; cursor: pointer; }

/* Mobile */
@media (max-width: 900px) {
    .app-container { flex-direction: column; }
    #sidebar { width: 100%; height: 40%; }
    #timerDisplay { font-size: 6rem; }
}

.toast { position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%); background: var(--accent); color: #000; padding: 12px 30px; border-radius: 50px; font-weight: 700; opacity: 0; transition: 0.3s; z-index: 100; }
.toast.show { opacity: 1; }