/* General body styling for theme consistency */
body {
    background-color: var(--bg-color, #f7fafc);
    color: var(--text-color-primary, #1a202c);
}

/* Dark mode variables */
:root {
    --bg-color: #f7fafc;
    --card-bg-color: white;
    --text-color-primary: #1a202c;
    --text-color-secondary: #4a5568;
}

html.dark {
    --bg-color: #1a202c;
    --card-bg-color: #2d3748;
    --text-color-primary: #edf2f7;
    --text-color-secondary: #a0aec0;
}

/* Style for the action buttons in the modal */
.modal-action-btn {
    background-color: #e5e7eb; /* bg-gray-200 */
    color: #1f2937; /* text-gray-800 */
    font-weight: 700;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    transition: background-color 0.2s;
}
.dark .modal-action-btn {
    background-color: #374151; /* dark:bg-gray-700 */
    color: #f3f4f6; /* dark:text-gray-200 */
}
.modal-action-btn:hover {
    background-color: #d1d5db; /* hover:bg-gray-300 */
}
.dark .modal-action-btn:hover {
    background-color: #4b5563; /* dark:hover:bg-gray-600 */
}

/* Strikethrough style for cooking mode */
.strikethrough {
    text-decoration: line-through;
    opacity: 0.6;
    transition: all 0.2s ease-in-out;
}

/* Custom Toggle Switch for Options Menu */
.toggle-checkbox:checked {
    right: 0;
    border-color: #4f46e5;
}
.toggle-checkbox:checked + .toggle-label {
    background-color: #4f46e5;
}

/* Multi-select styles */
.multi-select-mode .recipe-card-selectable::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid transparent;
    border-radius: 0.5rem;
    pointer-events: none;
    transition: border-color 0.2s;
}
.multi-select-mode .recipe-card-selectable.selected::after {
    border-color: #6366f1; /* Indigo-500 */
}

/* Styles for the print-friendly version of the recipe */
@media print {
    body * {
        visibility: hidden;
    }
    #print-area, #print-area * {
        visibility: visible;
    }
    #print-area {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
    }
}