body {
    font-family: 'Inter', sans-serif;
}
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 40;
}
.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 50;
}
.print-only {
    display: none;
}
@media print {
    body * {
        visibility: hidden;
    }
    .print-area,
    .print-area * {
        visibility: visible;
    }
    .print-area {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
    }
    .no-print {
        display: none;
    }
    .print-only {
        display: block;
    }
}
/* Toast Animations */
@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes fade-out-down {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(20px);
    }
}
.animate-fade-in-up {
    animation: fade-in-up 0.5s ease-out forwards;
}
.animate-fade-out-down {
    animation: fade-out-down 0.5s ease-in forwards;
}
/* Rich Text Editor */
.rich-text-editor {
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    padding: 0.5rem;
    min-height: 100px;
    outline: none;
}
.rich-text-editor:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.2);
}
.editor-toolbar button,
.editor-toolbar select {
    background-color: #f3f4f6;
    border: 1px solid #d1d5db;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    margin-right: 0.25rem;
}
.editor-toolbar button:hover,
.editor-toolbar select:hover {
    background-color: #e5e7eb;
}
/* Locked/Unlocked field styles */
.locked-field {
    background-color: #f3f4f6;
    color: #6b7280;
    cursor: not-allowed;
}
.always-editable {
    border-color: #10b981 !important;
    box-shadow: 0 0 0 1px #10b981;
}
.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border-left-color: #4f46e5;
    animation: spin 1s ease infinite;
}
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Styles for collapsible recipe list */
details > summary {
    list-style: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #4b5563; /* gray-600 */
    padding: 0.5rem;
    border-radius: 0.375rem;
    transition: background-color 0.2s;
}
details > summary::-webkit-details-marker {
    display: none;
}
details > summary:before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    content: "\f078"; /* fa-chevron-down */
    display: inline-block;
    margin-right: 0.5rem;
    transition: transform 0.2s;
}
details[open] > summary:before {
    transform: rotate(180deg);
}
details > summary:hover {
    background-color: #f3f4f6; /* gray-100 */
}
/* Styles for the new tools dropdown */
.tools-dropdown > summary {
    list-style: none; /* Remove default arrow */
}
.tools-dropdown > summary::-webkit-details-marker {
    display: none; /* Remove default arrow for Chrome/Safari */
}
/* Add our own arrow icon */
.tools-dropdown > summary:after {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    content: "\f078"; /* fa-chevron-down */
    display: inline-block;
    margin-left: auto;
    transition: transform 0.2s;
}
.tools-dropdown[open] > summary:after {
    transform: rotate(180deg);
}
/* --- Quill.js Font Dropdown & Content Styles --- */

/* Styles for the editor content */
.ql-font-Roboto {
  font-family: "Roboto", sans-serif;
}
.ql-font-Merriweather {
  font-family: "Merriweather", serif;
}
.ql-font-playfair-display {
  font-family: "Playfair Display", serif;
}
.ql-font-Pacifico {
  font-family: "Pacifico", cursive;
}
.ql-font-dancing-script {
  font-family: "Dancing Script", cursive;
}
.ql-font-Caveat {
  font-family: "Caveat", cursive;
}
.ql-font-Arial {
    font-family: Arial, sans-serif;
}
.ql-font-courier-new {
    font-family: "Courier New", monospace;
}


/* Styles for the font picker dropdown */
.ql-picker.ql-font .ql-picker-label[data-value=sans-serif]::before,
.ql-picker.ql-font .ql-picker-item[data-value=sans-serif]::before {
  font-family: "Sans Serif";
  content: 'Sans Serif';
}
.ql-picker.ql-font .ql-picker-label[data-value=serif]::before,
.ql-picker.ql-font .ql-picker-item[data-value=serif]::before {
  font-family: "Serif";
  content: 'Serif';
}
.ql-picker.ql-font .ql-picker-label[data-value=monospace]::before,
.ql-picker.ql-font .ql-picker-item[data-value=monospace]::before {
  font-family: "Monospace";
  content: 'Monospace';
}
.ql-picker.ql-font .ql-picker-item[data-value=Roboto]::before {
  font-family: "Roboto", sans-serif;
  content: 'Roboto';
}
.ql-picker.ql-font .ql-picker-item[data-value=Merriweather]::before {
  font-family: "Merriweather", serif;
  content: 'Merriweather';
}
.ql-picker.ql-font .ql-picker-item[data-value='playfair-display']::before {
  font-family: "Playfair Display", serif;
  content: 'Playfair Display';
}
.ql-picker.ql-font .ql-picker-item[data-value=Pacifico]::before {
  font-family: "Pacifico", cursive;
  content: 'Pacifico';
}
.ql-picker.ql-font .ql-picker-item[data-value='dancing-script']::before {
  font-family: "Dancing Script", cursive;
  content: 'Dancing Script';
}
.ql-picker.ql-font .ql-picker-item[data-value=Caveat]::before {
  font-family: "Caveat", cursive;
  content: 'Caveat';
}
.ql-picker.ql-font .ql-picker-item[data-value=Arial]::before {
  font-family: Arial, sans-serif;
  content: 'Arial';
}
.ql-picker.ql-font .ql-picker-item[data-value='courier-new']::before {
  font-family: "Courier New", monospace;
  content: 'Courier New';
}
/* Set default label */
.ql-picker.ql-font .ql-picker-label::before {
    content: 'Sans Serif';
}
/* Styles for nested sub-menus in the sidebar */
.sub-menu-summary {
    list-style: none;
    padding: 0.5rem 0.75rem;
    font-weight: 600;
    color: #4b5563; /* gray-600 */
    background-color: #f3f4f6; /* gray-100 */
    border-radius: 0.25rem;
    cursor: pointer;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    border: 1px solid #e5e7eb; /* gray-200 */
}
.sub-menu-summary::-webkit-details-marker {
    display: none;
}
.sub-menu-summary:before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    content: "\f0da"; /* fa-caret-right */
    margin-right: 0.5rem;
    transition: transform 0.2s;
}
.sub-menu[open] > .sub-menu-summary:before {
    transform: rotate(90deg);
}
.sub-menu-content {
    padding-left: 1rem;
    margin-top: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
/* Fix for double scrollbar issue on dynamic views */
#mainContent > div {
    height: auto;
}
body.shopping-mode-active #appContainer {
    display: none;
}
body.bake-mode-active #appContainer {
    display: none;
}
#cookie-consent-banner {
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
}
.shopping-list-filter-btn, .agenda-filter-btn {
    padding: 0.25rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 600;
    transition: background-color 0.2s;
}
.shopping-list-filter-btn.active-filter, .agenda-filter-btn.active-filter {
    background-color: #4f46e5; /* indigo-600 */
    color: white;
}
.shopping-list-filter-btn:not(.active-filter), .agenda-filter-btn:not(.active-filter) {
    background-color: #e5e7eb; /* gray-200 */
    color: #4b5563; /* gray-600 */
}

