/* Estilos para o corpo da página */
body {
    /* Família de fontes para melhor legibilidade */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    /* Altura da linha para melhor espaçamento */
    line-height: 1.6;
    /* Remove margens e preenchimentos padrão */
    margin: 0;
    padding: 0;
    /* Fundo escuro moderno */
    background-color: #0a0a0a;
    /* Texto claro para contraste */
    color: #e0e0e0;
}

/* Estilos para o cabeçalho */
/*
  A classe .header controla a área azul superior.
  - height/min-height/max-height garantem que o header fique entre 140px e 180px.
  - padding reduzido e direta para evitar espaço vazio extra.
  - display:flex + justify-content/align-items centralizam o conteúdo.
  - margin-left ajusta o posicionamento em relação à sidebar.
*/
.header {
    background-color: #1a1a2e;
    color: #e0e0e0;
    height: 160px;
    min-height: 140px;
    max-height: 180px;
    padding: 0.35rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 0 0 12px 12px;
    box-sizing: border-box;
    position: relative;
}

.main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.main-nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.5rem;
}

.main-nav li {
    display: inline;
}

.main-nav a {
    color: #e0e0e0;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.main-nav a:hover {
    /* Remove sublinhado */
    text-decoration: none;
    /* Texto claro */
    color: #ffffff;
}

/*
  .logo-container é o wrapper direto do logo.
  - overflow:hidden garante que o logo não 'vaze' para fora do header
  - display:flex centraliza horizontal/verticalmente
*/
.logo-container {
    display: flex;
    align-items: center;
    margin: 0;
}


.auth-section {
    display: flex;
    align-items: center;
}

.auth-links {
    display: flex;
    gap: 15px;
}

.auth-link {
    color: #e0e0e0;
    text-decoration: none;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.auth-link:hover {
    background-color: #3a3a3a;
}

#user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #e0e0e0;
}

.logout-btn {
    background-color: #ff6b6b;
    color: #e0e0e0;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9em;
    transition: background-color 0.3s;
}

.logout-btn:hover {
    background-color: #ff5252;
}

/* Estilos para páginas de autenticação */
.auth-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #0a0a0a;
    color: #e0e0e0;
}

.auth-container {
    background-color: #232323;
    border: 1px solid #3a3a3a;
    border-radius: 12px;
    padding: 2rem;
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.auth-container h2 {
    margin-bottom: 1.5rem;
    color: #e0e0e0;
}

.auth-container .form-group {
    margin-bottom: 1rem;
    text-align: left;
}

.auth-container label {
    display: block;
    margin-bottom: 0.5rem;
    color: #e0e0e0;
}

.auth-container input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #3a3a3a;
    border-radius: 4px;
    background-color: #1a1a1a;
    color: #e0e0e0;
    box-sizing: border-box;
}

.auth-container button {
    background-color: #1a1a2e;
    color: #e0e0e0;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
    width: 100%;
    margin-top: 1rem;
}

.auth-container button:hover {
    background-color: #2a2a3e;
}

.auth-container p {
    margin-top: 1rem;
}

.auth-container a {
    color: #4ecdc4;
    text-decoration: none;
}

.auth-container a:hover {
    text-decoration: underline;
}

/*
  Estilização do logo:
  - max-width/max-height limitam o tamanho, mantendo a proporção (width/height auto)
  - transform scale deixa a logo visualmente maior sem mexer no header
  - sem bordas/sombra ou fundo branco: border e box-shadow removidos
  - margin/padding zero para evitar espaço extra
*/.logo-container img,
.logo {
    max-width: 450px;
    max-height: 280px;
    width: auto;
    height: auto;
    transform-origin: center;
    border: none;
    box-shadow: none;
    outline: none;
    background: transparent;
    margin: 0;
    padding: 0;
    border-radius: 0;
    display: block;
}

.logo-container {
    overflow: hidden;
}

.emotional-message {
    font-size: 0.9rem;
    margin-top: 0.5rem;
    padding: 0.5rem;
    border-radius: 8px;
    text-align: center;
    transition: background-color 0.3s ease;
    max-width: 100%;
    box-sizing: border-box;
}

.emotional-motivado {
    background-color: rgba(76, 175, 80, 0.2);
    color: #81c784;
}

.emotional-neutro {
    background-color: rgba(33, 150, 243, 0.2);
    color: #64b5f6;
}

.emotional-dificuldade {
    background-color: rgba(255, 152, 0, 0.2);
    color: #ffb74d;
}

/* Estilos para o conteúdo principal */
main {
    max-width: calc(100vw - 40px);
    margin: 100px auto 2rem auto;
    padding: 0 1rem;
}

.main-top-row {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 1rem;
}

#adicionar-meta {
    flex: 2;
    background-color: #1f1f3e;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 1rem;
    max-height: calc(100vh - 160px);
    overflow-y: auto;
}

#calendar-widget {
    flex: 1;
    position: static;
    top: auto;
    height: auto;
}

section#minhas-metas,
section#progresso,
section#dashboard {
    margin-top: 1rem;
}

body.sidebar-collapsed main {
    margin-left: 80px;
}

section {
    /* Fundo levemente mais claro que o principal */
    background-color: #2a2a3e;
    /* Preenchimento interno */
    padding: 2rem;
    /* Bordas arredondadas */
    border-radius: 12px;
    /* Sombra leve para profundidade */
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    /* Borda sutil */
    border: 1px solid #333;
}

section h2 {
    /* Texto claro */
    color: #e0e0e0;
    /* Borda inferior com cor destaque */
    border-bottom: 3px solid #ff00ff;
    /* Preenchimento inferior */
    padding-bottom: 0.5rem;
    /* Margem inferior */
    margin-bottom: 1.5rem;
    /* Tamanho da fonte */
    font-size: 1.8rem;
}

/* Filtros */
.filters {
    display: grid;
    grid-template-columns: auto 1fr auto 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: center;
}

