@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Montserrat:wght@400;500;600;700&display=swap');
@import url('/static/css/buttons.css');

/* Reset for better responsive behavior */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Professional Color Palette */
    --kitchen-steel: #EEF2F7;
    --kitchen-dark: #1E2A38;
    --kitchen-black: #121820;
    --kitchen-blue: #2C3E50;
    --kitchen-highlight: #3498DB;
    --kitchen-success: #2ECC71;
    --kitchen-warning: #F39C12;
    --kitchen-danger: #E74C3C;
    --text-light: #F8F9FA;
    --text-dark: #2C3E50;
    --text-muted: #95A5A6;
    --focus-bg-color: #2C3E50;
    --focus-text-color: #fff;
    --border-color: rgba(255, 255, 255, 0.1);
    --table-header-bg: #2C3E50;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-full: 9999px;
}

body {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    margin: 0;
    font-family: 'Poppins', Arial, sans-serif;
    background-color: var(--kitchen-black);
    color: var(--text-light);
    overflow-x: hidden;
    line-height: 1.6;
}

.container {
    flex: 1;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem;
    background-color: var(--kitchen-dark);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

/* Fix for container alignment issues when zooming */
.container main {
    overflow-x: hidden; /* Prevent horizontal scrolling */
    width: 100%;
}

/* Content alignment fixes */
h2,
p,
.navigation-buttons,
.search-filter,
form,
.card {
    max-width: 1200px;
    margin-left: 0;
    margin-right: auto;
}

/* Typography Improvements */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.3;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
    color: var(--text-light);
    border-bottom: 2px solid var(--kitchen-highlight);
    padding-bottom: 0.5rem;
    margin-top: 2rem;
}

h3 {
    font-size: 1.5rem;
    color: var(--kitchen-highlight);
}

p {
    margin-bottom: 1.2rem;
    color: var(--text-light);
    max-width: 800px;
}

a {
    color: var(--kitchen-highlight);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--text-light);
    text-decoration: none;
}

/* Navigation Improvements */
nav ul {
    display: flex;
    list-style: none;
    padding: 0;
    gap: 1rem;
}

nav ul li a button {
    padding: 0.75rem 1.5rem;
    border: none;
    background-color: var(--kitchen-blue);
    color: white;
    border-radius: var(--radius-md);
    font-weight: 500;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
}

nav ul li a button:hover {
    background-color: var(--kitchen-highlight);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

nav ul li a button.active {
    background-color: var(--kitchen-highlight);
    box-shadow: var(--shadow-md);
}

/* Flash Message Improvements */
.flash-message {
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--kitchen-highlight);
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: var(--radius-md);
    background-color: rgba(52, 152, 219, 0.1);
    box-shadow: var(--shadow-sm);
    animation: slideDown 0.5s ease-in-out;
}

/* Footer Improvements */
footer {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(52, 152, 219, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(52, 152, 219, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(52, 152, 219, 0);
    }
}

/* Table Improvements */
.dish-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-start;
    align-items: center;
}

