/* ===== Custom Fonts ===== */
@font-face {
    font-family: 'Cedora';
    src: url('Fonts/Cedora-BoldItalicStd.woff2') format('woff2');
    font-weight: bold;
    font-style: italic;
}
@font-face {
    font-family: 'Cedora';
    src: url('Fonts/Cedora-BoldStd.woff2') format('woff2');
    font-weight: bold;
    font-style: normal;
}
@font-face {
    font-family: 'Cedora';
    src: url('Fonts/Cedora-RegularItalicStd.woff2') format('woff2');
    font-weight: normal;
    font-style: italic;
}
@font-face {
    font-family: 'Cedora';
    src: url('Fonts/Cedora-RegularStd.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'Colmeak';
    src: url('Fonts/Colmeak.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

/* ===== Base Styles ===== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ===== Main Content ===== */
main {
    flex: 1;
    padding: 100px 20px;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

h2 {
    text-align: center;
    color: #fff;
    margin-bottom: 25px;
    font-size: 2rem;
}

.message {
    padding: 15px 20px;
    border-radius: 15px;
    text-align: center;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
    font-weight: 500;
}

.success { 
    background: rgba(76, 175, 80, 0.3);
    color: #fff;
    border: 2px solid rgba(76, 175, 80, 0.6);
}

.error { 
    background: rgba(244, 67, 54, 0.3);
    color: #fff;
    border: 2px solid rgba(244, 67, 54, 0.6);
}

.toggle-form-btn {
    display: block;
    margin: 0 auto 30px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    padding: 12px 30px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    backdrop-filter: blur(10px);
    transition: all 0.3s;
}

.toggle-form-btn:hover {
    background: rgba(255, 0, 127, 0.4);
    border-color: #FF007F;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.add-item-section {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 40px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    margin-bottom: 40px;
}

.add-item-section h3 {
    color: #fff;
    margin-bottom: 25px;
    text-align: center;
    font-size: 1.5rem;
}

.add-item-form .form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #fff;
}

input[type="text"], 
input[type="number"], 
select, 
textarea {
    width: 100%;
    padding: 12px 15px;
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-family: 'Cedora';
    font-size: 14px;
    backdrop-filter: blur(5px);
    transition: all 0.3s;
}

input[type="text"]::placeholder,
textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

input[type="text"]:focus, 
input[type="number"]:focus, 
select:focus, 
textarea:focus {
    outline: none;
    border-color: #FF007F;
    background: rgba(255, 255, 255, 0.25);
}

select option {
    background: #0D4FD5;
    color: #fff;
}

textarea {
    resize: vertical;
    min-height: 80px;
}

/*.image-upload-area {
    border: 2px dashed rgba(255, 255, 255, 0.4);
    border-radius: 15px;
    text-align: center;
    padding: 25px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
}

.image-upload-area:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #FF007F;
}

.image-upload-area p {
    color: #fff;
    margin: 5px 0;
}

.image-preview {
    margin-top: 15px;
}

.image-preview img {
    max-width: 100%;
    max-height: 200px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}
*/

.submit-btn {
    display: inline-block;
    background: rgba(255, 0, 127, 0.3);
    color: white;
    border: 2px solid #FF007F;
    border-radius: 15px;
    padding: 12px 35px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    backdrop-filter: blur(10px);
    transition: all 0.3s;
    margin-top: 10px;
}

.submit-btn:hover {
    background: rgba(255, 0, 127, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.food-items-container {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    justify-content: center;
}

.food-item-card {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    width: 240px;
    text-align: center;
    padding: 20px;
    backdrop-filter: blur(10px);
    transition: all 0.3s;
}

.food-item-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.food-item-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 12px;
}

.food-item-card h3 {
    color: #fff;
    margin: 10px 0;
    font-size: 1.2rem;
}

.item-type { 
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.item-description {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    margin: 8px 0;
    line-height: 1.4;
}

.item-location { 
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    margin-top: 8px;
}

.item-count { 
    font-weight: bold;
    color: #FF007F;
    margin-top: 8px;
    font-size: 1rem;
}

.empty-message {
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    padding: 40px;
}

/* ===== Footer ===== */
footer {
    text-align: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
    color: rgba(255, 255, 255, 0.9);
}


    h1,h2,h3,h4,h5,h6 {
        font-family: 'colmeak';
    }
.filter-section {
    /* Overlay style: no background, sits on top of page content. */
    background: transparent;
    top: 20px;
    right: 20px;
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: 0;
    z-index: 60;
    box-shadow: none;
}

/* Ensure the main container is the positioning context for the overlay */
main { position: relative; }

/* Smooth transitions when changing layout */
.filter-section {
    transition: all 220ms ease-in-out;
}

/* Responsive: on small screens make filter flow with content (no absolute positioning) */
@media (max-width: 768px) {
    .filter-section {
        position: static;
        top: auto;
        right: auto;
        margin: 0 0 16px 0;
        padding: 12px;
        background: transparent; /* keep transparent, or use a subtle backdrop if needed */
        z-index: auto;
        width: auto;
        display: block;
    }

    /* ensure main isn't forcing a local stacking context that hides the filter */
    main { position: static; }
}

/* Medium screens: slightly smaller overlay and reposition if needed */
@media (min-width: 769px) and (max-width: 1024px) {
    .filter-section {
        top: 16px;
        right: 16px;
        padding: 8px 12px;
    }
}

.filter-form {
    display: flex;
    align-items: center;
    gap: 15px;
}

.filter-form label {
    font-weight: bold;
    color: #2c3e50;
}

.filter-form select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    min-width: 200px;
}

.clear-filter {
    color: #dc3545;
    text-decoration: none;
    font-size: 14px;
    padding: 6px 12px;
    border: 1px solid #dc3545;
    border-radius: 4px;
    transition: all 0.3s;
}

.clear-filter:hover {
    background-color: #dc3545;
    color: white;
}