    /* Base styles */
    body {
        font-family: sans-serif;
        background: #f2f2f2;
        margin: 0;
        padding: 0;
        color: #333;
    }

    .create-recipe-button-container {
        text-align: center;
        margin: 20px 0;
    }

    .create-recipe-button {
        display: inline-block;
        background-color: #4CAF50;
        color: white;
        padding: 12px 25px;
        border-radius: 8px;
        text-decoration: none;
        font-weight: bold;
        transition: all 0.2s ease;
        border: none;
        cursor: pointer;
        font-size: 1em;
    }

    .create-recipe-button:hover {
        background-color: #45a049;
        transform: translateY(-1px);
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }

    .search-container {
        max-width: 900px;
        margin: 0 auto;
        padding: 0 20px;
    }

    /* Search header */
    .search-header {
        display: flex;
        gap: 10px;
        margin-bottom: 20px;
        position: relative;
    }

    .search-box {
        flex: 1;
        position: relative;
    }

    #recipe-search {
        width: 100%;
        padding: 14px 20px;
        font-size: 16px;
        border: 2px solid #e0e0e0;
        border-radius: 8px;
        background-color: #f8f8f8;
        transition: all 0.3s ease;
        box-sizing: border-box;
    }

    #recipe-search:focus {
        outline: none;
        border-color: #4CAF50;
        background-color: white;
        box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2);
    }

    /* Filter button */
    .filter-button {
        background: white;
        border: 2px solid #e0e0e0;
        border-radius: 8px;
        padding: 0 20px;
        font-weight: 600;
        color: #555;
        cursor: pointer;
        display: flex;
        align-items: center;
        gap: 8px;
        transition: all 0.2s ease;
        white-space: nowrap;
    }

    .filter-button:hover {
        border-color: #4CAF50;
        color: #4CAF50;
    }

    .filter-count {
        background: #4CAF50;
        color: white;
        border-radius: 10px;
        min-width: 20px;
        height: 20px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 12px;
        font-weight: bold;
    }

    /* Filter dropdown */
    .filter-dropdown {
        position: absolute;
        top: 100%;
        right: 0;
        width: 100%;
        max-width: 500px;
        background: white;
        border-radius: 8px;
        box-shadow: 0 4px 20px rgba(0,0,0,0.15);
        padding: 20px;
        margin-top: 10px;
        z-index: 1000;
        display: none;
        max-height: 80vh;
        overflow-y: auto;
    }

    .filter-dropdown.active {
        display: block;
        animation: fadeIn 0.2s ease;
    }

    @keyframes fadeIn {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }

    /* Filter sections */
    .filter-section {
        margin-bottom: 24px;
        padding-bottom: 20px;
        border-bottom: 1px solid #eee;
    }

    .filter-section:last-child {
        border-bottom: none;
        margin-bottom: 0;
        padding-bottom: 0;
    }

    .filter-section h3 {
        margin: 0 0 12px 0;
        font-size: 1em;
        color: #555;
        font-weight: 600;
    }

    /* Filter options */
    .filter-options {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .filter-tag {
        background: #f0f0f0;
        border: 1px solid #ddd;
        border-radius: 15px;
        padding: 6px 14px;
        font-size: 0.9em;
        cursor: pointer;
        transition: all 0.2s ease;
        user-select: none;
    }

    .filter-tag:hover {
        background: #e0e0e0;
    }

    .filter-tag.active {
        background: #4CAF50;
        color: white;
        border-color: #45a049;
    }

.desktop{
  position:relative;
  float:right;
  cursor:pointer;
}
.mobile{
  display:none;
}


    /* Ingredients input */
    .ingredients-input {
        margin-bottom: 12px;
    }

    #ingredient-input {
        width: 100%;
        padding: 8px 12px;
        border: 1px solid #ddd;
        border-radius: 4px;
        margin-bottom: 10px;
        font-size: 14px;
    }

    .ingredient-tag {
        background: #e8f5e9;
        border: 1px solid #c8e6c9;
        border-radius: 15px;
        padding: 4px 12px;
        font-size: 0.85em;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        margin: 0 6px 6px 0;
        transition: all 0.2s ease;
    }

    .ingredient-tag .remove {
        cursor: pointer;
        font-weight: bold;
        font-size: 1.1em;
        line-height: 1;
        margin-left: 4px;
    }

    /* Filter actions */