/* Checkbox Improvements */
.print-checkbox {
    width: 20px;
    height: 20px;
    margin: 0;
    cursor: pointer;
    accent-color: var(--kitchen-highlight);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

/* Table Styling Improvements */
.dish-table, 
.ingredient-table, 
.suppliers-table,
.menu-export-table {
    width: 100%;
    margin-bottom: 1.5rem;
    background-color: rgba(30, 42, 56, 0.8);
    border-collapse: separate;
    border-spacing: 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.dish-table th,
.ingredient-table th,
.suppliers-table th,
.menu-export-table th {
    background-color: var(--kitchen-blue);
    color: var (--text-light);
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--kitchen-highlight);
}

.dish-table td,
.ingredient-table td,
.suppliers-table td,
.menu-export-table td {
    padding: 1rem;
    vertical-align: middle;
    border-bottom: 1px solid rgba(88, 110, 117, 0.3);
    transition: background-color var(--transition-fast);
}

.dish-table tr:hover td,
.ingredient-table tr:hover td,
.suppliers-table tr:hover td,
.menu-export-table tr:hover td {
    background-color: rgba(52, 152, 219, 0.05);
}

.dish-table tr:last-child td,
.ingredient-table tr:last-child td,
.suppliers-table tr:last-child td,
.menu-export-table tr:last-child td {
    border-bottom: none;
}

/* Specific column widths */
.col-actions {
    width: 250px;
    text-align: center;
}

.col-price {
    width: 100px;
    text-align: right;
}

.col-amount {
    width: 80px;
}

.col-amount input {
    width: 60px;
    padding: 0.5rem;
    text-align: center;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background-color: var(--kitchen-dark);
    color: var(--text-light);
}

/* Edit Forms Improvements */
.edit-dish-form,
.create-dish-form,
.supplier-form {
    max-width: 1200px;
    margin: 0 auto 2rem;
}

.edit-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: rgba(30, 42, 56, 0.8);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.edit-section h3 {
    color: var(--kitchen-highlight);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

/* Fix for checkbox alignment in edit sections */
.edit-section .form-check {
    padding-left: 0;
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
}

.edit-section .form-check-input {
    position: relative;
    margin-left: 0;
    margin-right: 10px;
    flex-shrink: 0;
}

.edit-section .form-check-label {
    margin-bottom: 0;
}

/* Allergen & Diet selection styling in edit sections */
.edit-section .allergen-checkbox-group,
.edit-section .diet-checkbox-group {
    padding: 0.75rem;
}

.edit-section .allergen-checkbox-item,
.edit-section .diet-checkbox-item {
    padding: 0.5rem;
    margin-bottom: 0.5rem;
}

/* Ingredient Form Improvements */
.ingredient-form {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1.5rem;
    width: 100%;
    background-color: rgba(18, 24, 32, 0.4);
    padding: 1.5rem;
    border-radius: var(--radius-md);
}

.ingredient-form select,
.ingredient-form input {
    width: 100%;
    min-width: 0;
    padding: 0.75rem;
    border-radius: var (--radius-md);
    border: 1px solid var(--border-color);
    background-color: var(--kitchen-dark);
    color: var(--text-light);
    transition: all var(--transition-fast);
}

.ingredient-form select:focus,
.ingredient-form input:focus {
    border-color: var(--kitchen-highlight);
    outline: none;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.25);
}

.ingredient-form .btn-action {
    white-space: nowrap;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1.5rem;
    border-radius: var(--radius-md);
    background-color: var(--kitchen-highlight);
    color: white;
    font-weight: 500;
    transition: all var(--transition-normal);
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.ingredient-form .btn-action:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Button Improvements */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 500;
    transition: all var(--transition-normal);
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.btn-primary {
    background-color: var(--kitchen-highlight);
    color: white;
}

.btn-success {
    background-color: var(--kitchen-success);
    color: white;
}

.btn-warning {
    background-color: var(--kitchen-warning);
    color: white;
}

.btn-danger {
    background-color: var(--kitchen-danger);
    color: white;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-action {
    background-color: var(--kitchen-blue);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all var(--transition-normal);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: var(--shadow-sm);
}

.btn-action:hover {
    background-color: var(--kitchen-highlight);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-edit { 
    background-color: var(--kitchen-blue); 
}

.btn-export { 
    background-color: var(--kitchen-success); 
}

.btn-delete { 
    background-color: var(--kitchen-danger); 
}

/* Card Improvements */
.card {
    background-color: rgba(30, 42, 56, 0.8);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Fix for welcome-card spacing issues when zooming */
.welcome-card {
    overflow: hidden; /* Prevent content overflow */
    width: 100%; /* Ensure full width */
    margin-left: 0 !important; /* Remove any margins that could cause spacing */
    margin-right: 0 !important;
}

.welcome-card .card-body {
    padding: 2rem; /* Standard padding */
}

/* Form Control Improvements */
.form-control {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: var(--kitchen-dark);
    color: var(--text-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    box-sizing: border-box;
}

.form-control:focus {
    background-color: rgba(18, 24, 32, 0.9);
    border-color: var(--kitchen-highlight);
    outline: none;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.25);
}

.form-control::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

/* Form Group Improvements */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-light);
    font-weight: 500;
}

/* Search Filter Improvements */
.search-filter {
    background-color: rgba(30, 42, 56, 0.8);
    padding: 1.5rem;
    border-radius: var (--radius-lg);
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.search-filter input,
.search-filter select {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background-color: var(--kitchen-dark);
    color: var(--text-light);
    transition: all var(--transition-fast);
    flex: 1;
    min-width: 0;
}

.search-filter input:focus,
.search-filter select:focus {
    border-color: var(--kitchen-highlight);
    outline: none;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.25);
}

/* Allergen & Diet Icons Improvements */
.allergeen-icon,
.dieet-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5em;
    height: 2.5em;
    border-radius: 50%;
    font-weight: bold;
    font-size: 0.8em;
    user-select: none;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.allergeen-icon {
    background-color: var(--kitchen-danger);
    color: white;
}

.dieet-icon {
    background-color: var(--kitchen-success);
    color: white;
}

.allergeen-icon:hover,
.dieet-icon:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-md);
}

.allergenen-icons,
.dieten-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75em;
    margin-top: 0.5em;
}

.allergeen-legend,
.dieet-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5em;
    margin-top: 1.5em;
    padding: 1.5em;
    background-color: rgba(18, 24, 32, 0.4);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.allergeen-legend-item,
.dieet-legend-item {
    display: flex;
    align-items: center;
    font-size: 0.9em;
    background-color: rgba(30, 42, 56, 0.8);
    padding: 0.75em 1em;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.allergeen-legend-item:hover,
.dieet-legend-item:hover {
    background-color: rgba(52, 152, 219, 0.1);
    transform: translateY(-2px);
}

/* Dashboard Improvements */
.dashboard-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
    gap: 1.5rem !important;
    width: 100% !important;
    margin: 1.5rem 0 !important;
}

.dashboard-btn-wrapper {
    margin: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal) !important;
}

