html {
  font-size: 14px;
}

.name-list {
    display: none; /* always hidden by default */
    margin-top: 8px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

/* tablet */
@media (max-width: 992px) {
    .name-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* mobile */
@media (max-width: 600px) {
    html {
        font-size: 16px;
    }



    .name-list {
        grid-template-columns: repeat(1, 1fr);
    }
}

/* item styling */
.item {
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ddd;
    cursor: pointer;
    text-align: center;
    background: #fff;
}

    .item.active {
        background: #2d6cdf;
        color: white;
        border-color: #2d6cdf;
    }





.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}


/* MOBILE ORDER FORM */

.header {
    text-align: center;
    margin-bottom: 10px;
}

body {
    font-family: Arial, sans-serif;
    padding: 10px;
    background: #F2EDF4;
}

h1 {
    font-size: 28px;
}

h2 {
    font-size: 21px;
}

h3 {
    font-size: 18px;
    color: #C76025;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: 0.3px;
}

h4 {
    font-size: 14px;
}

.card {
    background: white;
    border: 1px solid #ddd;
    padding: 12px;
    margin-bottom: 10px;
    border-radius: 10px;
}

label {
    display: block;
    padding: 8px 0;
    font-size: 16px;
}

input[type="radio"],
input[type="checkbox"] {
    transform: scale(1.3);
    margin-right: 10px;
}

button {
    width: 100%;
    padding: 14px;
    font-size: 18px;
    border: none;
    background: #007bff;
    color: white;
    border-radius: 8px;
}

    button:active {
        background: #0056b3;
    }

table {
    border-collapse: collapse;
    width: 100%;
}

th, td {
    border: 1px solid #ddd;
    padding: 8px;
    vertical-align: top;
}

th {
    position: sticky;
    top: 0;
    background: #f5f5f5;
}

    td:first-child, th:first-child {
        position: sticky;
        left: 0;
        background: white;
    }


.cell {
    display: flex;
    align-items: center;
    gap: 6px;
}
    .cell.status {
        display: inline-block;
        text-align: center;
    }

    .cell:hover {
        background: #f6c29a;
        color: #2b2b2b;
        border-color: #e6a97a;
    }

.btn-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 8px;
}

/* MOBILE: force 2 columns */
@media (max-width: 600px) {
    .btn-group {
        grid-template-columns: repeat(2, 1fr);
    }
}

    .btn-group.wrap {
        flex-wrap: wrap;
    }

.card {
    background: white;
    border: 1px solid #e6e6e6;
    padding: 14px;
    margin-bottom: 12px;
    border-radius: 14px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.category-block {
    margin-bottom: 12px;
}

.btn {
    background: #e2e2e2;
    color: #333;
    border: 1px solid #ddd;
    padding: 14px;
    border-radius: 10px;
    margin: 4px 0;
    width: 100%;
    font-size: 16px;
}
    .btn.disabled {
        opacity: 0.5;
        pointer-events: none;
        cursor: not-allowed;
    }

    .btn:hover {
        background: #f6c29a;
        color: #2b2b2b;
        border-color: #e6a97a;
    }

    .btn.active {
        background: #B45831;
        color: white;
        border-color: #0d6efd;
    }

.btn-radio {
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 8px;
    display: flex;
    gap: 6px;
    align-items: center;
    cursor: pointer;
}

    .btn-radio input {
        display: none;
    }

.list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}


.item {
    width: 100%;
    margin: 0;
    padding: 12px;
    border: 1px solid #eee;
    border-radius: 10px;
    cursor: pointer;
    background: #fafafa;
    box-sizing: border-box;
    text-align: center;
}
    .item:hover {
        background: #A9E0FF;
        color: #2b2b2b;
        border-color: #e6a97a;
    }
    .item.active {
        background: #2d89ef;
        color: white;
        border-color: #2d89ef;
    }
.fitness-btn.active::before,
.item.active::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 14px;
    border-right: 2px solid white;
    border-bottom: 2px solid white;
    transform: rotate(45deg);
    margin-right: 6px;
}

