/* Basic reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif; /* Retained original font */
    background-color: #fafafa;
    color: #333;
    line-height: 1.6;
    padding-top: 80px;
}

/* General container for other pages */
.container {
    width: 80%;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08); /* Softer, larger shadow */
}

/* Site header styles */
.site-header {
    background-color: #6a93ff;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 20px 0;
    height: 80px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 0 20px;
}

.site-header .logo {
    font-size: 24px;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
}

/* Header-specific container */
.site-header .header-container {
    display: flex;
    justify-content: flex-end;
    width: 100%;
}

/* Hamburger Menu Toggle Button */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    margin-left: auto;
}

/* Menu Icon (hamburger) */
.menu-icon {
    width: 30px;
    height: 30px;
    filter: brightness(0) invert(1);
    transition: filter 0.3s ease;
}

/* Navigation Menu */
.nav-menu ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: flex-end;
}

.nav-menu ul li {
    margin-left: 20px;
}

.nav-menu ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    padding: 0;
    transition: color 0.3s ease;
}

.nav-menu ul li a:hover {
    color: #f79e44;
}

/* Social Media SVG Icons */
.nav-menu ul li a img {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
    transition: filter 0.3s ease;
}

.nav-menu ul li a img:hover {
    filter: brightness(0) invert(0.6);
}

/* Responsive Navigation */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        margin-left: auto;
    }

    .nav-menu ul {
        display: none;
        flex-direction: column;
        background-color: #6a93ff;
        position: absolute;
        top: 80px;
        right: 0;
        width: 100%;
        padding: 20px;
    }

    .nav-menu.open ul {
        display: flex;
    }

    .nav-menu ul li {
        margin-left: 0;
        margin-bottom: 10px;
        text-align: right;
    }
}

/* Adjust margin between text and stats */
h1 + p {
    margin-bottom: 30px; /* This matches the gap between the stat-boxes and the dashboard links */
}

/* Adjust the stats section margin */
.dashboard-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px; /* Same as the gap between text and the stat-boxes */
}

/* Ensure consistent margin for the dashboard-links section */
.dashboard-links {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-top: 30px; /* Matches the margin-bottom of the dashboard-stats */
}


.stat-box {
    width: 30%;
    padding: 20px;
    background-color: #f5f5f5;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.stat-box .stat-count {
    font-size: 2.5em;
    font-weight: bold;
    color: #333;
    display: block;
}

.stat-box .stat-text {
    font-size: 1.1em;
    color: #666;
}

/* Apply consistent shadow and border to all card types */
.recipe-card,
.dashboard-item,
.feature-item,
.category-card,
.item-card,
.stat-box {
    background-color: #fff;
    border: none; /* Remove default border if any */
    border-radius: 10px; /* Consistent rounded corners */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.07); /* Consistent soft shadow for cards */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth hover effects */
}

/* Enhance hover for all card types */
.recipe-card:hover,
.dashboard-item:hover,
.feature-item:hover,
.category-card:hover,
.item-card:hover {
    transform: translateY(-5px); /* Lift effect */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15); /* More pronounced shadow on hover */
}

/* Remove specific dashboard-item hover if already covered by general card hover */
.dashboard-item:hover {
    transform: scale(1.0); /* Remove scale, use translateY for consistency */
}
.feature-item:hover {
    transform: scale(1.0); /* Remove scale, use translateY for consistency */
}

/* Recipe Grid */
.recipe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* More flexible grid */
    gap: 25px; /* Slightly more space between cards */
    margin-top: 20px;
}

.recipe-card {
    background-color: #fff;
    padding: 15px; /* More internal padding */
    border: 1px solid #ddd;
    border-radius: 8px;
    text-align: center;
}

.recipe-card img {
    max-width: 100%;
    height: 180px; /* Fixed height for images */
    object-fit: cover; /* Ensure images cover the area without distortion */
    border-radius: 8px;
    margin-bottom: 10px; /* Space below image */
}

