/* Madplan System Styles */
.madplan-container, .madplan-bestilling {
    padding: 1rem;
}

/* Custom styles for radio buttons */
.menu-option.selected {
    border-color: #4f46e5;
    box-shadow: 0 0 0 1px #4f46e5;
    background-color: rgba(79, 70, 229, 0.05);
}

.radio-circle {
    position: relative;
}

.menu-radio:checked ~ .menu-content .radio-circle::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 13px;
    height: 13px;
    background-color: #4f46e5;
    border-radius: 50%;
    animation: pulse 0.5s ease-out;
}

.checkbox-square {
    position: relative;
}

.menu-checkbox:checked ~ .menu-content .checkbox-square::after {
    content: '✓';
    position: absolute;
    top: -2px;
    left: 2px;
    color: #4f46e5;
    font-weight: bold;
    animation: bounce 0.4s ease;
}

/* Animation for day cards */
.dag-card {
    transition: all 0.3s ease;
}

.dag-card.complete {
    border-left: 4px solid #10b981;
}

/* Progress bar animation */
#progress-bar {
    transition: width 0.5s ease;
}

/* Navigation styling */
.filter-btn {
    transition: all 0.3s ease;
}

.filter-btn.active {
    font-weight: 600;
}

/* Mark complete button effects */
.mark-complete {
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.mark-complete:hover {
    transform: translateY(-2px);
}

.mark-complete:active {
    transform: translateY(0);
}

.mark-complete::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%, -50%);
    transform-origin: 50% 50%;
}

.mark-complete:focus:not(:active)::after {
    animation: ripple 1s ease-out;
}

/* Form submit button */
#madplan-bestilling-form button[type="submit"] {
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(79, 70, 229, 0.25);
}

#madplan-bestilling-form button[type="submit"]:hover {
    box-shadow: 0 6px 8px rgba(79, 70, 229, 0.35);
}

/* Success message animation */
#success-message {
    transition: all 0.3s ease;
}

/* Day navigation dropdown */
#dag-navigation {
    border-color: #d1d5db;
    border-radius: 0.375rem;
    padding: 0.5rem;
    transition: all 0.2s ease;
}

#dag-navigation:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.2);
}

/* Mobile responsiveness adjustments */
@media (max-width: 768px) {
    .madplan-bestilling .filter-btn {
        font-size: 0.875rem;
        padding: 0.5rem 0.75rem;
    }
    
    .dag-card .bg-indigo-600 {
        padding: 0.75rem 1rem;
    }
    
    .dag-card .prev-dag,
    .dag-card .next-dag {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
}

/* Animations */
@keyframes pulse {
    0% {
        transform: scale(0.8);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.2);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes bounce {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 1;
    }
    20% {
        transform: scale(25, 25);
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: scale(40, 40);
    }
}