/* Top-level app layout: app container, main content region, export dropdown.
 * Extracted from styles.css lines 42-49 and 683-843.
 */

.app-container {
    display: flex;
    flex: 1;
    overflow: hidden;
    overflow-x: hidden;
    flex-direction: row;
    max-width: 100vw;
}
/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0;
    background-color: var(--bg-main);
    border-radius: 12px;
    margin: 8px;
    overflow: hidden;
    overflow-x: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    height: calc(100vh - 16px);
    order: 3;
    position: relative;
}

.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 24px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 0;
    color: var(--text-primary);
}

.main-header .title {
    font-size: 18px;
    font-weight: 500;
}

.model-selector-header {
    display: flex;
    align-items: center;
    margin: 0 12px;
}

.model-selector-header select {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 500;
    padding: 4px 24px 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    min-width: 140px;
    outline: none;
    transition: background-color 0.2s ease;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 4px center;
    background-repeat: no-repeat;
    background-size: 16px;
}

.model-selector-header select:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.model-selector-header select:focus {
    background-color: rgba(59, 130, 246, 0.1);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.main-header-icons {
    display: flex;
    gap: 8px;
}

.icon-button {
    background-color: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    color: var(--text-secondary);
    transition: background-color 0.2s;
}

.icon-button:hover {
    background-color: var(--bg-hover);
}

#arenaSharedInputBtn.active {
    color: var(--blue-accent);
    background-color: rgba(59, 130, 246, 0.1);
}

#arenaSharedInputBtn.active:hover {
    background-color: rgba(59, 130, 246, 0.18);
}

.icon-button svg {
    font-size: 20px;
}

/* Export dropdown */
.export-dropdown-container {
    position: relative;
    display: inline-flex;
}

.export-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background-color: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    min-width: 155px;
    z-index: 1000;
    overflow: hidden;
    padding: 4px;
}

.export-dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 8px 12px;
    background: none;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 13px;
    color: var(--text-primary);
    text-align: left;
    transition: background-color 0.15s;
    white-space: nowrap;
}

.export-dropdown-item:hover {
    background-color: var(--bg-hover);
}

.export-dropdown-item svg {
    flex-shrink: 0;
    color: var(--text-secondary);
}

.chat-container {
    max-width: 800px;
    margin: auto;
    text-align: center;
    width: 100%;
    padding: 24px;
}

.chat-container h1 {
    font-size: 44px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 24px;
}