.recipe-card h3 {
    margin: 10px 0 5px; /* Adjust spacing */
    font-size: 1.3em; /* Slightly larger title */
    line-height: 1.3;
}
.recipe-card h3 a {
    color: #333; /* Ensure link color is readable */
    text-decoration: none;
    transition: color 0.3s ease;
}
.recipe-card h3 a:hover {
    color: #f79e44;
}

.recipe-card p {
    margin: 0 0 8px; /* Adjust spacing */
    color: #666;
    font-size: 0.95em;
}

.pagination {
    margin-top: 30px; /* More space below recipe grid */
    text-align: center;
    display: flex; /* Use flexbox for button alignment */
    justify-content: center;
    gap: 15px; /* Space between pagination buttons */
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .recipe-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .recipe-grid {
        grid-template-columns: 1fr;
    }

    .container {
        width: 100%;
        padding: 10px;
    }

    .site-header nav ul {
        display: none;
    }
}

/* Dashboard */
.dashboard-links {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-top: 20px;
}

.dashboard-item {
    width: 45%;
    margin-bottom: 20px;
    padding: 20px;
    background-color: #f5f5f5;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease-in-out;
}

.dashboard-item:hover {
    transform: scale(1.05);
}

.dashboard-item h2 {
    margin-bottom: 10px;
    font-size: 1.5em;
    color: #333;
}

.dashboard-item p {
    margin-bottom: 15px;
    color: #666;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #f79e44;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 16px;
}

.btn:hover {
    background-color: #f68b35;
}


/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: url('assets/hero-image.jpg') center/cover no-repeat;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(250, 250, 250, 0.7);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: #333;
}

.hero-content h1 {
    font-size: 3em;
    color: #333;
}