.dashboard-btn-wrapper:hover {
    transform: translateY(-5px) !important;
    box-shadow: var(--shadow-lg) !important;
}

.dashboard-btn {
    background: linear-gradient(135deg, var(--kitchen-blue), var(--kitchen-dark)) !important;
    border: 1px solid var(--border-color) !important;
    padding: 2rem !important;
    min-height: 150px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 1rem !important;
    transition: all var(--transition-normal) !important;
    border-radius: var(--radius-lg) !important;
    text-align: center !important;
}

.dashboard-btn i {
    font-size: 2.5em !important;
    margin-bottom: 1rem !important;
    transition: transform var(--transition-normal) !important;
}

.dashboard-btn:hover {
    background: linear-gradient(135deg, var(--kitchen-highlight), #2980b9) !important;
}

.dashboard-btn:hover i {
    transform: scale(1.2) !important;
}

.dashboard-title {
    color: var(--text-light);
    font-size: 2.5rem;
    margin-bottom: 2rem;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.dashboard-title::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100px;
    height: 4px;
    background: var(--kitchen-highlight);
    border-radius: var(--radius-full);
}

/* Mobile-first responsive design */
@media (max-width: 768px) {
    body {
        padding: 0;
        min-height: auto;
        /* Remove min-height on mobile */
    }

    .container {
        width: 100%;
        padding: 10px;
        margin: 0;
        box-shadow: none;
    }

    .card {
        border: none;
        border-radius: 0;
    }

    .card-body {
        padding: 1rem 0.5rem;
    }

    /* Navigation */
    nav ul {
        flex-direction: column;
        gap: 5px;
        /* Reduced gap between menu items */
        text-align: center;
    }

    nav ul li {
        margin-right: 0;
        /* Remove extra margin */
        width: 100%;
        margin-bottom: 5px;
        /* Consistent small spacing */
    }

    nav ul li a button {
        width: 100%;
        padding: 10px 15px;
        /* Adjust button padding as needed */
    }

    /* Tables */
    .dish-table,
    .ingredient-table,
    .usage-table {
        display: block;
        overflow-x: auto;
        font-size: 0.9rem;
    }

    .dish-table th,
    .dish-table td,
    .ingredient-table th,
    .ingredient-table td,
    .usage-table th,
    .usage-table td {
        min-width: 100px;
        padding: 12px 8px;
    }

    .dish-table td,
    .ingredient-table td {
        padding: 0.5rem;
    }

    /* Forms */
    .edit-ingredient-form,
    .edit-dish-form {
        padding: 15px;
    }

    .ingredient-form {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .ingredient-form select,
    .ingredient-form input {
        width: 100%;
        max-width: none;
        padding: 12px;
    }

    .ingredient-form .btn-action {
        margin-top: 1rem;
        margin-bottom: 0;
        width: 100%;
    }

    .ingredient-form input[type="number"] {
        min-width: 0;
    }

    /* Search and filters */
    .search-filter {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .search-filter input,
    .search-filter select {
        width: 100%;
        max-width: none;
        margin-left: 0;
    }

    /* Buttons */
    .btn-action {
        padding: 0.75rem;
        margin: 0.25rem 0;
        width: 100%;
        display: block;
    }

    /* Icons */
    .allergeen-icons,
    .dieten-icons {
        gap: 10px;
    }

    .allergeen-icon,
    .dieet-icon {
        width: 2.5em;
        height: 2.5em;
        font-size: 1em;
        margin: 0.25rem;
    }

    /* Legends */
    .allergeen-legend,
    .dieet-legend {
        flex-direction: column;
        gap: 10px;
    }

    /* Price sections */
    .price-section input {
        width: 100%;
        margin-right: 0;
        margin-bottom: 10px;
    }

    /* Navbar brand image */
    .navbar-brand img {
        height: 30px;
    }

    /* Card, accordion and other common mobile elements */
    .accordion {
        width: 100%;
        margin: 1rem 0;
    }

    .accordion-button {
        padding: 0.75rem;
        font-size: 0.9rem;
    }

    .accordion-body {
        padding: 1rem;
        font-size: 0.9rem;
    }

    /* Add-ingredient-form specific styles */
    .add-ingredient-form .form-group {
        width: 100%;
        margin-bottom: 10px;
    }

    .add-ingredient-form .form-control {
        width: 100%;
    }

    .edit-section .form-check {
        padding-left: 0;
    }
}

/* Additional tablet breakpoint */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        width: 95%;
        padding: 1rem;
    }

    .ingredient-form {
        flex-wrap: wrap;
    }

    .dish-table,
    .ingredient-table {
        font-size: 0.95rem;
    }

    .btn-action {
        padding: 0.5rem 1rem;
    }
}

/* Tablet and desktop styles */
@media (min-width: 769px) {
    body {
        padding: 1rem;
    }

    .container {
        width: 95%;
        margin: 1rem auto;
        padding: 1rem;
        border-radius: 8px;
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    }
}

/* Larger screens */
@media (min-width: 1025px) {
    .container {
        padding: 2rem;
    }
}

/* Print styles */
@media print {
    .container {
        width: 100%;
        max-width: none;
        padding: 0;
        margin: 0;
        box-shadow: none;
    }

    .no-print {
        display: none;
    }
}

/* Enhanced Responsive Design */
.flex-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.flex-item {
    flex: 1;
    min-width: 250px;
}

.responsive-table {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.card {
    background-color: var(--kitchen-dark);
    border: 1px solid var(--kitchen-steel);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .btn-group {
        flex-direction: column;
        width: 100%;
    }

    .btn-group .btn {
        width: 100%;
        margin: 0.25rem 0;
    }

    .form-group {
        margin-bottom: 1rem;
    }

    .card {
        padding: 0.75rem;
    }

    .responsive-table {
        font-size: 0.9rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        width: 95%;
        padding: 1rem;
    }

    .ingredient-form {
        flex-wrap: wrap;
    }

    .dish-table,
    .ingredient-table {
        font-size: 0.95rem;
    }

    .btn-action {
        padding: 0.5rem 1rem;
    }
}

@media (min-width: 1025px) {
    .container {
        padding: 2rem;
    }
}

/* Enhanced Form Styling */
.form-group {
    margin-bottom: 1.5rem;
}

.form-control {
    display: block;
    width: 100%;
    padding: 0.5rem;
    background-color: var(--kitchen-steel); /* Default background */
    color: var(--kitchen-black); /* Default text color */
    border: 1px solid var(--kitchen-steel);
    border-radius: 4px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-control:focus {
    background-color: #fff; /* Focus background: white */
    border-color: var(--kitchen-highlight);
    outline: none;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.25);
    color: var(--kitchen-black); /* Focus text color: dark */
}

/* Add this rule to handle text selection color */
.form-control::selection {
    background-color: var(--kitchen-highlight); /* Use highlight color */
    color: #000; /* Ensure text is readable: black */
}

.form-control::-moz-selection {
    background-color: var(--kitchen-highlight); /* Use highlight color */
    color: #000; /* Ensure text is readable: black */
}

/* Specifieke styling voor verschillende input types */
input[type="text"].form-control,
input[type="email"].form-control,
input[type="tel"].form-control,
input[type="number"].form-control,
input[type="password"].form-control,
select.form-control,
textarea.form-control {
    background-color: var(--kitchen-steel);
    color: var(--kitchen-black);
    text-align: left;
}

input[type="text"].form-control:focus,
input[type="email"].form-control:focus,
input[type="tel"].form-control:focus,
input[type="number"].form-control:focus,
input[type="password"].form-control:focus,
select.form-control:focus,
textarea.form-control:focus {
    color: var(--kitchen-black); /* Keep text dark on focus */
}

.form-control::placeholder {
    color: var(--text-muted);
}

/* Styling for disabled state */
input[type="text"].form-control:disabled,
input[type="email"].form-control:disabled,
input[type="tel"].form-control:disabled,
input[type="number"].form-control:disabled,
input[type="password"].form-control:disabled,
select.form-control:disabled,
textarea.form-control:disabled {
    background-color: var(--kitchen-steel);
    color: var(--text-dark);
    border-color: var(--border-color);
    opacity: 0.7;
    cursor: not-allowed;
}

/* Styling for readonly state */
input[type="text"].form-control[readonly],
input[type="email"].form-control[readonly],
input[type="tel"].form-control[readonly],
input[type="number"].form-control[readonly],
input[type="password"].form-control[readonly],
select.form-control[readonly],
textarea.form-control[readonly] {
    background-color: var(--kitchen-steel);
    color: var (--text-dark);
    border-color: var(--border-color);
}

/* Dropdown (Select) Styling */
select.form-control option {
    background-color: var(--kitchen-steel);
    color: var(--text-dark);
}

select.form-control:focus option:checked {
    background-color: var(--kitchen-highlight);
    color: var(--text-light);
}

select.form-control option:hover,
select.form-control option:focus {
    background-color: var(--kitchen-blue);
    color: var(--text-light);
}

/* Add a down arrow icon to select elements */
select.form-control {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23777'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3Cpath d='M0 0h24v24H0z' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem top 50%;
    background-size: 1.5rem 1.5rem;
    padding-right: 2.5rem;
}

/* Adjustments for IE */
select.form-control::-ms-expand {
    display: none;
}

/* Print Optimization */
@media print {
    .no-print {
        display: none !important;
    }

    .container {
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        box-shadow: none;
    }

    body {
        font-size: 12pt;
        color: #000;
        background: #fff;
    }
}

/* Mobile First Approach */
@media (max-width: 576px) {
    .container {
        padding: 0.5rem;
    }

    .btn-group {
        flex-direction: column !important;
    }

    .btn {
        width: 100%;
        margin: 0.25rem 0 !important;
    }

    .navbar-brand img {
        height: 25px;
    }

    .table-responsive {
        margin: 0 -0.5rem;
    }
}

/* Tablet */
@media (min-width: 577px) and (max-width: 991px) {
    .container {
        padding: 1rem;
    }

    .btn-group {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .btn {
        flex: 1 1 calc(50% - 0.5rem);
    }
}

/* Desktop */
@media (min-width: 992px) {
    .container {
        padding: 2rem;
    }

    .btn-group {
        flex-wrap: nowrap;
    }
}

/* Common responsive elements */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.img-fluid {
    max-width: 100%;
    height: auto;
}

.flex-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Manage Ingredients Form Styling */
.add-ingredient-form,
.create-dish-form {
    background-color: var(--kitchen-dark);
    padding: 20px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.ingredient-form .form-group,
.create-dish-form .form-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.ingredient-form .form-group input,
.ingredient-form .form-group select {
    min-width: 200px;
}

/* Voeg deze nieuwe styling toe */
.ingredient-form .form-group select[name="leverancier"] {
    max-width: 300px;
    flex: 0 0 300px;
}

.ingredient-form select[name="leverancier"] {
    max-width: none;
}

.ingredient-form input[type="number"] {
    width: 100%;
    min-width: 100px;
}

.ingredient-form .btn-action {
    align-self: flex-end;
    margin-bottom: 1.25rem;
    /* Align with inputs considering their labels */
    white-space: nowrap;
}

@media (max-width: 768px) {
    .ingredient-form {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .ingredient-form .btn-action {
        margin-top: 1rem;
        margin-bottom: 0;
        width: 100%;
    }

    .ingredient-form input[type="number"] {
        min-width: 0;
    }
}

.search-filter {
    background-color: var(--kitchen-dark);
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
}

.search-filter input,
.search-filter select {
    max-width: 300px;
    display: inline-block;
    flex: 1;
}

/* CSV Import Section */
.csv-import {
    background-color: var(--kitchen-dark);
    padding: 20px;
    border-radius: 4px;
    margin-top: 20px;
}

/* Form Labels */
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

/* Textarea specific styling */
textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

/* Navigation buttons */
.navigation-buttons {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

/* All Dishes Page Styles */
.search-filter {
    background-color: var(--kitchen-dark);
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.search-filter input,
.search-filter select {
    background-color: var(--kitchen-black);
    color: var(--text-light);
    border: 1px solid var(--kitchen-steel);
    padding: 8px;
    max-width: 300px;
    display: inline-block;
}

.search-filter input {
    max-width: 300px;
}

.search-filter select {
    max-width: 200px;
}

.dish-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    background-color: var(--kitchen-dark);
}

.dish-table th {
    background-color: var(--kitchen-blue);
    padding: 12px;
    text-align: left;
}

.dish-table td {
    padding: 10px;
    border: 1px solid #586e75;
}

.col-price {
    text-align: right;
    width: 100px;
}

.col-actions {
    width: 150px;
    text-align: center;
}

@media (max-width: 768px) {
    .search-filter input,
    .search-filter select {
        width: 100%;
        margin: 5px 0;
        display: block;
    }

    .col-actions {
        width: auto;
    }

    .btn-action {
        padding: 8px;
        margin: 2px;
    }
}

/* Styles for the menu export table */
.menu-export-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    background-color: var(--kitchen-dark);
    color: var(--text-light);
}

.menu-export-table th,
.menu-export-table td {
    padding: 10px;
    text-align: left;
    border: 1px solid #586e75;
}

.menu-export-table th {
    background-color: var(--kitchen-blue);
}

.menu-export-table td input[type="checkbox"] {
    margin: 0;
}

/* Manage Suppliers Page Styles */
.suppliers-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    background-color: var(--kitchen-dark);
}

.suppliers-table th {
    background-color: var(--kitchen-blue);
    color: var(--text-light);
    padding: 12px;
    text-align: left;
}

.suppliers-table td {
    padding: 10px;
    border: 1px solid var(--kitchen-steel);
}

.supplier-form {
    max-width: 800px;
    margin-bottom: 2rem;
}

.supplier-form .form-label {
    color: var(--text-light);
    margin-bottom: 0.5rem;
    display: block;
}

.supplier-form .form-control {
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .suppliers-table {
        font-size: 0.9rem;
    }

    .suppliers-table th,
    .suppliers-table td {
        padding: 8px;
    }

    .supplier-form {
        padding: 0 1rem;
    }
}

/* Dashboard Grid Layout */
.dashboard-grid {
    display: grid !important; /* Use grid layout */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important; /* Responsive columns */
    gap: 1.5rem !important;
    width: 100% !important;
    margin: 1rem 0 !important;
    justify-content: stretch !important; /* Stretch items to fill space */
}

.dashboard-btn,
.dashboard-btn-wrapper {
    width: 100%;
    height: 100%;
}

.dashboard-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 1.5rem !important;
    background-color: var(--kitchen-blue) !important;
    color: var(--text-light) !important;
    border: 1px solid var(--kitchen-steel) !important;
    border-radius: 4px !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    text-align: center !important;
    font-size: 1rem !important;
    min-height: 80px !important;
    box-sizing: border-box !important; /* Ensure padding is included in the size */
}

.dashboard-btn:hover {
    background-color: var(--kitchen-highlight) !important;
    color: var(--text-light) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
}

.dashboard-btn i {
    margin-right: 0.5rem !important;
    font-size: 1.2em !important;
}

.dashboard-btn-wrapper {
    margin: 0;
    border: 1px solid var(--text-light);
    border-radius: 4px;
}

.dashboard-btn-wrapper button {
    width: 100%;
    height: 100%;
    border: none;
    cursor: pointer;
    border-radius: 3px;
    /* Slightly smaller than wrapper to prevent edge issues */
}

@media (max-width: 768px) {
    .dashboard-grid {
        display: flex !important; /* Use flexbox */
        flex-direction: column !important; /* Stack items vertically */
        gap: 0.5rem !important;
    }

    .dashboard-btn {
        padding: 1rem !important;
        min-height: 60px !important;
    }
}

/* Dashboard Enhancements */
.dashboard-title {
    color: var(--text-light);
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--kitchen-highlight);
    padding-bottom: 0.5rem;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    padding: 1rem 0;
}

.dashboard-btn {
    background: linear-gradient(145deg, var(--kitchen-blue), var(--kitchen-dark));
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 2rem 1.5rem;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dashboard-btn i {
    font-size: 1.8em;
    margin-bottom: 0.5rem;
}

.dashboard-btn:hover {
    transform: translateY(-3px);
    background: linear-gradient(145deg, var(--kitchen-highlight), var (--kitchen-blue));
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.dashboard-btn-wrapper {
    border: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .dashboard-title {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .dashboard-btn {
        min-height: 100px;
        padding: 1.5rem 1rem;
    }
}

.verkoopprijs-input {
    width: auto; /* Adjusted width */
    padding: 0.5rem;
    border: 1px solid var(--kitchen-steel);
    border-radius: 4px;
    background-color: var(--kitchen-dark);
    color: var(--text-light);
}

.hidden {
    display: none;
}

/* Style for the export dishes form */
.export-dishes-form {
    background-color: var(--kitchen-dark);
    padding: 20px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.export-dishes-form table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    color: var(--text-light);
}

.export-dishes-form th,
.export-dishes-form td {
    padding: 10px;
    text-align: left;
    border: 1px solid #586e75;
}

.export-dishes-form th {
    background-color: var(--kitchen-blue);
}

.export-dishes-form td input[type="checkbox"] {
    margin: 0;
}

/* Manage Dishes Form Styling */
.create-dish-form {
    background-color: var(--kitchen-dark);
    padding: 20px;
    border-radius: 4px;
    margin-bottom: 20px;
    max-width: 800px; /* Limit form width for better readability */
    margin-left: auto;
    margin-right: auto;
}

.create-dish-form .form-group {
    margin-bottom: 1.5rem;
}

.create-dish-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

.create-dish-form input[type="text"],
.create-dish-form textarea,
.create-dish-form select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--kitchen-steel);
    border-radius: 4px;
    background-color: var(--kitchen-steel);
    color: var(--kitchen-black);
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.create-dish-form input[type="text"]:focus,
.create-dish-form textarea:focus,
.create-dish-form select:focus {
    border-color: var(--kitchen-highlight);
    outline: none;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.5);
}

.create-dish-form textarea {
    min-height: 120px;
    resize: vertical;
}

/* Style the select dropdown arrow */
.create-dish-form select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;charset=UTF-8,<svg viewBox="0 0 24 24" fill="%233498db" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/><path d="M0 0h24v24H0z" fill="none"/></svg>');
    background-repeat: no-repeat;
    background-position: right 0.75rem top 50%;
    background-size: 1.5rem 1.5rem;
    padding-right: 2.5rem;
}

/* Adjustments for IE */
.create-dish-form select::-ms-expand {
    display: none;
}

/* Dieet selector styling */
.dieet-selector {
    padding: 1rem;
}

.dieet-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.dieet-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.25rem;
    border-radius: 2rem;
    background-color: var(--kitchen-dark);
    border: 2px solid var(--kitchen-steel);
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    margin: 0.25rem;
    user-select: none;
}

.dieet-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    border-color: var(--kitchen-highlight);
}