.filters label {
    font-weight: bold;
    color: #b0b0b0;
    white-space: nowrap;
}

.filters select {
    padding: 0.5rem;
    border: 1px solid #555;
    border-radius: 8px;
    background-color: #1a1a2e;
    color: #e0e0e0;
    font-size: 1rem;
}

.filters select:focus {
    outline: none;
    border-color: #ff00ff;
    box-shadow: 0 0 8px rgba(255, 0, 255, 0.3);
}

.filters input[type="text"] {
    padding: 0.5rem;
    border: 1px solid #555;
    border-radius: 8px;
    background-color: #1a1a2e;
    color: #e0e0e0;
    font-size: 1rem;
}

.filters input[type="text"]:focus {
    outline: none;
    border-color: #ff00ff;
    box-shadow: 0 0 8px rgba(255, 0, 255, 0.3);
}

form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.form-row {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
}

.form-group {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0.2rem;
}

form label {
    font-weight: bold;
    color: #b0b0b0;
    font-size: 0.85rem;
}

form input, form select, form textarea {
    padding: 0.4rem;
    border: 1px solid #555;
    border-radius: 6px;
    background-color: #1a1a2e;
    color: #e0e0e0;
    font-size: 0.85rem;
}

form textarea {
    resize: vertical;
    min-height: 50px;
}

/* Calendário Meta Track */
.calendar-widget {
    position: static;
    width: 100%;
    background: #1a1a2e;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 0.85rem;
    box-shadow: 0 10px 26px rgba(0,0,0,0.45);
    color: #e0e0e0;
    z-index: 1;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.calendar-header span {
    font-size: 0.95rem;
    font-weight: bold;
    text-transform: capitalize;
}

.calendar-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 0.6rem;
}

.calendar-table th,
.calendar-table td {
    width: 14.28%;
    padding: 0.28rem;
    text-align: center;
    font-size: 0.74rem;
}

.calendar-day {
    display: inline-flex;
    width: 28px;
    height: 28px;
    line-height: 28px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
}

.calendar-day:hover {
    background-color: rgba(100, 0, 255, 0.35);
}

.day-with-goal {
    background-color: rgba(138, 43, 226, 0.25);
    border: 1px solid #ff00ff;
}

.day-in-progress {
    background-color: rgba(0, 218, 198, 0.3);
    border: 2px solid #03dac6;
    transition: all 0.2s ease;
}

.day-started {
    background-color: rgba(0, 218, 198, 0.5) !important;
    border: 2px solid #03dac6 !important;
    font-weight: bold;
    color: #e0e0e0;
}

.day-completed {
    background-color: rgba(76, 175, 80, 0.5) !important;
    border: 2px solid #4caf50 !important;
    font-weight: bold;
    color: #e0e0e0;
}

.day-multiple {
    background: repeating-linear-gradient(
        45deg,
        rgba(255, 107, 107, 0.3),
        rgba(255, 107, 107, 0.3) 1px,
        rgba(78, 205, 196, 0.3) 1px,
        rgba(78, 205, 196, 0.3) 2px,
        rgba(69, 183, 209, 0.3) 2px,
        rgba(69, 183, 209, 0.3) 3px
    );
    border: 2px solid #e0e0e0 !important;
    font-weight: bold;
    box-shadow: inset 0 0 0 1px rgba(255, 107, 107, 0.6), inset 0 0 0 0.5px rgba(78, 205, 196, 0.6);
}

.calendar-details {
    max-height: 220px;
    overflow-y: auto;
    border: 1px solid #555;
    border-radius: 8px;
    padding: 0.5rem;
    background: #12122a;
}

.calendar-details h3 {
    margin: 0 0 0.5rem;
    font-size: 0.9rem;
}

.calendar-details ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.calendar-details li {
    font-size: 0.82rem;
    margin-bottom: 0.35rem;
    color: #cfb9ff;
}

.diary-section {
    margin-top: 1rem;
    border-top: 1px solid #555;
    padding-top: 0.5rem;
}

.diary-section h4 {
    margin: 0 0 0.5rem;
    font-size: 0.9rem;
    color: #e0e0e0;
}

.diary-entry {
    margin-bottom: 0.5rem;
}

.diary-entry label {
    display: block;
    font-size: 0.8rem;
    color: #cfb9ff;
    margin-bottom: 0.25rem;
}

.diary-entry textarea {
    width: 100%;
    background-color: #1a1a2e;
    color: #e0e0e0;
    border: 1px solid #555;
    border-radius: 4px;
    padding: 0.25rem;
    font-size: 0.8rem;
    resize: vertical;
}

.diary-entry textarea:focus {
    outline: none;
    border-color: #8a2be2;
}

.calendar-tooltip {
    position: absolute;
    padding: 0.35rem 0.5rem;
    border-radius: 5px;
    background: rgba(5, 5, 30, 0.96);
    border: 1px solid #8a2be2;
    color: #fff;
    font-size: 0.70rem;
    pointer-events: none;
    z-index: 1500;
    display: none;
}


