* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
    color: #2c3e50;
    padding: 15px;
    height: 100vh;
    overflow: hidden;
}

.container {
    max-width: 1920px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    flex-direction: column;
}

h1 {
    text-align: center;
    font-size: 47px;
    margin-bottom: 15px;
    color: #2c3e50;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    flex-shrink: 0;
}

.columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    align-items: start;
    flex: 1;
    overflow: hidden;
}

.column {
    background: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    height: 100%;
    overflow-y: auto;
}

.column::-webkit-scrollbar {
    width: 8px;
}

.column::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.column::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.column::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.category-section {
    margin-bottom: 20px;
}

.category-section:last-child {
    margin-bottom: 0;
}

.category-title {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 26px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 12px;
    padding: 10px 12px;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.15) 0%, rgba(52, 152, 219, 0.08) 100%);
    border-left: 4px solid #3498db;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.menu-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 6px 0;
    border-bottom: 1px solid #ecf0f1;
    line-height: 1.4;
}

.menu-item:last-child {
    border-bottom: none;
}

.item-name-qty {
    font-size: 21px;
    color: #2c3e50;
    flex: 1;
    padding-right: 10px;
}

.item-quantity {
    color: #7f8c8d;
    font-weight: 500;
}

.item-price {
    font-size: 21px;
    font-weight: 600;
    color: #e74c3c;
    white-space: nowrap;
}

.last-updated {
    text-align: center;
    margin-top: 10px;
    color: #7f8c8d;
    font-size: 14px;
    flex-shrink: 0;
}

body.tiles-layout {
    padding: 4px;
}

.tiles-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 5px;
    height: calc(100vh - 8px);
    overflow: hidden;
    grid-auto-rows: min-content;
    grid-auto-flow: dense;
    align-content: start;
}

.category-tile {
    background: white;
    border-radius: 5px;
    padding: 7px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    min-height: fit-content;
    height: fit-content;
}

.category-tile.highlighted {
    background: linear-gradient(135deg, #fff9e6 0%, #ffe6b3 100%);
    border: 3px solid #f39c12;
    box-shadow: 0 4px 8px rgba(243, 156, 18, 0.3);
}

.category-tile.highlighted .tile-category-title {
    color: #d68910;
    background: linear-gradient(135deg, rgba(243, 156, 18, 0.25) 0%, rgba(243, 156, 18, 0.15) 100%);
    border-left-color: #f39c12;
}

.tile-category-title {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 27px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 7px;
    padding: 8px 10px;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.15) 0%, rgba(52, 152, 219, 0.08) 100%);
    border-left: 4px solid #3498db;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tile-items {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.tile-menu-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 3px 0;
    line-height: 1.25;
}

.tile-item-name-qty {
    font-size: 26px;
    color: #000000;
    flex: 1;
    padding-right: 8px;
}

.tile-item-quantity {
    color: #7f8c8d;
    font-weight: 500;
    font-size: 23px;
}

.tile-item-price {
    font-size: 26px;
    font-weight: 600;
    color: #e74c3c;
    white-space: nowrap;
}

/* 4-Column Layout */
body.four-column-layout {
    padding: 4px;
}

.four-column-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
    height: calc(100vh - 8px);
    overflow: hidden;
}

.menu-column {
    display: flex;
    flex-direction: column;
    gap: 5px;
    overflow: hidden;
}

/* Single Column Layout */
body.single-column-layout {
    padding: 25px;
    overflow: visible;
}

.single-column-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 100%;
}
