/* ===== POG DASHBOARD BASE STYLES - DESKTOP ONLY ===== */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f3f2f1;
    color: #323130;
    overflow: hidden;
}

/* ===== LAYOUT STRUCTURE ===== */
.pog-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    width: 100vw;
    background-color: #ffffff;
}

/* ===== TOP MENU BAR ===== */
.top-menu {
    display: flex;
    align-items: center;
    background-color: #0078d4;
    color: white;
    height: 48px;
    padding: 0 16px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 1000;
}

.app-title {
    font-size: 16px;
    font-weight: 600;
    margin-right: 32px;
    color: white;
}

.top-menu-item {
    padding: 12px 16px;
    cursor: pointer;
    border-radius: 2px;
    transition: background-color 0.2s ease;
    font-size: 14px;
    font-weight: 400;
    user-select: none;
}

.top-menu-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.top-menu-item.active {
    background-color: rgba(255, 255, 255, 0.2);
    font-weight: 600;
}

.user-info {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 12px;
}

#username-display {
    font-size: 14px;
    color: white;
}

/* ===== RIBBON BAR ===== */
.ribbon-bar {
    background-color: #faf9f8;
    border-bottom: 1px solid #edebe9;
    height: 96px;
    padding: 8px 16px;
    overflow: visible;
}

.ribbon-content {
    display: flex;
    align-items: stretch;
    gap: 1px;
    height: 80px;
}

.ribbon-content.hidden {
    display: none;
}

.ribbon-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    min-width: fit-content;
    padding: 4px 8px;
    border-right: 1px solid #edebe9;
    height: 100%;
}

.ribbon-group:last-child {
    border-right: none;
}

.ribbon-group-content {
    display: flex;
    align-items: stretch;
    gap: 4px;
    flex: 1;
    align-items: center;
}

.ribbon-group-label {
    font-size: 11px;
    color: #605e5c;
    margin-top: 4px;
    text-align: center;
    white-space: nowrap;
    padding: 2px 4px;
    border-top: 1px solid #edebe9;
    width: 100%;
    min-width: 60px;
}

.ribbon-separator {
    display: none;
}

/* ===== MAIN CONTENT AREA ===== */
.pog-main {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* ===== LEFT SIDEBAR ===== */
.left-sidebar {
    width: 300px;
    background-color: #ffffff;
    border-right: 1px solid #edebe9;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.sidebar-header {
    padding: 16px;
    border-bottom: 1px solid #edebe9;
    background-color: #faf9f8;
}

.sidebar-header h3 {
    margin: 0 0 12px 0;
    font-size: 16px;
    font-weight: 600;
    color: #323130;
}

.sidebar-actions {
    display: flex;
    gap: 8px;
}

.sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
}

/* ===== LAYOUT PANEL ===== */
.layout-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
    overflow: hidden;
}

/* ===== TAB BAR ===== */
.tab-bar {
    display: flex;
    align-items: center;
    background-color: #faf9f8;
    border-bottom: 1px solid #edebe9;
    min-height: 40px;
    padding: 0 16px;
    overflow-x: auto;
}

.tab-placeholder {
    color: #605e5c;
    font-style: italic;
    font-size: 14px;
}

.layout-tab {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    background-color: #ffffff;
    border: 1px solid #edebe9;
    border-bottom: none;
    border-radius: 4px 4px 0 0;
    margin-right: 4px;
    cursor: pointer;
    font-size: 14px;
    max-width: 200px;
    position: relative;
}

.layout-tab.active {
    background-color: #ffffff;
    border-color: #0078d4;
    z-index: 1;
}

.layout-tab:hover {
    background-color: #f3f2f1;
}

.tab-close {
    margin-left: 8px;
    width: 16px;
    height: 16px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
    color: #605e5c;
}

.tab-close:hover {
    background-color: #edebe9;
    color: #323130;
}

/* ===== CANVAS AREA ===== */
.canvas-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f3f2f1;
    position: relative;
    overflow: auto;
}

.canvas-placeholder {
    text-align: center;
    color: #605e5c;
}

.placeholder-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.placeholder-content h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #323130;
}

.placeholder-content p {
    margin: 0;
    font-size: 14px;
    color: #605e5c;
    max-width: 400px;
}

.layout-canvas {
    position: relative;
    background-color: #ffffff;
    border: 1px solid #edebe9;
    margin: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
}

/* ===== GRID AND HELPERS ===== */
.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    background-image: 
        linear-gradient(to right, rgba(0,0,0,0.1) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0,0,0,0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.3;
}

.shelf-line {
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #8a8886;
    border-top: 1px solid #605e5c;
    border-bottom: 1px solid #605e5c;
}

/* ===== DRAG AND DROP ===== */
.drop-zone {
    transition: all 0.2s ease;
}

.drop-zone.highlight {
    background-color: rgba(0, 120, 212, 0.1);
    border: 2px dashed #0078d4;
}

.drop-valid {
    background-color: rgba(16, 124, 16, 0.1);
    border-color: #107c10;
}

.drop-invalid {
    background-color: rgba(196, 43, 28, 0.1);
    border-color: #c42b1c;
}

.drag-active {
    opacity: 0.8;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 1000;
}

/* ===== UTILITY CLASSES ===== */
.hidden {
    display: none !important;
}