.dieet-tag.active {
    background-color: var(--kitchen-highlight);
    border-color: var(--kitchen-highlight);
    color: white;
    transform: scale(1.02);
}

.dieet-tag.active:hover {
    background-color: var(--kitchen-highlight);
    opacity: 0.9;
}

.dieet-tag .dieet-icon {
    margin-right: 0.75rem;
    font-size: 1.2em;
}

.dieet-tag .dieet-naam {
    font-size: 0.95em;
    font-weight: 500;
}

/* Voeg focus styles toe voor toegankelijkheid */
.dieet-tag:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--kitchen-highlight);
}

.diet-overview,
.allergen-overview {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.diet-badge,
.allergen-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background-color: var(--kitchen-dark);
    border-radius: 2rem;
    color: var(--text-light);
}

.diet-badge {
    border: 2px solid var(--kitchen-highlight);
    background-color: var(--kitchen-highlight);
}

.allergen-badge {
    border: 2px solid var(--kitchen-warning);
    background-color: var(--kitchen-warning);
}

.diet-icon,
.allergen-icon {
    margin-right: 0.5rem;
    font-size: 1.1em;
}

.diet-name,
.allergen-name {
    font-size: 0.9em;
    font-weight: 500;
}

/* Improved Alert Styling */
.alert {
    padding: 12px 16px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 4px;
    font-weight: 500;
    position: relative;
    display: block; /* Changed from flex to block */
}