form button {
    align-self: flex-start;
    padding: 0.5rem 1rem;
    background-color: #8a2be2;
    color: #e0e0e0;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: bold;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

/* Hover para botão do formulário */
form button:hover {
    /* Fundo neon rosa */
    background-color: #ff00ff;
    /* Brilho */
    box-shadow: 0 0 12px rgba(255, 0, 255, 0.5);
}

/* Estilos para listas não ordenadas */
ul {
    /* Remove estilo de lista */
    list-style: none;
    /* Remove preenchimento */
    padding: 0;
    /* Layout em grid responsivo */
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    /* Espaçamento entre itens */
    gap: 1rem;
}

/* Estilos para itens de lista */
li {
    /* Fundo escuro */
    background-color: #1a1a2e;
    /* Preenchimento interno */
    padding: 1.5rem;
    /* Bordas arredondadas */
    border-radius: 8px;
    /* Borda esquerda com cor destaque */
    border-left: 5px solid #ff00ff;
    /* Sombra leve */
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    /* Layout flex vertical */
    display: flex;
    flex-direction: column;
    /* Espaçamento entre elementos */
    gap: 0.5rem;
}

/* Header da meta */
.meta-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.meta-header h3 {
    margin: 0;
    color: #e0e0e0;
    font-size: 1.2rem;
}

.status {
    color: #b0b0b0;
    font-weight: bold;
}

.toggle-details {
    background: none;
    border: none;
    color: #e0e0e0;
    font-size: 1.2rem;
    cursor: pointer;
    transition: transform 0.2s;
}

.toggle-details:hover {
    color: #ff00ff;
}

/* Detalhes da meta */
.meta-details {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #333;
}

.meta-details p {
    margin: 0.25rem 0;
    color: #b0b0b0;
}

/* Ações da meta */
.meta-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-top: 1rem;
}

.meta-actions input[type="checkbox"] {
    margin: 0;
}

.meta-actions label {
    margin-left: 0.5rem;
}

/* Checkbox dentro de li */
li input[type="checkbox"] {
    /* Alinha à esquerda */
    align-self: flex-start;
    /* Remove margem */
    margin: 0;
}

/* Label dentro de li */
li label {
    /* Ocupa espaço restante */
    flex: 1;
}

/* Modo Foco Styles */
.focus-mode-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.focus-mode-overlay.show {
    opacity: 1;
}

.focus-mode-content {
    text-align: center;
    color: white;
    max-width: 600px;
    padding: 2rem;
}

.focus-mode-content h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #e0e0e0;
}

.pomodoro-timer {
    font-size: 5rem;
    font-weight: bold;
    margin: 2rem 0;
    color: #4ecdc4;
    font-family: monospace;
    text-shadow: 0 0 20px rgba(78, 205, 196, 0.5);
}

.focus-mode-controls {
    margin-top: 2rem;
}

.focus-btn {
    background-color: #8a2be2;
    color: white;
    border: none;
    padding: 1rem 2rem;
    margin: 0 0.5rem;
    border-radius: 8px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.focus-btn:hover {
    background-color: #6a1bb8;
}

.exit-btn {
    background-color: #ff6b6b;
}

.exit-btn:hover {
    background-color: #e55a5a;
}

/* Títulos h3 dentro de li */
li h3 {
    /* Remove margem */
    margin: 0;
    /* Texto claro */
    color: #e0e0e0;
    /* Tamanho da fonte */
    font-size: 1.2rem;
}

/* Parágrafos dentro de li */
li p {
    /* Margem vertical pequena */
    margin: 0.25rem 0;
    /* Texto cinza claro */
    color: #b0b0b0;
}

/* Botões de iniciar e excluir */
.start-btn, .delete-btn {
    /* Preenchimento interno */
    padding: 0.5rem 1rem;
    /* Sem borda */
    border: none;
    /* Bordas arredondadas */
    border-radius: 6px;
    /* Cursor de ponteiro */
    cursor: pointer;
    /* Tamanho da fonte */
    font-size: 0.9rem;
    /* Negrito */
    font-weight: bold;
    /* Margem superior */
    margin-top: 0.5rem;
    /* Alinha à esquerda */
    align-self: flex-start;
    /* Transição para hover */
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

/* Botão de iniciar */
.start-btn {
    /* Fundo rosa neon */
    background-color: #ff00ff;
    /* Texto escuro */
    color: #0a0a0a;
}

/* Hover para botão de iniciar */
.start-btn:hover {
    /* Fundo mais claro */
    background-color: #ff33ff;
    /* Brilho */
    box-shadow: 0 0 8px rgba(255, 0, 255, 0.5);
}

/* Botão de excluir */
.delete-btn {
    /* Fundo roxo */
    background-color: #8a2be2;
    /* Texto claro */
    color: #e0e0e0;
}

/* Hover para botão de excluir */
.delete-btn:hover {
    /* Fundo mais escuro */
    background-color: #9932cc;
    /* Brilho */
    box-shadow: 0 0 8px rgba(138, 43, 226, 0.5);
}

/* Barra de progresso */
progress {
    /* Largura total */
    width: 100%;
    /* Altura */
    height: 20px;
    /* Bordas arredondadas */
    border-radius: 10px;
    /* Fundo escuro */
    background-color: #1a1a2e;
    /* Borda sutil */
    border: 1px solid #333;
}

progress::-webkit-progress-bar {
    /* Fundo escuro */
    background-color: #1a1a2e;
    /* Bordas arredondadas */
    border-radius: 10px;
}

progress::-webkit-progress-value {
    /* Fundo neon rosa */
    background-color: #ff00ff;
    /* Bordas arredondadas */
    border-radius: 10px;
    /* Brilho */
    box-shadow: 0 0 8px rgba(255, 0, 255, 0.5);
}

progress::-moz-progress-bar {
    /* Fundo neon rosa */
    background-color: #ff00ff;
    /* Bordas arredondadas */
    border-radius: 10px;
}

/* Estilos para o rodapé */
footer {
    /* Alinhamento centralizado */
    text-align: center;
    /* Preenchimento interno */
    padding: 2rem;
    /* Cor de fundo roxa escura */
    background-color: #190019;
    /* Cor do texto clara */
    color: #FBE4D8;
    /* Margem superior */
    margin-top: 2rem;
    /* Borda superior roxa */
    border-top: 1px solid #2B124C;
}

/* Grid do dashboard */
.dashboard-grid {
    /* Layout em grid responsivo */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    /* Espaçamento entre itens */
    gap: 1rem;
    /* Margem inferior */
    margin-bottom: 1rem;
}

/* Cartões do dashboard */
.card {
    /* Fundo levemente mais claro */
    background-color: #2a2a3e;
    /* Borda sutil */
    border: 1px solid #333;
    /* Bordas arredondadas */
    border-radius: 12px;
    /* Preenchimento interno */
    padding: 1rem;
    /* Texto claro */
    color: #e0e0e0;
    /* Sombra leve */
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
    /* Transição para hover */
    transition: box-shadow 0.2s ease;
}

/* Hover para cards */
.card:hover {
    /* Brilho aumentado */
    box-shadow: 0 4px 16px rgba(0,0,0,0.6);
}

/* Wrapper para gráficos */
.charts-wrapper {
    /* Layout em grid responsivo */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    /* Espaçamento entre itens */
    gap: 1.2rem;
}

/* Cartões de gráfico */
.chart-card {
    /* Cor de fundo cinza escura */
    background-color: #232323;
    /* Borda cinza */
    border: 1px solid #3a3a3a;
    /* Bordas arredondadas */
    border-radius: 12px;
    /* Preenchimento interno */
    padding: 1rem;
    /* Sombra para profundidade */
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

/* Container de Power-ups */
#powerUpContainer {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
}

/* Estilos base do power-up */
.power-up {
    position: absolute;
    font-size: 2.5rem;
    font-weight: bold;
    text-align: center;
    animation: powerUpAnimation 2s ease-out forwards;
    text-shadow: 0 0 20px rgba(255, 0, 255, 0.8), 0 0 40px rgba(0, 255, 255, 0.6);
    filter: drop-shadow(0 0 10px rgba(255, 0, 255, 0.6));
}

/* Estilos para autenticação */
.auth-tabs {
    display: flex;
    margin-bottom: 1rem;
}

.tab-button {
    background-color: #3a3a3a;
    color: #e0e0e0;
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-radius: 8px 8px 0 0;
    transition: background-color 0.3s;
}

.tab-button.active {
    background-color: #1a1a2e;
}

.tab-button:hover {
    background-color: #4a4a4a;
}

.auth-form {
    background-color: #232323;
    border: 1px solid #3a3a3a;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.auth-form .form-group {
    margin-bottom: 1rem;
}

.auth-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: #e0e0e0;
}

.auth-form input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #3a3a3a;
    border-radius: 4px;
    background-color: #1a1a1a;
    color: #e0e0e0;
    box-sizing: border-box;
}