.hero-content p {
    font-size: 1.2em;
    color: #666;
    margin-bottom: 20px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.cta-buttons .btn {
    background: #f79e44;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
}

.cta-buttons .btn:hover {
    background: #f68b35;
}

/* Features Section */
.features {
    padding: 40px 0;
    background-color: #fafafa;
    text-align: center;
}

.features h2 {
    font-size: 2em;
    margin-bottom: 40px;
    color: #333;
}

.feature-item {
    width: 45%;
    margin-bottom: 20px;
    padding: 20px;
    background-color: #f5f5f5;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease-in-out;
}

.feature-item:hover {
    transform: scale(1.05);
}

.feature-item i {
    color: #f79e44;
    margin-bottom: 10px;
}

.feature-item h3 {
    font-size: 1.5em;
    color: #333;
    margin-bottom: 10px;
}

.feature-item p {
    font-size: 1.1em;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Invite-Only Section */
.invite-only {
    padding: 40px 0;
    text-align: center;
}

.invite-only h2 {
    font-size: 2em;
    margin-bottom: 20px;
    color: #333;
}

.invite-only p {
    font-size: 1.1em;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Recipe Page Styles */
.recipe-container {
    width: 100%;
    max-width: 900px; /* Slightly wider for recipe content */
    margin: 0 auto;
    padding: 40px; /* More generous padding */
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.recipe-title-container {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on small screens */
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.title-actions {
    display: flex;
    align-items: baseline; /* Align title and author text */
    flex-grow: 1; /* Allow it to take space */
}

.recipe-title {
    margin: 0;
    font-size: 2.8em; /* Prominent title */
    color: #333;
    margin-right: 15px; /* Space between title and author */
}

.recipe-author {
    font-size: 1em;
    color: #666;
    font-weight: normal;
    margin-left: 10px;
    white-space: nowrap; /* Prevent author name from wrapping */
}

.recipe-actions {
    display: flex;
    gap: 15px; /* Space between edit/delete icons */
    margin-top: 10px; /* Add some top margin for small screens */
}
.recipe-actions .edit-icon img,
.recipe-actions .delete-icon img {
    width: 25px; /* Larger icons for actions */
    height: 25px;
    filter: invert(40%) sepia(30%) saturate(600%) hue-rotate(-20deg) brightness(80%) contrast(90%); /* Orange tone for icons */
    transition: transform 0.2s ease, filter 0.2s ease;
}
.recipe-actions .edit-icon img:hover,
.recipe-actions .delete-icon img:hover {
    transform: scale(1.1);
    filter: invert(70%) sepia(30%) saturate(800%) hue-rotate(-20deg) brightness(100%) contrast(90%);
}

.recipe-image-container {
    text-align: center;
    margin: 30px 0; /* More space around image */
}

.recipe-image {
    width: 100%;
    max-width: 600px;
    height: 400px; /* Fixed height for a consistent look */
    object-fit: cover; /* Cover the area, cropping if necessary */
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1); /* Deeper shadow for main image */
}

.recipe-details {
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 1px solid #eee; /* Subtle separator */
    padding-bottom: 25px;
}

.recipe-details .details-group {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping */
    justify-content: center;
    align-items: center;
    gap: 20px; /* Space between detail items */
    font-size: 1.1em;
    font-weight: 500;
    color: #555;
}
.recipe-details .details-group span {
    margin-right: 0; /* Remove default margin-right */
}

.recipe-details .rating {
    display: inline-block;
    display: flex; /* Align stars and text */
    align-items: center;
    gap: 5px; /* Space between stars */
    margin-left: 15px; /* Space from other details */
}

.rating-star {
    width: 24px; /* Larger stars */
    height: 24px;
    cursor: pointer;
    filter: brightness(0.9);
    transition: transform 0.2s ease;
}
.rating-star:hover {
    transform: scale(1.1);
}
.rating-star.checked {
    filter: invert(70%) sepia(30%) saturate(600%) hue-rotate(-20deg) brightness(100%) contrast(90%); /* Orange filled star */
}

.recipe-details .rating p {
    margin: 0;
    font-size: 0.95em;
    color: #666;
}
.recipe-details .rating p:last-of-type {
    margin-left: 5px;
    font-size: 0.85em;
}

.recipe-ingredients, .recipe-method {
    margin-bottom: 30px; /* Space below sections */
    padding: 0 20px; /* Add horizontal padding for content */
}

.recipe-ingredients h3, .recipe-method h3 {
    font-size: 1.8em;
    margin-bottom: 15px;
}

.recipe-ingredients ul {
    list-style-type: disc;
    padding-left: 25px; /* More padding for list items */
    color: #333;
    line-height: 1.8; /* More space between list items */
}

.recipe-ingredients ul li {
    margin-bottom: 8px;
}

.recipe-method div {
    font-size: 1.1em;
    color: #333;
    line-height: 1.7; /* Good readability */
}

.add-to-cookbook {
    margin-top: 20px;
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid #eee; /* Subtle separator */
}

.add-to-cookbook a {
    background-color: #f79e44;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 4px;
    font-size: 16px;
}

.add-to-cookbook a:hover {
    background-color: #f68b35;
}

/* Rating stars */
/* NOTE: The above .rating-star rules override these, keeping for reference if original was desired. */
.rating-star {
    width: 20px;
    height: 20px;
    cursor: pointer;
    filter: brightness(0.8);
}

.recipe-title-container {
    display: flex;
    align-items: center;
}

.recipe-title {
    margin: 0;
    font-size: 2em;
}

.recipe-author {
    font-size: 1em;
    color: #666;
    font-weight: normal;
    margin-left: 10px;
}

/* Login Form */
.form-container {
    max-width: 600px; /* Increase the width from 400px to 600px */
    margin: 100px auto; /* Center the form */
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08); /* Softer, larger shadow */
}


/* Input fields */
.input-field {
    width: 100%;
    padding: 14px 18px; /* Slightly more padding for easier tapping/clicking*/
    margin-bottom: 20px; /* Increased space between fields for better visual separation*/
    border: 1px solid #d0d0d0; /* Softer border for a cleaner look*/
    border-radius: 6px; /* Slightly more rounded corners*/
    font-size: 17px; /* Larger font size for readability*/
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.input-field:focus {
    outline: none;
    border-color: #f79e44; /* Orange border on focus*/
    box-shadow: 0 0 0 3px rgba(247, 158, 68, 0.2); /* Soft orange glow on focus*/
}


/* Error messages */
.error-list {
    color: red;
    list-style: none;
    padding: 0;
    margin-bottom: 15px;
}

.error-list li {
    margin-bottom: 5px;
}

/* Form labels */
form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
    font-size: 1.1em; /* Slightly larger label font size for readability*/
}

/* Buttons */
form button.btn {
    width: auto; /* Allow button to size to content */
    min-width: 180px; /* Ensure a decent size*/
    padding: 12px 25px; /* More padding for clickability*/
    font-size: 18px; /* Larger text on button*/
    margin-top: 25px; /* More space above the submit button*/
    display: block; /* Make it a block element to center easily */
    margin-left: auto;
    margin-right: auto;
    background-color: #f79e44;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
}

form button.btn:hover {
    background-color: #f68b35;
}

/* Input fields for quantity and unit on the same line */
.inline-fields {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on smaller screens*/
    gap: 15px; /* Consistent spacing between fields*/
    align-items: flex-end; /* Align items to their bottom edges */
}

/* Ingredient section layout */
.ingredient {
    margin-bottom: 20px; /* Space between each ingredient block*/
    border: 1px solid #eee; /* Light border around each ingredient for visual grouping*/
    padding: 15px;
    border-radius: 8px;
    background-color: #fdfdfd;
}

.inline-fields label {
    margin-bottom: 5px; /* Reduce label margin within inline-fields */
    width: 100%; /* Ensure label takes full width above its input */
    font-size: 0.95em; /* Slightly smaller label for sub-fields */
    font-weight: normal; /* Less bold for sub-field labels */
    color: #555;
}

.inline-fields .input-field {
    margin-bottom: 0; /* Remove bottom margin here to let gap handle spacing */
}


/* Half width styling for quantity, unit, prep time, and serves fields */
.half-width {
    width: 48%; /* Original width */
}
.inline-fields .half-width { /* This applies to unit dropdown */
    flex-basis: calc(50% - 15px); /* Adjusted for gap*/
    max-width: calc(50% - 15px);
    min-width: 120px; /* Minimum width for unit dropdown */
}


/* Quarter width styling for quantity, unit, prep time, and serves fields */
.quarter-width {
    width: 20%; /* Original width */
}
.inline-fields .quarter-width {
    flex-basis: calc(25% - 15px); /* Adjusted for gap*/
    max-width: calc(25% - 15px); /* Ensure it doesn't grow too much */
    min-width: 80px; /* Minimum width for very small quantities */
}

.unit-container { /* New container for unit select and custom unit input */
    display: flex;
    flex-grow: 1;
    gap: 10px; /* Space between unit select and custom unit input */
    align-items: center;
}

.unit-container .unit-select {
    flex-grow: 1; /* Allow select to take available space */
}

.custom-unit-input {
    flex-grow: 1; /* Allow custom unit input to take available space */
    min-width: 100px; /* Ensure it has a minimum width */
    max-width: 150px; /* Prevents it from getting too wide if select is small */
}

/* Responsive adjustments for ingredient fields */
@media (max-width: 768px) {
    .inline-fields {
        flex-direction: column; /* Stack fields vertically on smaller screens*/
        gap: 15px; /* Maintain gap for vertical stacking */
    }

    .inline-fields .input-field,
    .inline-fields .quarter-width,
    .inline-fields .half-width,
    .unit-container,
    .custom-unit-input {
        flex-basis: 100%; /* Full width on small screens*/
        max-width: 100%;
        min-width: unset; /* Remove min-width constraints */
        width: 100%;
    }
}


/* Hide the 'Other' input field by default */
.hidden {
    display: none;
}

/* Style for the checkbox */
.checkbox-label {
    display: flex;
    align-items: center;
    margin-top: 10px;
}

.checkbox {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    appearance: none;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    transition: background-color 0.3s ease;
}

.checkbox:checked {
    background-color: #f79e44;
    border: 1px solid #f79e44;
}

.checkbox:checked::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    width: 10px;
    height: 10px;
    background-color: #f79e44;
    border-radius: 2px;
}

/* Styling for round button with a + sign */
.round-btn {
    width: 45px; /* Slightly larger*/
    height: 45px; /* Slightly larger*/
    border-radius: 50%;
    background-color: #f79e44;
    color: white;
    font-size: 28px; /* Larger plus sign*/
    border: none;
    cursor: pointer;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px; /* Increased margin for better separation*/
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.round-btn:hover {
    background-color: #f68b35;
    transform: rotate(90deg); /* Playful rotate effect on hover*/
}

/* Quill editor container */
#editor {
    min-height: 250px; /* More generous height for the method field*/
    border: 1px solid #d0d0d0; /* Consistent border*/
    border-radius: 6px; /* Consistent border-radius*/
    margin-bottom: 20px; /* Consistent spacing below editor*/
    font-size: 1.1em; /* Make text inside editor more readable*/
    line-height: 1.6;
}

/* Quill toolbar styling */
.ql-toolbar.ql-snow {
    border: 1px solid #d0d0d0; /* Consistent border*/
    border-bottom: none; /* Blend with editor body */
    border-radius: 6px 6px 0 0; /* Rounded top corners*/
    background-color: #f8f8f8; /* Light background for toolbar */
}

/* Quill content area styling */
.ql-container.ql-snow {
    border: 1px solid #d0d0d0; /* Consistent border*/
    border-radius: 0 0 6px 6px; /* Rounded bottom corners*/
}

/* Image Uploads */
input[type="file"] {
    display: block; /* Each file input on its own line */
    margin-bottom: 15px; /* Space between file inputs*/
    padding: 10px;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    background-color: #fcfcfc;
    width: 100%;
    box-sizing: border-box;
    font-size: 1em;
}

input[type="file"]::file-selector-button {
    background-color: #6a93ff; /* Match header blue */
    color: white;
    padding: 8px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 15px;
    transition: background-color 0.3s ease;
}

input[type="file"]::file-selector-button:hover {
    background-color: #557edb; /* Darker blue on hover */
}


/* Footer */
footer {
    background-color: #6a93ff;
    color: #fff;
    font-size: 18px;
    padding: 20px 0;
    text-align: center;
}

.social-icons a {
    margin: 0 10px;
    text-decoration: none;
}

/* Style SVG icons in the footer */
.social-icons img {
    width: 30px;
    height: 30px;
    filter: brightness(0) invert(1); /* Make the icons white */
    transition: filter 0.3s ease; /* Smooth transition */
}

.social-icons img:hover {
    filter: brightness(0) invert(0.6); /* Change to orange-like hover color */
}

/* ----- TO BE REMOVED FOLLOWING LAUNCH ----- */
/* Interest Registration Page Styling */
/* This section needs to be reviewed as it duplicates .form-container rules */
.form-container {
    max-width: 400px;
    margin: 100px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}



.success-message {
    color: green;
    font-size: 16px;
    margin-bottom: 15px;
}

.error-list {
    color: red;
    list-style: none;
    padding: 0;
    margin-bottom: 15px;
}

/* Category and Item Grid Styling */
.category-grid, .item-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.category-card, .item-card {
    background-color: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.category-card a, .item-card p {
    color: #333;
    text-decoration: none;
    font-weight: bold;
}

.category-card a:hover {
    color: #f79e44;
}

/* Hidden elements */
.hidden {
    display: none;
}

/* Category Grid Layout */
.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 columns layout */
    gap: 20px; /* Space between grid items */
    margin-top: 20px;
}

.category-card {
    background-color: #fff;
    padding: 20px; /* Slightly more padding */
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    transition: transform 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 180px; /* Increase height for the icon and label */
}

.category-card:hover {
    transform: scale(1.05); /* Zoom on hover */
}

.category-card a {
    text-decoration: none;
    color: #333;
}

.category-card a:hover {
    color: #f79e44;
}

/* Category Icon Style */
.category-icon {
    width: 50px; /* Adjust the icon size */
    height: 50px;
    margin-bottom: 10px;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.category-icon:hover {
    transform: scale(1.1); /* Enlarge slightly on hover */
}

/* Grid Responsiveness */
@media (max-width: 768px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr); /* Two columns for smaller screens */
    }
}

@media (max-width: 480px) {
    .category-grid {
        grid-template-columns: 1fr; /* Single column for very small screens */
    }
}

/* Grid layout for items in pantry category */
.item-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 columns for larger screens */
    gap: 20px;
    margin-top: 20px;
}