/* Icon styling for alerts */
.alert i:first-child {
    margin-right: 10px;
    font-size: 1.2em;
    float: left; /* Float the icon to allow text to wrap */
}

/* Alert content wrapper for better structure */
.alert-content {
    margin-left: 28px; /* Space for the icon */
}

/* Make sure headings in alerts are properly displayed */
.alert h4, .alert h5 {
    margin-top: 0;
    margin-bottom: 8px;
    font-weight: 600;
    line-height: 1.2;
}

/* Alert color schemes with improved contrast */
.alert-success {
    color: #f0fff0;
    background-color: #285b2a;
    border-color: #2d662f;
}

.alert-danger {
    color: #ffe0e0;
    background-color: #7c2929;
    border-color: #8f2e2e;
}

.alert-warning {
    color: #fff8e6;
    background-color: #7d5a1c;
    border-color: #8f6824;
}

.alert-info {
    color: #e6f5ff;
    background-color: #235a82;
    border-color: #276890;
}

/* Container for all alerts */
.alert-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 100%;
}

/* Animation for alerts */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.alert {
    animation: fadeIn 0.3s ease-out forwards;
}

/* Dismiss button styling */
.alert .close {
    position: absolute;
    right: 10px;
    top: 10px;
    color: inherit;
    opacity: 0.7;
    cursor: pointer;
    background: none;
    border: none;
    font-size: 1.2em;
    padding: 0;
    line-height: 1;
}

