﻿/* Results section styling */
@import url(//fonts.googleapis.com/css?family=Raleway);
body {
    font-family: 'Raleway', sans-serif;
}
    .results {
    margin-top: 20px;
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

    .results:focus {
        outline: 2px solid #195090;
        background-color: #f8f9fa;
    }

    .results .alert-info {
        background-color: #e8f4f8;
        border-color: #bee5eb;
        color: #0c5460;
    }

    .results .alert-heading {
        font-size: 1.2rem;
        margin-bottom: 0.75rem;
    }
/* Navbar styling */
.navbar {
    background-color: #195090 !important;
    padding-left: 0;
    padding-right: 0;
}

.inner-banner-2 {
    color: white;
}

.container-fluid {
    padding-left: 15px;
    padding-right: 15px;
}

.navbar-brand {
    font-weight: bold;
}

.navbar-nav .nav-link {
    color: white !important;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

    .navbar-nav .nav-link:hover {
        color: #e9b900 !important;
    }

.dropdown-menu {
    border: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.dropdown-item {
    color: #333;
    padding: 0.5rem 1.5rem;
}

    .dropdown-item:hover {
        background-color: #e9ecef;
    }

.navbar-nav .nav-item.active .nav-link {
    background-color: #007bff;
    color: white !important;
}

    .navbar-nav .nav-item.active .nav-link:hover {
        background-color: #0056b3;
        color: #e9b900 !important;
    }

.navbar-toggler {
    color: #e9b900 !important;
    border-color: #e9b900 !important;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(233, 185, 0, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* Category button styling */
.category-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.category-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    color: #195090;
    text-decoration: none;
    width: 200px;
    height: auto;
    justify-content: center;
    margin-bottom: 10px;
    cursor: pointer; /* Make sure cursor is pointer */
    pointer-events: auto !important; /* Force pointer events to be enabled */
}

    .category-btn:hover {
        background-color: #e9ecef;
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    }

    .category-btn.active {
        background-color: #195090;
        color: white;
        border: 2px solid #e9b900;
    }

.category-img {
    width: 80px;
    height: auto;
    margin-bottom: 8px;
    transition: transform 0.3s ease;
}

.category-btn:hover .category-img {
    transform: scale(1.1);
}

.category-btn.active .category-img {
    filter: brightness(1.2) drop-shadow(0 0 5px rgba(255, 255, 255, 0.7));
}

.category-name {
    font-size: 14px;
    text-align: center;
    word-wrap: break-word;
    font-weight: 500;
}

.selected-category-header {
    background-color: #f8f9fa;
    padding: 10px 15px;
    border-radius: 5px;
    border-left: 4px solid #195090;
    margin-bottom: 15px;
}

    .selected-category-header h4 {
        margin: 0;
        color: #195090;
        font-weight: 500;
    }

/* Main container styling */
.main-container {
    max-width: 85%;
    margin: 0 auto;
    padding: 20px;
}

/* Form styling */
.form-group {
    margin-bottom: 20px;
}

.table-container {
    max-width: 600px;
}

.table {
    width: 100%;
    margin-bottom: 1rem;
    border-collapse: collapse;
}

    .table th, .table td {
        padding: 0.5rem; /* Tighter spacing in tables */
        vertical-align: middle;
        border: 1px solid #dee2e6;
    }

    .table th {
        background-color: #f8f9fa;
        font-weight: bold;
    }

.btn-link {
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
}

.fa-trash-alt {
    font-size: 1.1rem;
}

.control-group {
    margin-bottom: 15px;
}

.h3-style {
    font-size: 1.17em;
    font-weight: bold;
    margin: 0 0 10px 0;
    display: block;
}

/* Input and button styling */
.input-group {
    margin-bottom: 8px;
    max-width: 600px;
    display: flex;
    align-items: center;
}

.ingredient-input {
    padding: 8px;
    border: 1px solid #ced4da;
    border-radius: 4px 0 0 4px;
    width: 70%;
    height: 38px;
}

    .ingredient-input:disabled {
        background-color: #f5f5f5;
        cursor: not-allowed;
        color: #888;
    }

    .ingredient-input.invalid {
        border-color: #dc3545;
        background-color: #fdf6f6;
    }

.add-btn {
    background-color: #195090;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    height: 38px;
}

.add-btn {
    background-color: #195090;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    align-self: stretch;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 70px;
}

    .add-btn:hover {
        background-color: #003d7a;
    }

.ingredient-help {
    margin-bottom: 10px;
    color: #6c757d;
}

.add-btn {
    background-color: #195090;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

    .add-btn:hover {
        background-color: #003d7a;
    }

/* Error Message styling */
.error-message {
    display: block;
    margin-top: 10px;
    transition: opacity 0.3s ease;
}

    .error-message .alert {
        margin-bottom: 0.5rem;
        padding: 0.5rem; /* Tighter spacing in messages */
    }

        .error-message .alert:last-child {
            margin-bottom: 0;
        }

    .error-message .alert-danger {
        background-color: #f8d7da;
        border-color: #f5c6cb;
        color: #721c24;
    }

    .error-message .alert-warning {
        background-color: #fff3cd;
        border-color: #ffeeba;
        color: #856404;
    }

    .error-message .alert-success {
        background-color: #d4edda;
        border-color: #c3e6cb;
        color: #155724;
    }

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }

    100% {
        opacity: 1;
    }
}

/* Table styling */
.table-sm {
    font-size: 0.85rem;
}

    .table-sm th, .table-sm td {
        padding: 0.3rem;
        vertical-align: middle;
    }

    .table-sm th {
        background-color: #f1f1f1;
    }

    .table-sm .btn-link {
        padding: 0;
    }

    .table-sm .fa-trash-alt {
        font-size: 0.9rem;
    }

/* Results section - hidden when empty */
.results:empty {
    display: none;
}

/* Pesach banner */
.pesach {
    background-color: #6eabe5;
    width: 100%;
    font-size: small;
    color: white;
    padding: 0.5rem 1rem;
    text-align: center;
}

    .pesach a {
        color: gold;
        text-decoration: none;
    }

        .pesach a:hover {
            text-decoration: underline;
        }

/* Bulk input styling */
.bulk-input-container {
    margin-bottom: 15px;
    padding: 15px;
    border: 1px solid #e9ecef;
    border-radius: 5px;
    background-color: #f8f9fa;
    display: none; /* Initially collapsed */
}

.bulk-input-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    cursor: pointer;
}

    .bulk-input-header i {
        margin-right: 5px;
        transition: transform 0.3s ease;
    }

    .bulk-input-header.collapsed i {
        transform: rotate(-90deg);
    }

/* Action buttons styling */
.action-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

/* Prevent cursor when disabled */
.category-btn.disabled {
    cursor: not-allowed;
    opacity: 0.7;
}
/* Add these styles to styles.css */

/* Contact form styling */
.modal-header {
    background-color: #195090;
    color: white;
}

.modal-title {
    font-weight: 500;
}

/* Style for "not found" ingredient links */
.alert-danger a {
    color: #721c24;
    text-decoration: underline;
    font-weight: bold;
}

    .alert-danger a:hover {
        color: #a71d2a;
    }

/* Validation styling */
.invalid-feedback {
    display: none;
    color: #dc3545;
    margin-top: 0.25rem;
}

.is-invalid {
    border-color: #dc3545;
    background-color: #fff8f8;
}

    .is-invalid:focus {
        border-color: #dc3545;
        box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25);
    }

/* Success modal styling */
#successModal .modal-header {
    background-color: #28a745;
}