.filter-actions {
    display: flex;
    justify-content: flex-end; /* Align reset button to the right */
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

    .filter-actions button {
        padding: 8px 16px;
        border-radius: 4px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.2s ease;
        border: 1px solid transparent;
    }

.reset-btn {
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #f0f0f0;
    border: 1px solid #ddd;
    color: #666;
}

.reset-btn:hover {
    background: #e0e0e0;
}

    .apply-btn {
        background: #4CAF50;
        border-color: #45a049 !important;
        color: white;
    }


    .apply-btn:hover {
        background: #45a049;
    }

    /* Selected filters */
    .selected-filters {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin-bottom: 20px;
    }

    .selected-filter {
        background: #e8f5e9;
        border: 1px solid #c8e6c9;
        border-radius: 15px;
        padding: 4px 12px;
        font-size: 0.85em;
        display: inline-flex;
        align-items: center;
        gap: 6px;
    }

    .selected-filter .remove {
        cursor: pointer;
        font-weight: bold;
        font-size: 1.1em;
        line-height: 1;
        margin-left: 4px;
    }

    /* Search results */
    #search-results {
        background: white;
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    }

    .search-result {
        display: flex;
        align-items: center;
        cursor: pointer;
        border-bottom: 1px solid #eee;
        transition: all 0.2s ease;
        text-decoration: none;
        color: inherit;
    }

    .search-result:hover {
        background-color: #f8f8f8;
        transform: translateX(5px);
    }

    .recipe-thumb {
      flex: 0 0 40%;        /* one third of container width */
      height: 200px;
        margin-right: 20px;
        overflow: hidden;
    }

    .recipe-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.3s ease;
    }

    .search-result:hover .recipe-thumb img {
        transform: scale(1.05);
    }

    .recipe-info {
        flex: 1;
    }

    .recipe-title {
        font-weight: 600;
        font-size: 1.2em;
        color: #333;
        margin: 0 0 4px 0;
    }

    .recipe-author {
        font-size: 0.9em;
        color: #666;
        font-style: italic;
    }

    .no-results {
        padding: 30px 20px;
        text-align: center;
        color: #666;
    }
/* RECIPE DISPLAY */
.recipe-meta{margin-bottom:10px;}
.recipe-time{font-size:10px;}
    
/* Tag filter styling */
.tag{
    box-shadow: 0px 1px 4px #c6c6c6,
              0px 2px 17px #d1d1d1;
  padding:10px;
  font-size:10px;
}

#tag-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 10px;
}

.tag-filter {
    display: inline-block;
    background-color: #f0f0f0;
    color: #333;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.9em;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid #ddd;
}

.tag-filter:hover {
    background-color: #e0e0e0;
}

.tag-filter.active {
    background-color: #4CAF50;
    color: white;
    border-color: #45a049;
}

.selected-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 10px;
}

.selected-tag {
    display: inline-flex;
    align-items: center;
    background-color: #e0f7fa;
    color: #006064;
    padding: 4px 12px 4px 12px;
    border-radius: 15px;
    font-size: 0.9em;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid #b2ebf2;
}

.selected-tag:hover {
    background-color: #b2ebf2;
}

.selected-tag .remove-tag {
    margin-left: 8px;
    font-weight: bold;
    color: #006064;
}

    /* Mobile styles */
    @media (max-width: 768px) {
        .search-header {
            flex-direction: column;
        }
      
      .mobile{
        display:block;
  font-size:24px;
  font-weight:bold;
 position:relative;
text-align:center;
}
      .desktop{display:none;}

        .filter-dropdown {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            max-width: 100%;
            border-radius: 0;
            margin: 0;
            max-height: 100vh;
        }

        .filter-button {
            width: 100%;
            justify-content: center;
            padding: 10px;
        }

        .recipe-thumb {
            width: 60px;
            height: 60px;
            margin-right: 15px;
        }

        .recipe-title {
            font-size: 1em;
        }

        .recipe-author {
            font-size: 0.8em;
        }
    }

    /* Animation for filter count */
    @keyframes pop {
        0% { transform: scale(1); }
        50% { transform: scale(1.2); }
        100% { transform: scale(1); }
    }

    .filter-count.highlight {
        animation: pop 0.3s ease;
    }


/* HASHTAGS */
#hashtags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 5px;
}

.hashtag {
    background-color: #eee;
    border-radius: 3px;
    padding: 3px 6px;
    display: inline-flex;
    align-items: center;
    font-size: 0.9em;
}

.hashtag .remove-hashtag {
    margin-left: 4px;
    cursor: pointer;
    font-weight: bold;
}

.recipe-tags {
    margin-top: 4px;
    font-size: 0.85em;
    color: #666;
}

.recipe-tags .hashtag {
    display: inline-block;
    margin-right: 6px;
}