.auth-form button {
    background-color: #1a1a2e;
    color: #e0e0e0;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.auth-form button:hover {
    background-color: #2a2a3e;
}

/* Power-up de criação */
.power-up-create {
    color: #ff00ff;
    animation: powerUpCreateAnimation 2s ease-out forwards;
}

/* Power-up de início */
.power-up-start {
    color: #00d9ff;
    animation: powerUpStartAnimation 2s ease-out forwards;
}

/* Power-up de conclusão */
.power-up-complete {
    color: #4caf50;
    animation: powerUpCompleteAnimation 2s ease-out forwards;
}

/* Animação customizada para criação */
@keyframes powerUpCreateAnimation {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(0.5) rotateZ(0deg);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -100%) scale(1.2) rotateZ(15deg);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -200%) scale(0.8) rotateZ(360deg);
    }
}

/* Animação customizada para início */
@keyframes powerUpStartAnimation {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(0.3);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -120%) scale(1.3);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -250%) scale(0.5);
    }
}

/* Animação customizada para conclusão */
@keyframes powerUpCompleteAnimation {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(0.2) rotateZ(0deg);
    }
    25% {
        transform: translate(-50%, -80%) scale(1.4) rotateZ(-10deg);
    }
    50% {
        transform: translate(-50%, -120%) scale(1.2) rotateZ(10deg);
    }
    75% {
        opacity: 1;
        transform: translate(-50%, -150%) scale(1.1) rotateZ(-5deg);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -200%) scale(0.5) rotateZ(360deg);
    }
}

/* Seção de Conquistas */
.achievements-section {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: #1a1a2e;
    border-radius: 12px;
    border: 1px solid #333;
}

.achievements-section h3 {
    color: #e0e0e0;
    margin-bottom: 1rem;
    text-align: center;
    font-size: 1.4rem;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.achievement-medal {
    background-color: #2a2a3e;
    border: 2px solid #555;
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    transition: all 0.3s ease;
    opacity: 0.5;
    filter: grayscale(100%);
}

.achievement-medal.unlocked {
    opacity: 1;
    filter: none;
    border-color: #ff00ff;
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.3);
}

.achievement-medal:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(255, 0, 255, 0.5);
}

.medal-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    filter: drop-shadow(0 0 5px currentColor);
}

.achievement-medal h4 {
    color: #e0e0e0;
    margin: 0.5rem 0;
    font-size: 1.1rem;
}

.achievement-medal p {
    color: #b0b0b0;
    margin: 0;
    font-size: 0.9rem;
}

.no-achievements {
    text-align: center;
    color: #888;
    font-style: italic;
    grid-column: 1 / -1;
    padding: 2rem;
}

/* Cards de metas reduzidos */
.goals-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.goal-card {
    background-color: #2a2a3e;
    border: 1px solid #555;
    border-radius: 8px;
    padding: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.goal-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 0, 255, 0.3);
    border-color: #ff00ff;
}

.goal-card.completed {
    background-color: #1a3a2e;
    border-color: #4ecdc4;
}

.goal-card.overdue {
    background-color: #3a1a1a;
    border-color: #ff6b6b;
}

.goal-card.in-progress {
    background-color: #2a2a3e;
    border-color: #ffa07a;
}