.item-card {
    background-color: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
    position: relative; /* For positioning icons */
}

.item-card p {
    margin-bottom: 40px; /* Space for icons */
}

/* Edit and Delete icons container */
.item-actions {
    position: absolute;
    bottom: 10px;
    right: 10px;
    display: flex;
    gap: 10px;
}

/* Icon buttons */
.edit-icon img, .delete-icon img {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

/* Style for the delete form button */
.delete-icon {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

/* Responsive grid for smaller screens */
@media (max-width: 768px) {
    .item-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns for medium screens */
    }
}

@media (max-width: 480px) {
    .item-grid {
        grid-template-columns: 1fr; /* Single column for small screens */
    }
}

.meal-plan-form {
    text-align: center;
    margin-bottom: 30px;
}

.meal-plan-table {
    width: 100%;
    margin-top: 20px;
    border-collapse: collapse;
}

.meal-plan-table th, .meal-plan-table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: center;
}

.meal-plan-table th {
    font-weight: bold;
    background-color: #f5f5f5;
}

.meal-plan-table td {
    background-color: #fff;
}

.meal-cell {
    position: relative;
    padding-bottom: 30px; /* Add padding to the bottom to make space for the icons */
}

.meal-actions {
    position: absolute;
    left: 50%; /* Center the icons horizontally */
    transform: translateX(-50%); /* Ensure perfect centering */
    bottom: 5px; /* Align icons to the bottom of the cell */
    display: flex; /* Ensure both icons are side by side */
    gap: 10px; /* Add some space between the icons */
}

