/* Custom CSS for Board Filtering */
.board-filter {
    transition: all 0.2s ease-in-out;
}

.board-filter:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.board-filter.active {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(101, 163, 13, 0.2);
}

.todo-item {
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.todo-item[style*="none"] {
    opacity: 0;
    transform: scale(0.95);
    height: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

/* Force Lime-colored checkboxes */
input[type="checkbox"] {
    accent-color: #84cc16 !important;
}

input[type="checkbox"]:checked {
    background-color: #84cc16 !important;
    border-color: #84cc16 !important;
}

input[type="checkbox"]:focus {
    box-shadow: 0 0 0 3px rgba(132, 204, 22, 0.3) !important;
    border-color: #84cc16 !important;
}

/* Enhanced Notification Preferences Styling */
.notification-toggle {
    transition: all 0.3s ease-in-out;
}

.notification-toggle:hover {
    transform: scale(1.05);
}

.notification-section {
    transition: all 0.3s ease-in-out;
}

.notification-section:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transform: translateY(-1px);
}

.notification-category-card {
    transition: all 0.2s ease-in-out;
    border-left: 4px solid transparent;
}

.notification-category-card:hover {
    border-left-color: #84cc16;
    background-color: #f8fafc;
}

.notification-type-row {
    transition: all 0.2s ease-in-out;
}

.notification-type-row:hover {
    background-color: #f1f5f9;
    padding-left: 1.75rem;
}

/* Custom toggle switch animations */
.peer:checked + div {
    animation: toggleOn 0.3s ease-in-out;
}

.peer:not(:checked) + div {
    animation: toggleOff 0.3s ease-in-out;
}

@keyframes toggleOn {
    0% { transform: scale(0.95); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes toggleOff {
    0% { transform: scale(1.05); }
    50% { transform: scale(0.95); }
    100% { transform: scale(1); }
}

/* Save button enhancement */
.save-preferences-btn {
    transition: all 0.3s ease-in-out;
    position: relative;
    overflow: hidden;
}

.save-preferences-btn:hover {
    box-shadow: 0 8px 25px rgba(132, 204, 22, 0.3);
    transform: translateY(-2px);
}

.save-preferences-btn:active {
    transform: translateY(0);
}

/* Gradient background animations */
.notification-header-gradient {
    background: linear-gradient(135deg, #84cc16, #65a30d);
    animation: gradientShift 6s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { background: linear-gradient(135deg, #84cc16, #65a30d); }
    25% { background: linear-gradient(135deg, #65a30d, #84cc16); }
    50% { background: linear-gradient(135deg, #84cc16, #22c55e); }
    75% { background: linear-gradient(135deg, #22c55e, #65a30d); }
}

/* Notification category icons */
.category-icon {
    transition: all 0.3s ease-in-out;
}

.category-icon:hover {
    transform: rotate(5deg) scale(1.1);
}

/* Responsive improvements */
@media (max-width: 640px) {
    .notification-type-row {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .notification-controls {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }
    
    .notification-toggle-group {
        display: flex;
        gap: 1rem;
        flex-wrap: wrap;
    }
}

/* Loading states */
.notification-form.loading {
    opacity: 0.7;
    pointer-events: none;
}

.notification-form.loading .save-preferences-btn {
    background: linear-gradient(90deg, #84cc16, #65a30d, #84cc16);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