.alert .close:hover {
    opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .alert {
        padding: 10px 14px;
        font-size: 0.95em;
    }
    
    .alert-content {
        margin-left: 24px; /* Slightly smaller margin on mobile */
    }
}

/* CKEditor Styling Improvements */
.ck.ck-content,
.ck-editor__editable,
.ck-rounded-corners,
.ck-editor__editable_inline,
.ck-blurred {
    /* Ensure good text contrast */
    background-color: var(--kitchen-steel) !important;
    color: var(--kitchen-black) !important;
    border: 1px solid var(--kitchen-blue) !important;
    padding: 1rem !important;
    border-radius: var(--radius-md) !important;
    min-height: 120px !important;
    transition: all var(--transition-fast);
}

/* When editor is focused */
.ck.ck-content.ck-focused,
.ck-editor__editable.ck-focused,
.ck-editor__editable_inline.ck-focused {
    background-color: #fff !important;
    border-color: var(--kitchen-highlight) !important;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.25) !important;
    outline: none !important;
}

/* Toolbar styling */
.ck.ck-toolbar {
    background-color: var(--kitchen-dark) !important;
    border: 1px solid var(--border-color) !important;
    border-bottom: none !important;
    border-radius: var(--radius-md) var(--radius-md) 0 0 !important;
}