.goal-card-title {
    font-size: 1.1rem;
    font-weight: bold;
    color: #e0e0e0;
    margin-bottom: 0.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.goal-card-status {
    font-size: 0.9rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.goal-card.completed .goal-card-status {
    background-color: #4ecdc4;
    color: #1a1a2e;
}

.goal-card.overdue .goal-card-status {
    background-color: #ff6b6b;
    color: white;
}

.goal-card.in-progress .goal-card-status {
    background-color: #ffa07a;
    color: #1a1a2e;
}

.goal-card.not-started .goal-card-status {
    background-color: #888;
    color: white;
}

.goal-card-date {
    font-size: 0.8rem;
    color: #b0b0b0;
    margin-bottom: 0.5rem;
}

.goal-card-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: space-between;
    align-items: center;
}

.goal-card-actions button {
    padding: 0.25rem 0.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.2s ease;
}

.goal-card-actions .start-btn {
    background-color: #4ecdc4;
    color: #1a1a2e;
}

.goal-card-actions .start-btn:hover {
    background-color: #26d0ce;
}

.goal-card-actions .delete-btn {
    background-color: #ff6b6b;
    color: white;
}

.goal-card-actions .delete-btn:hover {
    background-color: #ff5252;
}

.goal-card-checkbox {
    margin: 0;
}

/* Toggle para visualização */
.view-toggle {
    margin-bottom: 1rem;
    display: flex;
    gap: 1rem;
    align-items: center;
}

.view-toggle button {
    padding: 0.5rem 1rem;
    background-color: #2a2a3e;
    border: 1px solid #555;
    border-radius: 4px;
    color: #e0e0e0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-toggle button.active {
    background-color: #ff00ff;
    border-color: #ff00ff;
}

/* Toast notifications */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 99999;
    min-width: 250px;
    text-align: center;
    /* Padrão (neutro) */
    background-color: #2a2a3e;
    color: #e0e0e0;
    border: 1px solid #555;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Verde para sucesso */
.toast.toast-success {
    background-color: #1a3a2e;
    color: #81c784;
    border-color: #4caf50;
    box-shadow: 0 0 12px rgba(76, 175, 80, 0.3);
}

/* Vermelho para erro */
.toast.toast-error {
    background-color: #3a1a1a;
    color: #ff6b6b;
    border-color: #ff5252;
    box-shadow: 0 0 12px rgba(255, 82, 82, 0.3);
}
/* Scroll suave */
html {
    scroll-behavior: smooth;
}

/* Barra de progresso estilizada */
progress {
    width: 100%;
    height: 16px;
    border-radius: 8px;
    border: none;
    overflow: hidden;
    background-color: #1a1a2e;
}
progress::-webkit-progress-bar {
    background-color: #1a1a2e;
    border-radius: 8px;
}
progress::-webkit-progress-value {
    background: linear-gradient(90deg, #ff00ff, #4ecdc4);
    border-radius: 8px;
    transition: width 0.4s ease;
}
progress::-moz-progress-bar {
    background: linear-gradient(90deg, #ff00ff, #4ecdc4);
    border-radius: 8px;
}
/* Conquistas bloqueadas */
.achievement-medal.locked {
    opacity: 0.4;
    filter: grayscale(100%);
    border-color: #444;
    cursor: default;
}
.achievement-medal.locked:hover {
    transform: none;
    box-shadow: none;
}
.medal-status {
    display: inline-block;
    font-size: 0.75rem;
    margin-top: 0.4rem;
    color: #4ecdc4;
    font-weight: bold;
}
.medal-status.locked-label {
    color: #666;
}
/* Conquistas bloqueadas */
.achievement-medal.locked {
    opacity: 0.4;
    filter: grayscale(100%);
    cursor: default;
}
.achievement-medal.locked:hover {
    transform: none;
    box-shadow: none;
}
.medal-status {
    display: inline-block;
    font-size: 0.75rem;
    margin-top: 0.4rem;
    color: #4ecdc4;
    font-weight: bold;
}
.medal-status.locked-label {
    color: #666;
}

/* ── Responsividade Mobile ─────────────────────────────────────────────── */
@media (max-width: 768px) {

    /* ── Header: logo+auth na mesma linha, nav embaixo ── */
    .header {
        height: auto;
        min-height: unset;
        max-height: unset;
        flex-direction: column;
        align-items: stretch;
        padding: 0.5rem 1rem 0.4rem;
        gap: 0.35rem;
        position: relative;
    }

    /* Linha 1: logo + auth lado a lado */
    .logo-container {
        width: 160px;
        overflow: visible;
        display: flex;
        align-items: center;
        flex-shrink: 0;
    }

    .logo-container img,
    .logo {
        max-width: 160px;
        max-height: 78px;
        width: 100%;
        height: auto;
    }

    /* Auth vai pro canto direito na mesma linha da logo */
    .auth-section {
        position: absolute;
        top: 0.6rem;
        right: 1rem;
        font-size: 0.8rem;
        display: flex;
        align-items: center;
    }

    #auth-links {
        display: flex;
        gap: 0.4rem;
        align-items: center;
    }

    .auth-link {
        padding: 0.28rem 0.7rem;
        font-size: 0.75rem;
        background: rgba(255, 255, 255, 0.07);
        border: 1px solid rgba(255, 255, 255, 0.18);
        border-radius: 20px;
        color: #e0e0e0;
        font-weight: 600;
        white-space: nowrap;
    }

    .auth-link:hover {
        background: rgba(255, 0, 255, 0.15);
        border-color: rgba(255, 0, 255, 0.4);
        color: #fff;
    }

    /* ── Navegação: todos os links na horizontal, compactos ── */
    .main-nav {
        width: 100%;
    }

    .main-nav ul {
        display: flex;
        flex-wrap: nowrap;
        justify-content: center;
        gap: 0;
        list-style: none;
        padding: 0;
        margin: 0;
        background: none;
        box-shadow: none;
        border: none;
        grid-template-columns: none;
    }

    .main-nav li {
        display: block;
        flex-shrink: 1;
        background: none;
        border: none;
        border-left: none;
        box-shadow: none;
        padding: 0;
        flex-direction: row;
        gap: 0;
    }

    .main-nav a {
        display: block;
        text-align: center;
        font-size: 0.68rem;
        padding: 0.25rem 0.5rem;
        background: none;
        border: none;
        border-bottom: 2px solid transparent;
        border-radius: 0;
        font-weight: 600;
        color: #b0b0b0;
        white-space: nowrap;
        transition: color 0.2s, border-color 0.2s;
        text-decoration: none;
    }

    .main-nav a:hover,
    .main-nav a:focus {
        color: #ff00ff;
        border-bottom-color: #ff00ff;
        background: none;
    }

    /* ── Ícones flutuantes: ajustar posição para não sobrepor conteúdo ── */
    [style*="position: fixed"],
    [style*="position:fixed"] {
        z-index: 100;
    }

    /* ── Main: sem margin-top excessivo ── */
    main {
        margin-top: 1rem;
        padding: 0 0.75rem;
        max-width: 100%;
        box-sizing: border-box;
    }

    /* ── Layout principal empilhado ── */
    .main-top-row {
        flex-direction: column;
        gap: 0.75rem;
    }

    /* ── Seção adicionar meta: altura livre ── */
    #adicionar-meta {
        max-height: none;
        overflow-y: visible;
        width: 100%;
        box-sizing: border-box;
    }

    /* ── Seções: padding confortável ── */
    section {
        padding: 1.1rem 1rem;
        margin-bottom: 0.75rem;
    }

    section h2 {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }

    /* ── Formulário: compacto no mobile ── */
    form {
        max-width: 100%;
        gap: 0.35rem;
    }

    .form-row {
        flex-direction: column;
        gap: 0.35rem;
    }

    .form-group {
        width: 100%;
    }

    form label {
        font-size: 0.78rem;
        margin-bottom: 0.1rem;
    }

    form input,
    form select,
    form textarea {
        width: 100%;
        box-sizing: border-box;
        font-size: 0.9rem;
        padding: 0.38rem 0.5rem;
    }

    /* Descrição menor no mobile */
    form textarea {
        min-height: 52px;
        resize: none;
    }

    /* Prioridade + Nível de Foco lado a lado */
    .form-row:has(#prioridade-meta) {
        flex-direction: row;
        gap: 0.5rem;
    }

    /* Data Limite + botão na mesma linha */
    .form-row:has(#data-limite) {
        flex-direction: row;
        align-items: flex-end;
        gap: 0.5rem;
    }

    .form-row:has(#data-limite) .form-group:first-child {
        flex: 1;
    }

    .form-row:has(#data-limite) .form-group:last-child {
        flex-shrink: 0;
    }

    form button {
        width: auto;
        padding: 0.5rem 0.85rem;
        font-size: 0.88rem;
        white-space: nowrap;
    }

    /* Seção adicionar meta: padding reduzido */
    #adicionar-meta {
        max-height: none;
        overflow-y: visible;
        width: 100%;
        box-sizing: border-box;
        padding: 0.85rem;
    }

    #adicionar-meta h2 {
        font-size: 1.15rem;
        margin-bottom: 0.75rem;
    }

    /* ── Filtros: grade 2x2 compacta ── */
    .filters {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.4rem 0.6rem;
        align-items: end;
    }

    .filters label {
        font-size: 0.75rem;
        margin-bottom: 0.1rem;
        display: block;
    }

    .filters select,
    .filters input[type="text"] {
        width: 100%;
        box-sizing: border-box;
        font-size: 0.82rem;
        padding: 0.35rem 0.45rem;
    }

    /* Ordenar por Data ocupa linha inteira */
    .filters .form-group:last-of-type {
        grid-column: 1 / -1;
    }

    /* ── Seção Minhas Metas compacta ── */
    #minhas-metas {
        padding: 0.85rem;
    }

    #minhas-metas h2 {
        font-size: 1.15rem;
        margin-bottom: 0.6rem;
    }

    .export-btn {
        width: 100%;
        text-align: center;
        padding: 0.5rem;
        font-size: 0.85rem;
        margin-bottom: 0.6rem;
    }

    /* ── Toggle de visualização ── */
    .view-toggle {
        display: flex;
        gap: 0.4rem;
        margin-bottom: 0.6rem;
    }

    .view-toggle button {
        flex: 1;
        font-size: 0.82rem;
        padding: 0.4rem 0.5rem;
        text-align: center;
    }

    /* ── Cards de metas: coluna única ── */
    .goals-cards {
        grid-template-columns: 1fr;
        gap: 0.6rem;
    }

    .goal-card {
        padding: 0.75rem;
    }

    .goal-card-title {
        font-size: 0.9rem;
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
    }

    .goal-card-actions {
        flex-wrap: wrap;
        gap: 0.35rem;
    }

    /* ── Calendário: compacto e sem area vazia ── */
    .calendar-widget {
        width: 100%;
        box-sizing: border-box;
        padding: 0.6rem 0.75rem;
    }

    .calendar-header {
        margin-bottom: 0.35rem;
    }

    .calendar-header span {
        font-size: 0.85rem;
    }

    .calendar-table {
        width: 100%;
        font-size: 0.72rem;
    }

    .calendar-table th,
    .calendar-table td {
        padding: 0.15rem 0.05rem;
        font-size: 0.68rem;
    }

    .calendar-day {
        width: 22px;
        height: 22px;
        line-height: 22px;
        font-size: 0.68rem;
    }

    /* "Metas do dia" compacto */
    .calendar-details {
        max-height: 80px;
        padding: 0.35rem 0.5rem;
        font-size: 0.78rem;
    }

    .calendar-details h3 {
        font-size: 0.78rem;
        margin-bottom: 0.25rem;
    }

    /* Mensagem emocional compacta */
    .emotional-message {
        font-size: 0.75rem;
        padding: 0.3rem 0.5rem;
        margin-top: 0.35rem;
    }

    /* ── Progresso Geral ── */
    #progresso {
        padding: 0.85rem;
    }

    #progresso h2 {
        font-size: 1.15rem;
        margin-bottom: 0.6rem;
    }

    /* ── Dashboard: cards 2x2 lado a lado ── */
    #dashboard {
        padding: 0.85rem;
    }

    #dashboard h2 {
        font-size: 1.15rem;
        margin-bottom: 0.6rem;
    }

    .dashboard-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.6rem;
        margin-bottom: 0.75rem;
    }

    .card {
        padding: 0.7rem 0.75rem;
    }

    .card h3 {
        font-size: 0.82rem;
        margin-bottom: 0.3rem;
        line-height: 1.2;
    }

    .card p {
        font-size: 0.75rem;
        margin: 0.15rem 0;
    }

    /* ── Conquistas: grade 2 colunas ── */
    .achievements-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .achievement-medal {
        padding: 0.55rem 0.4rem;
        text-align: center;
    }

    .achievement-medal h4 {
        font-size: 0.74rem;
        margin: 0.25rem 0 0.15rem;
    }

    .achievement-medal p {
        font-size: 0.65rem;
        line-height: 1.3;
    }

    /* ── Gráficos: largura total, empilhados, labels menores ── */
    .charts-wrapper {
        grid-template-columns: 1fr;
        gap: 0.6rem;
    }

    .chart-card {
        overflow: hidden;
        padding: 0.7rem 0.75rem;
    }

    .chart-card h3 {
        font-size: 0.88rem;
        margin-bottom: 0.4rem;
    }

    .chart-card canvas {
        max-height: 160px !important;
        width: 100% !important;
    }

    /* ── Botões de ação em listas ── */
    .start-btn, .delete-btn {
        font-size: 0.78rem;
        padding: 0.35rem 0.65rem;
    }

    /* ── Modal de edição ── */
    #edit-modal {
        width: 95%;
        max-width: 95vw;
        padding: 1rem;
        max-height: 85vh;
    }

    /* ── Banner de prazo ── */
    #deadline-banner {
        margin: 0.6rem 0.75rem 0;
        font-size: 0.82rem;
        padding: 0.5rem 0.75rem;
    }

    /* ── Footer ── */
    footer {
        padding: 1rem;
        font-size: 0.82rem;
    }

    /* ── Modo foco ── */
    .pomodoro-timer {
        font-size: 3.5rem;
    }

    .focus-mode-content h2 {
        font-size: 1.4rem;
    }

    .focus-btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.95rem;
    }

    /* ── Botão de filtros: só aparece no mobile ── */
    .filtros-toggle-btn {
        display: block;
    }

    /* ── Header de Minhas Metas ── */
    #minhas-metas h2 {
        font-size: 1.1rem;
        border-bottom: none;
        margin-bottom: 0;
    }

    /* ── Itens de lista de metas ── */
    ul:not(.main-nav ul):not(#deadline-banner ul) {
        grid-template-columns: 1fr;
    }

    li {
        padding: 0.85rem;
    }

    .meta-actions {
        flex-wrap: wrap;
        gap: 0.4rem;
    }
}
/* ── Calendário colapsável ──────────────────────────────────────────────── */
.calendar-toggle-btn {
    background: none;
    border: none;
    color: #b0b0b0;
    cursor: pointer;
    font-size: 0.8rem;
    padding: 0.2rem 0.4rem;
    margin-left: auto;
    transition: color 0.2s;
}
.calendar-toggle-btn:hover { color: #ff00ff; }

#calendarBody-wrapper {
    overflow: hidden;
    transition: max-height 0.35s ease, opacity 0.3s ease;
    max-height: 600px;
    opacity: 1;
}
#calendarBody-wrapper.collapsed {
    max-height: 0;
    opacity: 0;
    pointer-events: none;
}

