/* Custom Styles pour TaskMaster - Thème Moderne Bleu/Vert */

:root {
    --primary-color: #0d6efd; /* Primary/Bleu */
    --success-color: #28a745; /* Success/Vert */
    --danger-color: #dc3545; /* Danger/Rouge */
    --warning-color: #ffc107; /* Warning/Orange */
    --light-color: #f8f9fa; /* Light/Gris clair */
    --dark-color: #212529; /* Dark/Noir */
}

/* Hero Section */
.hero-section {
    min-height: 70vh;
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.9), rgba(40, 167, 69, 0.8)),
                url('https://images.unsplash.com/photo-1484480974693-6ca0a78fb36b?w=1920') center/cover;
    display: flex;
    align-items: center;
    padding-top: 56px;
}

/* Navbar */
.navbar {
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.nav-link {
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.nav-link:hover {
    color: var(--success-color) !important;
}

/* Task List Styles */
.task-list {
    max-height: 500px;
    overflow-y: auto;
}

.task-item {
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.task-item:hover {
    background-color: var(--light-color) !important;
    border-left-color: var(--primary-color);
    transform: translateX(5px);
}

.task-item.completed {
    opacity: 0.7;
    border-left-color: var(--success-color);
}

.task-item.completed .task-text {
    text-decoration: line-through;
    color: #6c757d;
}

.task-checkbox {
    width: 1.5rem;
    height: 1.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.task-checkbox:checked {
    background-color: var(--success-color);
    border-color: var(--success-color);
}

.task-text {
    flex-grow: 1;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.task-delete {
    opacity: 0;
    transition: all 0.3s ease;
}

.task-item:hover .task-delete {
    opacity: 1;
}

/* Empty State */
#emptyState {
    display: none;
}

#emptyState.show {
    display: block;
}

/* Card Styles */
.card {
    transition: all 0.3s ease;
    border-radius: 12px;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15) !important;
}

/* Input Group */
.input-group-lg .form-control {
    border-radius: 8px 0 0 8px !important;
}

.input-group-lg .btn {
    border-radius: 0 8px 8px 0 !important;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Buttons */
.btn {
    transition: all 0.3s ease;
    font-weight: 600;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border: none;
}

.btn-success:hover {
    background: linear-gradient(135deg, #20c997 0%, #28a745 100%);
}

.btn-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    border: none;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #c82333 0%, #bd2130 100%);
}

/* Task Counter */
.bg-light {
    transition: all 0.3s ease;
}

/* Form Controls */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Footer */
footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Section Spacing */
section {
    scroll-margin-top: 70px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-color), var(--success-color));
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--success-color), var(--primary-color));
}

/* Task List Scrollbar */
.task-list::-webkit-scrollbar {
    width: 8px;
}

.task-list::-webkit-scrollbar-track {
    background: transparent;
}

.task-list::-webkit-scrollbar-thumb {
    background: rgba(13, 110, 253, 0.3);
    border-radius: 4px;
}

.task-list::-webkit-scrollbar-thumb:hover {
    background: rgba(13, 110, 253, 0.5);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section {
        min-height: 60vh;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section .lead {
        font-size: 1rem;
    }

    .navbar-brand {
        font-size: 1.2rem;
    }

    .task-text {
        font-size: 1rem;
    }

    .task-list {
        max-height: 400px;
    }
}

@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 1.5rem;
    }

    .display-4 {
        font-size: 2rem;
    }

    .input-group-lg .form-control,
    .input-group-lg .btn {
        font-size: 1rem;
    }
}

/* Icon Animations */
.bi-check2-square,
.bi-list-check,
.bi-clipboard-check {
    transition: all 0.3s ease;
}

.navbar-brand:hover .bi-check2-square {
    transform: rotate(360deg);
}

/* Glow effect for icons */
.card:hover .bi-cloud-check,
.card:hover .bi-laptop,
.card:hover .bi-shield-check {
    filter: drop-shadow(0 0 10px rgba(13, 110, 253, 0.5));
    transform: scale(1.1);
}