.ck.ck-toolbar .ck-button {
    color: var(--text-light) !important;
    transition: all var(--transition-fast);
}

.ck.ck-toolbar .ck-button:hover {
    background-color: var(--kitchen-highlight) !important;
}

/* For focused buttons in the toolbar */
.ck.ck-toolbar .ck-button.ck-on {
    background-color: var(--kitchen-highlight) !important;
    color: white !important;
}

/* Links inside editor */
.ck.ck-content a {
    color: var(--kitchen-highlight) !important;
    text-decoration: underline !important;
}

/* Better typography inside the editor */
.ck-content p,
.ck-content h1,
.ck-content h2,
.ck-content h3,
.ck-content h4,
.ck-content h5 {
    color: var(--kitchen-black) !important;
}

/* For mobile views */
@media (max-width: 768px) {
    .ck.ck-toolbar {
        flex-wrap: wrap !important;
    }
    
    .ck.ck-content,
    .ck-editor__editable,
    .ck-rounded-corners,
    .ck-editor__editable_inline,
    .ck-blurred {
        padding: 0.75rem !important;
    }
}

/* Improved Allergen & Diet Checkbox Styling */
.allergen-checkbox-group,
.diet-checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
    padding: 1rem;
    background-color: rgba(30, 42, 56, 0.5);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

/* Simple, large checkbox styling */
.allergen-checkbox-item,
.diet-checkbox-item {
    background-color: rgba(18, 24, 32, 0.7);
    padding: 0;
    border-radius: var(--radius-sm);
    transition: background-color 0.2s ease;
}

.allergen-checkbox-item:hover,
.diet-checkbox-item:hover {
    background-color: rgba(52, 152, 219, 0.15);
}

/* Make labels large and fully clickable */
.allergen-checkbox-item label,
.diet-checkbox-item label {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    width: 100%;
    cursor: pointer;
    user-select: none;
}