/* ── Filtros colapsáveis ────────────────────────────────────────────────── */
.metas-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}
.metas-header-row h2 { margin-bottom: 0; border-bottom: none; padding-bottom: 0; }
.metas-header-row .export-btn { margin-bottom: 0; width: auto; padding: 0.35rem 0.75rem; font-size: 0.78rem; }

.filtros-toggle-btn {
    display: none;
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    color: #b0b0b0;
    padding: 0.45rem 0.75rem;
    font-size: 0.82rem;
    cursor: pointer;
    text-align: left;
    margin-bottom: 0.5rem;
    transition: background 0.2s;
}
.filtros-toggle-btn:hover { background: rgba(255,0,255,0.08); color: #e0e0e0; }

.filters-collapsible {
    overflow: hidden;
    transition: max-height 0.35s ease, opacity 0.3s ease;
    max-height: 600px;
    opacity: 1;
}
.filters-collapsible.collapsed {
    max-height: 0;
    opacity: 0;
    pointer-events: none;
}

/* ── Loading spinner ────────────────────────────────────────────────────── */
.goals-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 2rem;
    color: #b0b0b0;
    font-size: 0.85rem;
}
.loading-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(255,0,255,0.15);
    border-top-color: #ff00ff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Empty state ────────────────────────────────────────────────────────── */
