/* Shared styles across all pages */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.filter-btn.active {
    background-color: #6366f1;
    color: white;
}

.task-card {
    transition: all 0.2s ease;
}

.task-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.priority-high {
    border-left: 4px solid #ef4444;
}

.priority-medium {
    border-left: 4px solid #f59e0b;
}

.priority-low {
    border-left: 4px solid #10b981;
}

.status-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    font-weight: 500;
}

.status-pending {
    background-color: #fef3c7;
    color: #92400e;
}

.status-in-progress {
    background-color: #dbeafe;
    color: #1e40af;
}

.status-completed {
    background-color: #d1fae5;
    color: #065f46;
}
/* Enhanced chart styles */
.time-period-btn.active {
    background-color: #6366f1 !important;
    color: white !important;
}

.chart-container {
    position: relative;
    height: 300px;
    width: 100%;
}

.chart-legend {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1rem;
    gap: 1rem;
}

.legend-item {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
}

.legend-color {
    width: 1rem;
    height: 1rem;
    margin-right: 0.5rem;
    border-radius: 2px;
}

.legend-completed {
    background-color: #10b981;
}

.legend-inprogress {
    background-color: #3b82f6;
    opacity: 0.7;
}

.legend-pending {
    background-color: #f59e0b;
}

.tooltip-title {
    font-weight: bold;
    margin-bottom: 0.25rem;
}
/* Animation for task completion */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.task-card {
    animation: fadeIn 0.3s ease forwards;
}
/* Calendar highlight styles */
.bg-red-50 {
    background-color: rgba(239, 68, 68, 0.1);
}
.bg-orange-50 {
    background-color: rgba(245, 158, 11, 0.1);
}
.bg-green-50 {
    background-color: rgba(16, 185, 129, 0.1);
}
/* Settings page email input transition */
#notificationEmail {
    transition: all 0.3s ease;
    max-width: 0;
    opacity: 0;
}
#notificationEmail:not(.hidden) {
    max-width: 200px;
    opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .task-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
}