/* Large native checkbox styling */
.allergen-checkbox-item input[type="checkbox"],
.diet-checkbox-item input[type="checkbox"] {
    width: 24px;
    height: 24px;
    margin-right: 12px;
    flex-shrink: 0;
    cursor: pointer;
}

/* Custom styling for checkboxes */
.allergen-checkbox-item input[type="checkbox"] {
    accent-color: var(--kitchen-warning);
}

.diet-checkbox-item input[type="checkbox"] {
    accent-color: var(--kitchen-success);
}

/* Icon and text container */
.allergen-checkbox-info,
.diet-checkbox-info {
    display: flex;
    align-items: center;
    flex-grow: 1;
}

.allergen-checkbox-info .allergen-icon,
.diet-checkbox-info .diet-icon {
    width: 1.8em;
    height: 1.8em;
    font-size: 0.7em;
    margin-right: 8px;
}

/* Make the actual name look clickable with underline */
.allergen-checkbox-info span:last-child,
.diet-checkbox-info span:last-child {
    text-decoration: underline;
    color: var(--text-light);
    transition: color 0.2s ease;
}

/* Hover effect for the clickable name */
.allergen-checkbox-item:hover .allergen-checkbox-info span:last-child,
.diet-checkbox-item:hover .diet-checkbox-info span:last-child {
    color: var(--kitchen-highlight);
}

/* Active checkboxes should have more prominent name styling */
.allergen-checkbox-item input[type="checkbox"]:checked + label .allergen-checkbox-info span:last-child {
    color: var(--kitchen-warning);
    font-weight: 500;
}

.diet-checkbox-item input[type="checkbox"]:checked + label .diet-checkbox-info span:last-child {
    color: var(--kitchen-success);
    font-weight: 500;
}

/* Section titles */
.allergen-section-title,
.diet-section-title {
    margin-top: 2rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    color: var(--text-light);
}

.allergen-section-title i,
.diet-section-title i {
    margin-right: 0.75rem;
    color: var(--kitchen-highlight);
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .allergen-checkbox-group,
    .diet-checkbox-group {
        grid-template-columns: 1fr;
        padding: 0.75rem;
    }
    
    /* Larger touch targets on mobile */
    .allergen-checkbox-item label,
    .diet-checkbox-item label {
        padding: 14px;
    }
    
    .allergen-checkbox-item input[type="checkbox"],
    .diet-checkbox-item input[type="checkbox"] {
        width: 28px;
        height: 28px;
    }
}

/* Enhanced Form Check Styling */
.form-check {
    position: relative;
    display: block;
    margin: 0.75rem 0;
    min-height: 28px;
    padding-left: 0; /* Remove default padding */
}

.form-check-input {
    width: 24px;
    height: 24px;
    margin-right: 12px;
    cursor: pointer;
    vertical-align: middle;
    position: relative;
    top: -1px;
    /* Remove default accent-color to use our custom styling */
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    background-color: var(--kitchen-dark);
}

/* Custom checkbox styling for different types when checked */
.form-check-input:checked {
    background-color: var(--kitchen-highlight);
    border-color: var(--kitchen-highlight);
    /* Add checkmark */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23ffffff'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E");
    background-size: 75%;
    background-position: center;
    background-repeat: no-repeat;
}

/* Style allergen checkboxes */
.form-check-input.allergen-checkbox:checked {
    background-color: var(--kitchen-warning);
    border-color: var(--kitchen-warning);
}

/* Style diet checkboxes */
.form-check-input.diet-checkbox:checked {
    background-color: var(--kitchen-success);
    border-color: var(--kitchen-success);
}

/* Label styling */
.form-check-label {
    position: relative;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    color: var(--text-light);
    font-weight: normal;
    user-select: none;
    transition: color var(--transition-fast);
}

/* Focus state */
.form-check-input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.4);
    border-radius: 3px;
}

/* Hover state */
.form-check-label:hover {
    color: var(--kitchen-highlight);
}

/* Checked state styling with improved visibility */
.form-check-input:checked + .form-check-label {
    color: var(--kitchen-highlight);
    font-weight: 500;
}

.form-check-input.allergen-checkbox:checked + .form-check-label {
    color: var(--kitchen-warning);
}

.form-check-input.diet-checkbox:checked + .form-check-label {
    color: var(--kitchen-success);
}

/* Inline variant */
.form-check-inline {
    display: inline-flex;
    align-items: center;
    padding-right: 1rem;
    margin-right: 1rem;
    margin-top: 0;
    margin-bottom: 0;
}

/* Text wrapping */
.form-check-label span {
    display: inline;
    vertical-align: middle;
}

/* Disabled state */
.form-check-input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    border-color: var(--text-muted);
}

.form-check-input:disabled + .form-check-label {
    opacity: 0.5;
    cursor: not-allowed;
    color: var(--text-muted);
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .form-check {
        margin: 0.5rem 0;
    }
    
    .form-check-input {
        width: 28px;
        height: 28px;
    }
}