.goals-empty {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 1rem;
    gap: 0.5rem;
}
.empty-icon { font-size: 2.5rem; }
.empty-title { color: #e0e0e0; font-size: 1rem; font-weight: bold; margin: 0; }
.empty-sub { color: #777; font-size: 0.82rem; margin: 0; max-width: 260px; line-height: 1.5; }

/* ── Dashboard cards melhorados ─────────────────────────────────────────── */
.card-stat {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ff00ff;
    margin: 0.2rem 0 0.1rem;
}
.card-compare {
    font-size: 0.75rem;
    color: #777;
    margin: 0;
}

/* ── Conquistas colapsáveis ─────────────────────────────────────────────── */
.achievements-section {
    margin: 1rem 0;
    border: 1px solid #333;
    border-radius: 10px;
    overflow: hidden;
}
.achievements-summary {
    cursor: pointer;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-weight: bold;
    color: #e0e0e0;
    background: #2a2a3e;
    list-style: none;
    user-select: none;
}
.achievements-summary::-webkit-details-marker { display: none; }
.achievements-summary::after { content: ' ▼'; font-size: 0.7rem; color: #888; }
details[open] .achievements-summary::after { content: ' ▲'; }
.achievements-section .achievements-grid { padding: 0.75rem; }

/* ── Seções: bordas e sombras suavizadas ────────────────────────────────── */
section {
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
    border-color: #2a2a3e;
}
.card {
    box-shadow: 0 1px 4px rgba(0,0,0,0.3);
    border-color: #333;
}

/* ── Streak badge no header ─────────────────────────────────────────────── */
.streak-badge {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #ff6b00, #ff00ff);
    color: #fff;
    font-size: 0.72rem;
    font-weight: bold;
    padding: 0.18rem 0.55rem;
    border-radius: 20px;
    margin-right: 0.4rem;
    box-shadow: 0 0 8px rgba(255, 100, 0, 0.5);
    animation: streakPulse 2.5s ease-in-out infinite;
    cursor: default;
}
@keyframes streakPulse {
    0%, 100% { box-shadow: 0 0 6px rgba(255,100,0,0.4); }
    50%       { box-shadow: 0 0 14px rgba(255,100,0,0.75); }
}

/* ── Banner de prazo redesenhado ────────────────────────────────────────── */
.deadline-banner-new {
    display: none;
    align-items: flex-start;
    gap: 0.75rem;
    background: linear-gradient(135deg, #2a1000, #3a1a00);
    border: 1px solid #ff6b00;
    border-left: 4px solid #ff6b00;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    margin: 0.75rem 0 0;
    color: #ffb74d;
    font-size: 0.88rem;
    box-shadow: 0 0 16px rgba(255, 107, 0, 0.2);
    position: relative;
}
.deadline-banner-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}
.deadline-banner-content { flex: 1; }
.deadline-banner-content strong {
    display: block;
    color: #ff9800;
    font-size: 0.9rem;
    margin-bottom: 0.35rem;
}
.deadline-banner-new ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    background: none;
    box-shadow: none;
    border: none;
    grid-template-columns: none;
}
.deadline-banner-new li {
    background: none;
    border: none;
    padding: 0;
    box-shadow: none;
    flex-direction: row;
    font-size: 0.82rem;
    color: #ffb74d;
    display: list-item;
}
.deadline-title { font-weight: 600; color: #ffe0b2; }
.deadline-hoje  { font-weight: bold; color: #ff5252; background: rgba(255,82,82,0.15); padding: 0.05rem 0.3rem; border-radius: 4px; }
.deadline-close-btn {
    background: none;
    border: none;
    color: #888;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 0.1rem 0.25rem;
    flex-shrink: 0;
    align-self: flex-start;
    transition: color 0.2s;
}
.deadline-close-btn:hover { color: #ff5252; }

/* ── Animação fade-in das seções ────────────────────────────────────────── */
.animate-section {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.animate-section.section-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Barra de progresso animada via CSS ─────────────────────────────────── */
progress {
    transition: none;
}
progress::-webkit-progress-value {
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Validação em tempo real ────────────────────────────────────────────── */
.input-hint {
    font-size: 0.72rem;
    margin-top: 0.2rem;
    display: block;
    transition: color 0.2s;
}
.hint-warn { color: #ffb74d; }
.hint-ok   { color: #4caf50; }

form input {
    transition: border-color 0.25s ease;
}

/* ── Mobile: banner de prazo compacto ───────────────────────────────────── */
@media (max-width: 768px) {
    .deadline-banner-new {
        margin: 0.5rem 0.75rem 0;
        padding: 0.6rem 0.75rem;
        gap: 0.5rem;
        font-size: 0.8rem;
    }
    .deadline-banner-icon { font-size: 1.1rem; }
    .streak-badge { font-size: 0.68rem; padding: 0.15rem 0.45rem; }
}

/* ── Confete ────────────────────────────────────────────────────────────── */
.confetti-piece {
    position: fixed;
    top: -10px;
    pointer-events: none;
    z-index: 99999;
    animation: confettiFall linear forwards;
}
@keyframes confettiFall {
    0%   { transform: translateY(0) rotate(0deg);    opacity: 1; }
    100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

/* ── Pull to refresh ────────────────────────────────────────────────────── */
.pull-indicator {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%) translateY(-60px);
    background: #1f1f3e;
    border: 1px solid #ff00ff;
    border-radius: 0 0 20px 20px;
    padding: 0.5rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: #e0e0e0;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.2s, transform 0.3s ease;
    pointer-events: none;
    box-shadow: 0 4px 16px rgba(255,0,255,0.2);
}
.pull-arrow {
    font-size: 1rem;
    color: #ff00ff;
    display: inline-block;
    transition: transform 0.2s;
}

/* ── Splash Screen ──────────────────────────────────────────────────────── */
.splash-screen {
    position: fixed;
    inset: 0;
    background: #0a0a0a;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    transition: opacity 0.6s ease;
}
.splash-screen.splash-hide {
    opacity: 0;
    pointer-events: none;
}
.splash-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}
.splash-logo {
    width: 200px;
    animation: splashPulse 1s ease-in-out infinite alternate;
}
@keyframes splashPulse {
    from { transform: scale(1);    opacity: 0.85; }
    to   { transform: scale(1.05); opacity: 1; }
}
.splash-bar-wrapper {
    width: 180px;
    height: 3px;
    background: #1a1a2e;
    border-radius: 3px;
    overflow: hidden;
}
.splash-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #8a2be2, #ff00ff, #4ecdc4);
    border-radius: 3px;
    animation: splashLoad 1.2s ease forwards;
}
@keyframes splashLoad {
    0%   { width: 0%; }
    100% { width: 100%; }
}