/* ============================================
   LAYOUT CSS
   Estructura principal de la aplicación
   ============================================ */

/* Layout Principal - Fullscreen */
.app-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

/* Header Compacto */
.app-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    padding: 8px 16px;
    box-shadow: 0 2px 10px var(--shadow);
    z-index: 1000;
    flex-shrink: 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 100%;
    gap: 20px;
}

/* Header Left: Logos & App Name */
.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.header-logo-link {
    display: flex;
    align-items: center;
    transition: opacity 0.2s;
}

.header-logo-link:hover {
    opacity: 0.8;
}

.header-logo {
    height: 32px;
    object-fit: contain;
}

.header-divider-vertical {
    width: 1px;
    height: 32px;
    background: rgba(255, 255, 255, 0.3);
}

.header-branding {
    display: flex;
    align-items: center;
    font-size: 0.9em;
}

.header-branding strong {
    font-weight: 600;
    white-space: nowrap;
}

.app-title {
    font-size: 1em;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

/* Header Center: Project Controls */
.header-center {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    justify-content: center;
}

/* Header Right: Help, Language, GitHub, Branding */
.header-right {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-shrink: 0;
}

/* Header Divider */
.header-divider {
    width: 1px;
    height: 24px;
    background: rgba(255, 255, 255, 0.3);
    margin: 0 4px;
}


/* Main Layout - 3 columnas */
.main-layout {
    display: grid;
    grid-template-columns: 200px 1fr 240px;
    height: calc(100vh - 48px);
    overflow: hidden;
    gap: 0;
}

/* Paneles Laterales */
.sidebar, .right-panel {
    background: var(--white);
    border-right: 1px solid var(--border);
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar {
    display: flex;
    flex-direction: column;
}

.right-panel {
    border-right: none;
    border-left: 1px solid var(--border);
}

/* Secciones de Panel */
.panel-section {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
}

.panel-section:last-child {
    border-bottom: none;
}

.panel-section h3 {
    font-size: 0.85em;
    margin-bottom: 8px;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.panel-section h3 i {
    color: var(--primary);
    font-size: 0.9em;
}
