html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background-color: #121212;
    color: #f5f5f5;
}

.tela-escura {
    background-color: #121212;
    color: #f5f5f5;
}

.container {
    max-width: 960px;
    margin: 40px auto;
    padding: 24px;
    background-color: #1e1e1e;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

h1, h2 {
    margin: 0 0 16px;
    font-weight: 600;
}

.campo {
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
}

.campo label,
.campo span {
    margin-bottom: 4px;
    font-size: 0.95rem;
}

input[type="text"],
input[type="date"],
select,
textarea {
    padding: 10px 12px;
    border-radius: 4px;
    border: 1px solid #333;
    background-color: #181818;
    color: #f5f5f5;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

input[type="text"]:focus,
input[type="date"]:focus,
select:focus,
textarea:focus {
    border-color: #4caf50;
    box-shadow: 0 0 0 1px #4caf50;
}

textarea {
    resize: vertical;
}

.grupo-opcoes {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.opcao-radio,
.opcao-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 0.9rem;
}

.opcao-checkbox.pequeno span {
    font-size: 0.75rem;
}

.campo-inline {
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

.contador {
    margin-top: 4px;
    font-size: 0.8rem;
    color: #aaa;
    text-align: right;
}

.acoes-form {
    margin-top: 24px;
    display: flex;
    justify-content: flex-end;
}

.btn-principal {
    padding: 10px 18px;
    border: none;
    border-radius: 4px;
    background-color: #4caf50;
    color: #fff;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn-principal:hover {
    background-color: #43a047;
}

.btn-principal:active {
    transform: scale(0.98);
}

.alerta {
    padding: 10px 14px;
    border-radius: 4px;
    margin-bottom: 16px;
    font-size: 0.9rem;
}

.alerta.sucesso {
    background-color: #1b5e20;
    color: #c8e6c9;
}

.alerta.erro {
    background-color: #b71c1c;
    color: #ffcdd2;
}

.alerta.erro ul {
    margin: 0;
    padding-left: 18px;
}

.dashboard {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #121212;
}

.dashboard-header {
    padding: 16px 24px;
    background-color: #1e1e1e;
    display: flex;
    flex-direction: column;
    gap: 4px;
    border-bottom: 1px solid #333;
}

.dashboard-subtitulo {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #bdbdbd;
}

.relogio {
    font-variant-numeric: tabular-nums;
}

.dashboard-colunas {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    padding: 12px;
}

.coluna-dia {
    display: flex;
    flex-direction: column;
    background-color: #181818;
    border-radius: 6px;
    padding: 8px;
}

.coluna-dia h2 {
    text-align: center;
    font-size: 1rem;
    margin-bottom: 8px;
}

.lista-cards {
    flex: 1;
    overflow-y: auto;
    padding-right: 4px;
}

.card-tarefa {
    border-radius: 6px;
    padding: 8px;
    margin-bottom: 8px;
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 6px;
    animation: fadeIn 0.4s ease-out;
}

.card-conteudo {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.card-tipo {
    font-weight: 600;
    font-size: 0.9rem;
}

.card-descricao {
    font-size: 0.85rem;
}

.card-datas {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    opacity: 0.9;
}

.card-acoes {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    margin-top: 4px;
}

.form-inline {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.acao-resolver,
.acao-excluir {
    border: none;
    border-radius: 4px;
    width: 32px;
    height: 28px;
    font-size: 1.05rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.1s ease, box-shadow 0.1s ease, background-color 0.15s ease;
}

.acao-resolver {
    background-color: #2e7d32;
    color: #e8f5e9;
}

.acao-resolver:hover {
    background-color: #1b5e20;
}

.acao-excluir {
    background-color: #c62828;
    color: #ffebee;
}

.acao-excluir:hover {
    background-color: #b71c1c;
}

.acao-resolver:active,
.acao-excluir:active {
    transform: scale(0.96);
}

.prioridade-critica {
    background-color: #ff0000;
}

.prioridade-alta {
    background-color: #cc0000;
}

.prioridade-media {
    background-color: #ff8c00;
}

.prioridade-baixa {
    background-color: #32cd32;
    color: #032c03;
}

.piscar {
    animation: piscar 1s linear infinite alternate;
}

@keyframes piscar {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.35;
    }
    100% {
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1200px) {
    .dashboard-colunas {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .dashboard-colunas {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .dashboard-colunas {
        grid-template-columns: 1fr;
    }

    .container {
        margin: 16px;
        padding: 16px;
    }
}

