/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #a0e2f7 0%, #1c75bc 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    margin-bottom: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px;
}

.header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #2d3748;
    display: flex;
    align-items: center;
    gap: 12px;
}

.header h1 i {
    color: #a0e2f7;
}

/* Botões */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, #a0e2f7, #1c75bc);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #e2e8f0;
    color: #4a5568;
}

.btn-secondary:hover {
    background: #cbd5e0;
    transform: translateY(-1px);
}

.btn-danger {
    background: linear-gradient(135deg, #fc8181, #f56565);
    color: white;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(245, 101, 101, 0.4);
}

.btn-close {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #718096;
    padding: 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.btn-close:hover {
    background: #f7fafc;
    color: #2d3748;
}

/* Filtros */
.filters {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 24px 32px;
    margin-bottom: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.filter-group {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.filter-input, .filter-select {
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
}

.filter-input {
    flex: 1;
    min-width: 250px;
}

.filter-input:focus, .filter-select:focus {
    outline: none;
    border-color: #a0e2f7;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Estatísticas */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    background: linear-gradient(135deg, #a0e2f7, #1c75bc);
    color: white;
}

.stat-info h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 4px;
}

.stat-info p {
    color: #718096;
    font-size: 14px;
    font-weight: 500;
}

/* Conteúdo Principal */
.main-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    min-height: 400px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Estados de Loading e Empty */
.loading, .empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 32px;
    text-align: center;
}

.loading {
    color: #a0e2f7;
    font-size: 18px;
    font-weight: 500;
}

.loading i {
    font-size: 32px;
    margin-bottom: 16px;
}

.empty-state i {
    font-size: 64px;
    color: #cbd5e0;
    margin-bottom: 24px;
}

.empty-state h3 {
    font-size: 24px;
    color: #4a5568;
    margin-bottom: 8px;
}

.empty-state p {
    color: #718096;
    font-size: 16px;
}

.hidden {
    display: none !important;
}

/* Lista de Tarefas */
.task-list {
    padding: 24px 32px;
}

.task-item {
    background: white;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 16px;
    border-left: 4px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.task-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.task-item.priority-alta {
    border-left-color: #f56565;
}

.task-item.priority-media {
    border-left-color: #ed8936;
}

.task-item.priority-baixa {
    border-left-color: #48bb78;
}

.task-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.task-title {
    font-size: 18px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 4px;
}

.task-meta {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: #718096;
}

.task-description {
    color: #4a5568;
    margin-bottom: 16px;
    line-height: 1.5;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.modal-small {
    max-width: 400px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px;
    border-bottom: 1px solid #e2e8f0;
}

.modal-header h2 {
    font-size: 20px;
    font-weight: 600;
    color: #2d3748;
}

.modal-body {
    padding: 32px;
}

.modal-footer {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding: 24px 32px;
    border-top: 1px solid #e2e8f0;
    background: #f7fafc;
    border-radius: 0 0 16px 16px;
}

/* Formulário */
.form-group {
    margin-bottom: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #4a5568;
}

.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    outline: none;
    border-color: #a0e2f7;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Responsividade */
@media (max-width: 768px) {
    .container { padding: 16px; }
    .header-content { flex-direction: column; gap: 16px; text-align: center; }
    .filter-group { flex-direction: column; align-items: stretch; }
    .filter-input { min-width: auto; }
    .stats { grid-template-columns: 1fr; }
    .task-header { flex-direction: column; gap: 12px; }
    .form-row { grid-template-columns: 1fr; }
    .modal-content { width: 95%; margin: 16px; }
    .modal-header, .modal-body, .modal-footer { padding: 20px; }
}

/* --- NOVOS ESTILOS PARA OS BOTÕES DE AÇÃO --- */
.task-actions {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    border-top: 1px solid #f1f5f9;
    padding-top: 16px;
}

.btn-icon {
    background: #f8fafc;
    color: #64748b;
    border: 1px solid #e2e8f0;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.btn-icon:hover {
    background: #e2e8f0;
    border-color: #cbd5e0;
    transform: translateY(-1px);
}

.btn-icon.delete:hover {
    background: #fed7d7;
    color: #c53030;
    border-color: #f56565;
}

/* ALERTA VISUAL PARA TAREFAS VENCIDAS */
.task-item.vencida {
    border-left-color: #e53e3e; /* Vermelho forte */
    background-color: #fff5f5;
}

.task-item.vencida .task-title {
    color: #c53030;
}

/* ALERTA VISUAL PARA TAREFAS VENCENDO HOJE */
.task-item.vence-hoje {
    border-left-color: #dd6b20; /* Laranja */
}

