body {
    font-family: Inter, Roboto, Arial, sans-serif;
    margin: 0;
    padding: 10px;
    background-color: #f5f5f5;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.category-title {
    background: linear-gradient(135deg, #2c3e50, #1a1a1a);
    color: #ffb500;
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    font-size: 1em;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s;
}

.category-title::after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5em;
    transition: transform 0.3s;
}

.category-title.active::after {
    transform: translateY(-50%) rotate(45deg);
}

.category-title:hover {
    background: linear-gradient(135deg, #34495e, #2c3e50);
}

.items-grid {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: all 0.5s ease;
    border-radius: 8px;
    background-color: #fff;
}

.items-grid.show {
    max-height: 5000px;
    opacity: 1;
    margin-top: 20px;
}

.expand-all-icon {
    background: #111111;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2em;
    transition: all 0.3s;
    height: 40px;
    width: 40px;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.expand-all-icon:hover {
    background: #111111;
    transform: scale(1.05);
}

.controls {
    background: linear-gradient(135deg, #2c3e50, #1a1a1a);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.table-responsive {
    overflow-x: auto;
    width: 100%;
}

.table-menu {
    width: 100%;
    border-collapse: collapse;
}

.table-menu tr {
    border-bottom: 1px solid #eee;
}

.table-menu tr:last-child {
    border-bottom: none;
}

.table-menu td {
    padding: 10px 5px;
    vertical-align: middle;
}

.table-menu td:first-child {
    width: 70%;
}

.table-menu td:nth-child(2) {
    width: 15%;
    text-align: center;
}

.table-menu td:nth-child(3) {
    width: 15%;
    text-align: center;
}

.table-menu td:last-child {
    width: 10%;
    color: #282828;
    text-align: center;
    font-weight: bold;
}

.table-menu-title {
    font-size: 1.05em;
    color: #282828;
    margin: 0 0 5px 0;
}

.table-menu-desc {
    color: #9e9e9e;
    font-size: 0.9em;
    margin: 0;
}

.table-menu-tag {
    display: inline-block;
    padding: 2px 6px;
    font-size: 10px;
    font-weight: bold;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
    min-width: 45px;
    text-align: center;
    margin-bottom: 5px;
}

.category-tags-badge {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #dc3545;
    border-radius: 50%;
    margin-left: 8px;
    vertical-align: middle;
    position: relative;
    top: -2px;
}

.category-tags-badge {
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.dark-theme .category-tags-badge {
    background-color: #ff6b6b;
    box-shadow: 0 0 3px rgba(255, 107, 107, 0.5);
}

.price-note {
    font-size: 0.7em;
    color: #777;
    margin-left: -4px;
}

.service-charge {
    font-size: 0.6em;
    color: #FF6B6B;
    margin-left: 5px;
    font-weight: normal;
}

.dark-theme .service-charge {
    color: #FF9E9E;
}

.theme-toggle-icon {
    background: #111111;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2em;
    transition: all 0.3s;
    height: 40px;
    width: 40px;
    margin-left: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.theme-toggle-icon:hover {
    background: #111111;
    transform: scale(1.05);
}

.view-toggle-icon {
    background: #111111;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2em;
    transition: all 0.3s;
    height: 40px;
    width: 40px;
    margin-left: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.view-toggle-icon:hover {
    background: #111111;
    transform: scale(1.05);
}

.logo {
  max-width: 212px;
  height: auto;
}

.buttons {
    margin-left: auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    font-size: 0.9em;
    color: #666;
}

.update-date {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-size: 0.9em;
    color: #666;
}

.update-label {
    font-size: 0.8em;
    color: #999;
    margin-bottom: 2px;
}

.update-time {
    font-weight: 500;
}

.price {
    font-size: 1.3em;
}

.volume-prices {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.volume-price .volume {
    font-size: 0.8em;
    font-weight: 500;
    color: #5d99d4;
}

.volume-price .price {
    font-size: 1.3em;
}

.glass-prices {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.glass-price .volume {
    font-size: 0.8em;
    font-weight: 500;
    color: #5d99d4;
}

.glass-price .price {
    font-size: 1.3em;
}

html.dark-theme,
body.dark-theme {
    background-color: #1a1a1a;
    color: #f5f5f5;
}

html.dark-theme .container,
body.dark-theme .container {
    background: #2c2c2c;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

body.dark-theme .category-title {
    background: linear-gradient(135deg, #2c3e50, #1a1a1a);
}

body.dark-theme .category-title:hover {
    background: linear-gradient(135deg, #34495e, #2c3e50);
}

body.dark-theme .table-menu tr {
    border-bottom: 1px solid #3a3a3a;
}

body.dark-theme .table-menu-title, body.dark-theme .table-menu td:last-child, body.dark-theme .update-time {
    color: #f5f5f5;
}

body.dark-theme .items-grid {
    background-color: #2c2c2c;
    border-color: #3a3a3a;
}

body.dark-theme .price-note, body.dark-theme .update-date, body.dark-theme .table-menu-desc {
    color: #aaa;
}

body.dark-theme .update-label {
    color: #777;
}

@media (max-width: 767px) {
    .category-title {
        font-size: 0.8em;
    }
    .update-date {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        font-size: 0.9em;
        color: #666;
    }

    .update-label {
        font-size: 0.8em;
        color: #999;
        margin-bottom: 2px;
    }

    .table-menu td:last-child {
        width: auto;
        padding: 5px 5px;
        font-weight: bold;
    }
    
    .table-menu td:first-child {
        width: 90%;
    }
    
    .table-menu td:nth-child(2) {
        width: 10%;
        min-width: 40px;
    }

    .table-menu td:nth-child(3) {
        width: 10%;
        min-width: 40px;
    }
    
    .table-menu td {
        padding: 10px 3px;
    }
    
    .table-menu-title {
        font-size: 0.9em;
    }
    
    .table-menu-desc {
        font-size: 0.8em;
    }
    
    .table-menu-title {
        word-break: break-word;
        hyphens: auto;
    }

    .price {
        font-size: 1em;
    }

    .volume-price .volume {
        font-size: 0.6em;
    }

    .volume-price .price {
        font-size: 1em;
    }

    .glass-price .volume {
        font-size: 0.6em;
    }

    .glass-price .price {
        font-size: 1em;
    }
}

@media (max-width: 580px) {
    .update-date {
        display: none;
    }
}

@media (max-width: 447px) {
    .logo {
        max-width: 180px;
        height: auto;
    }
}

@media (max-width: 415px) {
    .logo {
        max-width: 180px;
        height: auto;
    }

    .update-date {
        font-size: 0.75em;
    }

    .table-menu td:last-child {
        min-width: 60px;
        font-weight: bold;
    }
    
    .table-menu-title {
        font-size: 0.8em;
    }
    
    .expand-all-icon,
    .theme-toggle-icon,
    .view-toggle-icon {
        height: 30px;
        width: 30px;
        font-size: 1em;
    }

    .table-menu-desc, .update-date {
        display: none;
    }

    .category-title {
        font-size: 0.8em;
        font-weight: bold;
    }

    .volume-price .price {
        font-size: 1em;
    }
}

@media (max-width: 385px) {
    .logo {
        max-width: 90px;
        height: auto;
    }
    
    .table-menu td:last-child {
        white-space: normal;
        word-break: break-all;
    }
    
    .price-note {
        display: block;
        margin-top: 2px;
    }

    .expand-all-icon,
    .theme-toggle-icon,
    .view-toggle-icon {
        height: 24px;
        width: 24px;
        font-size: 0.8em;
    }

    .table-menu-desc, .update-date, .update-date {
        display: none;
    }

    .category-title {
        font-size: 0.6em;
        font-weight: bold;
    }
}

@media (max-width: 278px) {
    .buttons {
        display: none;
    }
}