.ql-editor img.ql-image-left {
    float: left;
    margin-right: 1em;
    margin-bottom: 0.5em;
}

.ql-editor img.ql-image-right {
    float: right;
    margin-left: 1em;
    margin-bottom: 0.5em;
}
/* --- Custom Quill.js Font Sizes --- */
.ql-snow .ql-picker.ql-size .ql-picker-label[data-value="6pt"]::before,
.ql-snow .ql-picker.ql-size .ql-picker-item[data-value="6pt"]::before { content: '6pt'; }
.ql-snow .ql-picker.ql-size .ql-picker-label[data-value="8pt"]::before,
.ql-snow .ql-picker.ql-size .ql-picker-item[data-value="8pt"]::before { content: '8pt'; }
.ql-snow .ql-picker.ql-size .ql-picker-label[data-value="9pt"]::before,
.ql-snow .ql-picker.ql-size .ql-picker-item[data-value="9pt"]::before { content: '9pt'; }
.ql-snow .ql-picker.ql-size .ql-picker-label[data-value="10pt"]::before,
.ql-snow .ql-picker.ql-size .ql-picker-item[data-value="10pt"]::before { content: '10pt'; }
.ql-snow .ql-picker.ql-size .ql-picker-label[data-value="11pt"]::before,
.ql-snow .ql-picker.ql-size .ql-picker-item[data-value="11pt"]::before { content: '11pt'; }
.ql-snow .ql-picker.ql-size .ql-picker-label[data-value="12pt"]::before,
.ql-snow .ql-picker.ql-size .ql-picker-item[data-value="12pt"]::before { content: '12pt'; }
.ql-snow .ql-picker.ql-size .ql-picker-label[data-value="14pt"]::before,
.ql-snow .ql-picker.ql-size .ql-picker-item[data-value="14pt"]::before { content: '14pt'; }
.ql-snow .ql-picker.ql-size .ql-picker-label[data-value="18pt"]::before,
.ql-snow .ql-picker.ql-size .ql-picker-item[data-value="18pt"]::before { content: '18pt'; }
.ql-snow .ql-picker.ql-size .ql-picker-label[data-value="24pt"]::before,
.ql-snow .ql-picker.ql-size .ql-picker-item[data-value="24pt"]::before { content: '24pt'; }

.ql-editor .ql-size-6pt { font-size: 6pt; }
.ql-editor .ql-size-8pt { font-size: 8pt; }
.ql-editor .ql-size-9pt { font-size: 9pt; }
.ql-editor .ql-size-10pt { font-size: 10pt; }
.ql-editor .ql-size-11pt { font-size: 11pt; }
.ql-editor .ql-size-12pt { font-size: 12pt; }
.ql-editor .ql-size-14pt { font-size: 14pt; }
.ql-editor .ql-size-18pt { font-size: 18pt; }
.ql-editor .ql-size-24pt { font-size: 24pt; }


/* --- Custom Quill.js Line Heights --- */
.ql-snow .ql-picker.ql-lineheight .ql-picker-label::before { content: 'Line Spacing'; }
.ql-snow .ql-picker.ql-lineheight .ql-picker-item[data-value="compact"]::before { content: 'Compact'; }
.ql-snow .ql-picker.ql-lineheight .ql-picker-item[data-value="normal"]::before { content: 'Normal'; }
.ql-snow .ql-picker.ql-lineheight .ql-picker-item[data-value="relaxed"]::before { content: 'Relaxed'; }

.ql-editor .ql-lineheight-compact { line-height: 0.8; }
.ql-editor .ql-lineheight-normal { line-height: 1.2; }
.ql-editor .ql-lineheight-relaxed { line-height: 2.0; }

/* This reduces the default space between paragraphs to make it more compact */
.ql-editor p {
    margin: 0 0 4px 0;
}
/* --- Custom Quill.js Font Styles --- */
.ql-font-Roboto { font-family: "Roboto", sans-serif; }
.ql-font-Merriweather { font-family: "Merriweather", serif; }
.ql-font-playfair-display { font-family: "Playfair Display", serif; }
.ql-font-Pacifico { font-family: "Pacifico", cursive; }
.ql-font-dancing-script { font-family: "Dancing Script", cursive; }
.ql-font-Caveat { font-family: "Caveat", cursive; }
.ql-font-Arial { font-family: Arial, sans-serif; }
.ql-font-courier-new { font-family: "Courier New", monospace; }