/* Styles personnalisés pour l'application Todo PWA */

:root {
    --primary-color: #4169E1;  /* Royal Blue */
    --secondary-color: #f8f9fa;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--secondary-color);
    padding-bottom: 70px;
}

.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 600;
}

.card {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease-in-out;
    border-radius: 8px;
    overflow: hidden;
}

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

.card-header {
    border-bottom: none;
    font-weight: 600;
}

/* Styles pour les priorités des tâches */
.priority-high {
    border-left: 5px solid var(--danger-color);
}

.priority-medium {
    border-left: 5px solid var(--warning-color);
}

.priority-low {
    border-left: 5px solid var(--primary-color);
}

/* Style pour les tâches complétées */
.completed {
    text-decoration: line-through;
    opacity: 0.7;
}

/* Indicateur hors ligne */
.offline-indicator {
    background-color: var(--danger-color);
    color: white;
    padding: 8px 16px;
    border-radius: 30px;
    position: fixed;
    top: 15px;
    right: 15px;
    z-index: 9999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
    100% {
        opacity: 1;
    }
}

/* Boutons d'action */
.btn-circle {
    width: 36px;
    height: 36px;
    padding: 6px 0;
    border-radius: 50%;
    text-align: center;
    line-height: 1.42857;
    margin-right: 5px;
}

/* Responsive pour les petits écrans */
@media (max-width: 576px) {
    .card-title {
        font-size: 1.1rem;
    }
    
    .task-actions {
        display: flex;
        margin-top: 10px;
    }
}