.checkbox {
    font-size: 16px;
}

.submit-btn {
    width: 100%;
    padding: 14px;
    background: green;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
}

.active-text {
    color: #2d89ef;
    font-weight: bold;
}

.btn-radio.active {
    background: #2d89ef;
    color: white;
    border-color: #2d89ef;
}

.logo {
    display: block;
    max-width: 140px;
    height: auto;
    margin: 8px auto 20px auto;
    border-radius: 12px;
}


.app-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 10px;
    background: linear-gradient(135deg, #B45831, #f6b26b);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    border-bottom-left-radius: 14px;
    border-bottom-right-radius: 14px;
}

.app-logo {
    width: 140px;
    height: 140px;
    object-fit: contain;
    margin-top: 12px;
    margin-bottom: 12px;
    border-radius: 10px;
    background: white;
    padding: 4px;
}

.app-title {
    margin: 0;
    font-weight: 700;
    color: white;
    letter-spacing: 0.3px;
}

.day-selector {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
}

.day-btn {
    padding: 14px 12px;
    min-height: 70px; /* 🔥 bigger for mobile */
    border-radius: 12px;
    border: 1px solid #ccc;
    display: flex;
    flex-direction: column; /* 🔥 2 lines */
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 4px;
    text-decoration: none;
    color: #333;
    background: #f7f7f7;
    font-weight: bold;
}

.day-label {
    font-size: 15px;
}

.day-sub {
    font-size: 12px;
}


.day-btn.active {
    background: #4caf50;
    color: white;
}

.day-btn.disabled {
    background: #f0f0f0;
    color: #aaa;
    pointer-events: none;
}


.text-input {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #ccc;
    font-size: 16px;
    margin-top: 6px;
    box-sizing: border-box;
}

    .text-input:focus {
        outline: none;
        border-color: #B45831;
        box-shadow: 0 0 0 2px rgba(180,88,49,0.15);
    }

.hint {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #666;
}

.text-input.error {
    border-color: red;
    background: #fff5f5;
}

.error-text {
    display: block;
    color: red;
    font-size: 13px;
    margin-top: 6px;
}

.input-wrapper {
    position: relative;
}

.checkmark {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: green;
    font-size: 18px;
    display: none;
}

.text-input.valid {
    border-color: green;
    background: #f3fff3;
}

.text-input.error {
    border-color: red;
    background: #fff5f5;
}

body.modal-open {
    overflow: hidden;
}

.sandwich-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;  
    gap: 6px;
    text-align: center;
    min-height: 130px;
    font-size: 14px;
}


    .sandwich-btn span {
        line-height: 1.2;
    }

    .sandwich-btn .mark-slot {
        height: 18px;  reserves space 
        line-height: 18px;
        text-align: center;
        color: green;
        font-weight: bold;
    }

    .sandwich-btn .icon-circle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .sandwich-btn .label-slot {
        line-height: 1.2;
    }

.icon-circle {
    background: rgba(0,0,0,0.05);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 60px;
}

    /* FontAwesome */
    .icon-circle i {
        font-size: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Lucide SVG */
    .icon-circle svg {
        width: 30px;
        height: 30px;
        display: block;
    }


.meat {
    background: #fff1f0;
}

.fish {
    background: #eef6ff;
}

.cheese {
    background: #fff9e6;
}

.veggie {
    background: #eefcf2;
}

.sandwich-btn.active .normal-icon {
    display: none;
}

.check-overlay {
    display: none;
    position: absolute;
}

.sandwich-btn.active .check-overlay {
    display: block;
}


.sandwich-btn .check-icon {
    display: none;
}

.sandwich-btn.active .sandwich-icon {
    display: none;
}

.sandwich-btn.active .check-icon {
    display: block;
}

.flash {
    animation: flashAnim 1s ease;
}

@keyframes flashAnim {
    0% {
        background: #fff3cd;
    }

    50% {
        background: #d4edda;
    }

    100% {
        background: #e6f7e6;
    }
}