/* ============================================
   POS SYSTEM - Layout
   Optimized for 1920×1080 POS Terminal
   ============================================ */

/* Main layout: sidebar + content */
.layout-main {
    display: flex;
    width: 100%;
    height: 100%;
}

/* Side Navigation */
.nav-sidebar {
    width: var(--nav-width);
    height: 100%;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--space-sm) 0;
    flex-shrink: 0;
}

.nav-item {
    width: 64px;
    height: 62px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    color: var(--text-muted);
    font-size: var(--text-xs);
    font-weight: 600;
    margin-bottom: var(--space-xs);
    transition: all var(--transition-fast);
    background: transparent;
    gap: 3px;
}

.nav-item:hover {
    background: var(--bg-surface-hover);
    color: var(--text-primary);
}

.nav-item.active {
    background: var(--orange);
    color: var(--text-inverse);
}

.nav-item-icon {
    font-size: var(--text-xl);
    font-weight: 700;
    line-height: 1;
}

.nav-item-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
    line-height: 1;
}

.nav-spacer {
    flex: 1;
}

.nav-divider {
    width: 40px;
    height: 1px;
    background: var(--border);
    margin: var(--space-sm) 0;
}

/* Content Area */
.content-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 0;
}

/* Top Bar */
.top-bar {
    height: var(--topbar-height);
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    padding: 0 var(--space-xl);
    flex-shrink: 0;
}

.top-bar-title {
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--text-primary);
}

.top-bar-spacer {
    flex: 1;
}

.top-bar-info {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

.top-bar-user {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.top-bar-user-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.top-bar-clock {
    font-family: var(--font-mono);
    font-size: var(--text-base);
    color: var(--text-muted);
}

.top-bar-lang {
    padding: var(--space-xs) var(--space-md);
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: var(--text-xs);
    font-weight: 600;
    cursor: pointer;
}

.top-bar-lang:hover {
    background: var(--bg-surface-hover);
    color: var(--text-primary);
}

/* Screen content */
.screen-content {
    flex: 1;
    overflow: auto;
    padding: var(--space-lg);
}

/* Split layout (for order screen) */
.layout-split {
    display: flex;
    height: 100%;
    overflow: hidden;
}

.layout-split-main {
    flex: 1;
    overflow: auto;
    min-width: 0;
}

.layout-split-sidebar {
    width: 380px;
    background: var(--bg-secondary);
    border-left: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

/* Zone tabs */
.zone-tabs {
    display: flex;
    gap: var(--space-xs);
    padding: 0 var(--space-lg);
    overflow-x: auto;
    flex-shrink: 0;
}

.zone-tab {
    padding: var(--space-sm) var(--space-lg);
    background: transparent;
    color: var(--text-muted);
    font-size: var(--text-sm);
    font-weight: 600;
    border-bottom: 3px solid transparent;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.zone-tab:hover {
    color: var(--text-primary);
}

.zone-tab.active {
    color: var(--orange);
    border-bottom-color: var(--orange);
}