.meal-actions img {
    width: 16px; /* Adjust the icon size */
    height: 16px;
    cursor: pointer;
}


/* Adjust meal plan recipes section title to match others */
.section-title {
    font-size: 2em;
    margin-top: 40px; /* Add margin-top */
    margin-bottom: 20px; /* Add margin-bottom */
    color: #333;
    text-align: center; /* Center the title */
}


/* Align the form controls */
.form-actions {
    display: flex;
    align-items: center;
    gap: 20px; /* Space between the button and checkboxes */
}

/* Button alignment */
.form-actions .btn {
    margin-right: 20px; /* Space between the button and checkboxes */
}

/* Consistent spacing between sections */
.meal-plan-section {
    margin-bottom: 40px; /* Same as spacing between recipes sections in cookbook.php */
}

/* Admin Table Styling */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.admin-table th,
.admin-table td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: center;
}

.admin-table th {
    background-color: #f5f5f5;
    font-weight: bold;
}

.admin-table td {
    background-color: #fff;
}

/* Smaller button styles for admin panel */
.btn-small {
    padding: 5px 10px;  /* Smaller padding */
    font-size: 14px;    /* Smaller font size */
    background-color: #f79e44;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.btn-small:hover {
    background-color: #f68b35;  /* Same hover effect */
}

/* WYSIWYG Spacing Class */
.wysiwyg-spacing {
    margin-bottom: 200px; /* Adjust spacing as needed */
}


/* Styling for Admin Email Settings */
.hidden { display: none; }
.edit-icon { cursor: pointer; width: 16px; margin-left: 10px; }
.edit-input { width: 100%; }
.template { border: 1px solid #ddd; padding: 10px; margin-bottom: 10px; }
.template-header { display: flex; justify-content: space-between; align-items: center; }

.btn-hide {
    padding: 5px 10px;  /* Smaller padding */
    font-size: 14px;    /* Smaller font size */
    background-color: #f79e44;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.btn-hide:hover {
    background-color: #f68b35;
}

.btn-preview {
    padding: 5px 10px;  /* Smaller padding */
    font-size: 14px;    /* Smaller font size */
    background-color: #f79e44;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.btn-preview:hover {
    background-color: #f68b35;
}