.week-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    background: #fff;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.week-nav h2 {
    margin: 0;
    font-size: 1.2rem;
    color: #1e3a8a;
}

.btn-nav {
    background: #1e3a8a;
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 14px;
}

.btn-nav:hover {
    background: #1e40af;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 15px;
    max-width: 1700px;
    margin: 0 auto;
}

.day-card {
    background: white;
    border-radius: 12px;
    border: 1px solid #666;
    position: relative;
    min-height: 250px;
    overflow: hidden;
}

.day-header {
    background: #1e3a8a;
    color: white;
    padding: 10px;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
}

.day-name-sub {
    font-size: 11px;
    font-weight: normal;
    opacity: 0.8;
    text-transform: uppercase;
}

.admin-add-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #fbbf24;
    border: 2px solid white;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    cursor: pointer;
    font-size: 24px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.set-row {
    border-bottom: 1px solid #eee;
}

.set-main-info {
    padding: 10px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    transition: background 0.2s;
}

.set-main-info:hover {
    background: #f8fafc;
}

.tree-dishes {
    display: none;
    background: #f1f5f9;
    padding: 5px 0 5px 20px;
    border-top: 1px solid #e2e8f0;
}

.dish-item {
    padding: 4px 10px;
    border-left: 2px solid #cbd5e1;
    margin-bottom: 2px;
}

.dish-name {
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: #1e40af;
}

.tree-ingredients {
    display: none;
    font-size: 11px;
    color: #64748b;
    padding-left: 10px;
    margin-top: 2px;
}

.btn-del {
    color: #dc2626;
    cursor: pointer;
    font-size: 22px;
    font-weight: bold;
    margin-left: 10px;
}

.allergens-label {
    font-size: 10px;
    color: #64748b;
    font-style: italic;
    display: block;
    margin-top: 2px;
}

.cat-label {
    padding: 6px 10px;
    font-size: 12px;
    font-weight: bold;
    border-bottom: 1px solid #ccc;
}

#modal-overlay {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
}

.modal-box {
    background: white;
    width: 95%;
    max-width: 900px;
    margin: 20px auto;
    border-radius: 15px;
    padding: 30px;
    position: relative;
    overflow: visible;
}

.step-wrapper {
    position: relative;
    margin-bottom: 20px;
}

.q-results {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    z-index: 10000;
    background: #fff;
    border: 2px solid #2563eb;
    border-top: none;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    max-height: 300px;
    overflow-y: auto;
}

.q-results div {
    padding: 12px 15px;
    cursor: pointer;
    font-size: 16px;
    color: #2563eb;
    border-bottom: 1px solid #eee;
    font-weight: bold;
}

.q-results div:hover {
    background: #f0f7ff;
}

.q-results .new-item {
    background: #fff;
    color: #ef4444;
    border-bottom: 2px solid #2563eb;
}

input[type="text"] {
    width: 100%;
    padding: 15px;
    border: 2px solid #ccc;
    border-radius: 8px;
    font-size: 18px;
    box-sizing: border-box;
}

.cat-btn-container {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.cat-select-btn {
    flex: 1;
    padding: 12px;
    border: 2px solid #aaa;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    background: white;
}

.cat-select-btn.active {
    border: 4px solid #1e3a8a;
    background: #fefce8;
}

.chip {
    display: inline-flex;
    align-items: center;
    background: #dbeafe;
    padding: 8px 15px;
    border-radius: 20px;
    margin: 5px;
    font-size: 15px;
    color: #1e3a8a;
    border: 1px solid #bfdbfe;
    font-weight: bold;
}

.chip b {
    margin-left: 10px;
    cursor: pointer;
    color: #ef4444;
    font-size: 18px;
}

body {
    font-family: 'Segoe UI', sans-serif;
    background: #97b3db;
    margin: 0;
    padding: 20px;
}

.recipe-area {
    background: #f8fafc;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #cbd5e1;
    margin-top: 15px;
}

.alg-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    margin: 15px 0;
}

.alg-box {
    padding: 10px;
    border: 1px solid #94a3b8;
    text-align: center;
    cursor: pointer;
    border-radius: 6px;
    font-weight: bold;
    background: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: 0.2s;
}

.alg-box.active {
    background: #ef4444 !important;
    color: white !important;
    border-color: #b91c1c !important;
}

.alg-box.active .alg-num,
.alg-box.active .alg-text {
    color: white !important;
}

.alg-num {
    font-size: 16px;
}

.alg-text {
    font-size: 9px;
    text-transform: uppercase;
    font-weight: normal;
    margin-top: 2px;
}

.btn-green {
    background: #10b981;
    color: white;
    border: none;
    padding: 20px;
    border-radius: 12px;
    width: 100%;
    font-weight: bold;
    font-size: 20px;
    cursor: pointer;
    margin-top: 20px;
}

.btn-orange {
    background: #f59e0b;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 10px;
    width: 100%;
    font-weight: bold;
    font-size: 18px;
    cursor: pointer;
    margin-top: 10px;
}

.btn-purple {
    background: #a855f7;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 10px;
    width: 100%;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
}