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

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
        'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
        sans-serif;
    background: #0a0a0a;
    color: #fff;
    overflow: hidden;
    height: 100vh;
}

.nav-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    display: flex;
    gap: 2rem;
    justify-content: center;
    border-bottom: 1px solid rgba(255, 165, 0, 0.3);
}

.nav-link {
    color: #ffa500;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background: rgba(255, 165, 0, 0.1);
    color: #ffd700;
}

.container {
    display: flex;
    height: 100vh;
    padding-top: 70px;
}

/* Left Side: Menu List */
.menu-list-container {
    width: 400px;
    background: rgba(20, 20, 30, 0.95);
    border-right: 2px solid rgba(255, 165, 0, 0.2);
    overflow-y: auto;
    padding: 1.5rem;
}

.menu-header {
    margin-bottom: 1.5rem;
}

.menu-header h1 {
    color: #ffa500;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.search-box {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid rgba(255, 165, 0, 0.3);
    border-radius: 5px;
    background: rgba(10, 10, 15, 0.8);
    color: #fff;
    font-size: 1rem;
}

.search-box:focus {
    outline: none;
    border-color: #ffa500;
}

.menu-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.category-section {
    margin-bottom: 2rem;
}

.category-title {
    color: #ffa500;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 165, 0, 0.2);
}

.menu-item-card {
    background: rgba(30, 30, 45, 0.6);
    border: 2px solid rgba(255, 165, 0, 0.2);
    border-radius: 8px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.menu-item-card:hover {
    border-color: rgba(255, 165, 0, 0.6);
    transform: translateX(5px);
    background: rgba(40, 40, 55, 0.8);
}

.menu-item-card.active {
    border-color: #ffa500;
    background: rgba(255, 165, 0, 0.1);
}

.menu-item-card h3 {
    color: #ffa500;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.menu-item-card .price {
    color: #4CAF50;
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.menu-item-card .description {
    color: #ccc;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Right Side: 3D Viewer */
.viewer-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    position: relative;
}

.viewer-header {
    padding: 1rem 2rem;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 165, 0, 0.2);
}

.viewer-header h2 {
    color: #ffa500;
    font-size: 1.5rem;
}

.view-controls {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.btn-ar {
    background: #ffa500;
    color: #000;
}

.btn-ar:hover:not(:disabled) {
    background: #ffd700;
    transform: translateY(-2px);
}

.btn-ar:disabled {
    background: #666;
    color: #999;
    cursor: not-allowed;
}

.btn-reset {
    background: rgba(255, 165, 0, 0.3);
    color: #ffa500;
    border: 1px solid rgba(255, 165, 0, 0.5);
}

.btn-reset:hover {
    background: rgba(255, 165, 0, 0.5);
}

.btn-close {
    background: #f44336;
    color: #fff;
    margin-top: 1rem;
}

.btn-close:hover {
    background: #da190b;
}

#canvas {
    width: 100%;
    flex: 1;
    display: block;
}

.item-details {
    padding: 1.5rem 2rem;
    background: rgba(0, 0, 0, 0.7);
    border-top: 1px solid rgba(255, 165, 0, 0.2);
}

.item-price {
    color: #4CAF50;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.item-description {
    color: #ccc;
    font-size: 1rem;
    line-height: 1.6;
}

/* AR Modal */
.ar-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ar-content {
    text-align: center;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.ar-content h2 {
    color: #ffa500;
    margin-bottom: 1rem;
    font-size: 2rem;
}

.ar-content p {
    color: #ccc;
    margin-bottom: 2rem;
    font-size: 1.2rem;
}

#arCanvas {
    width: 100%;
    height: 100%;
    max-width: 100vw;
    max-height: 100vh;
}

.loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffa500;
    font-size: 1.2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }
    
    .menu-list-container {
        width: 100%;
        max-height: 40vh;
    }
    
    .viewer-container {
        flex: 1;
    }
}

/* Scrollbar styling */
.menu-list-container::-webkit-scrollbar {
    width: 8px;
}

.menu-list-container::-webkit-scrollbar-track {
    background: rgba(10, 10, 15, 0.5);
}

.menu-list-container::-webkit-scrollbar-thumb {
    background: rgba(255, 165, 0, 0.3);
    border-radius: 4px;
}

.menu-list-container::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 165, 0, 0.5);
}