/* assets/css/generator/layout.css */

.chat-layout {
    position: relative;
    width: 100%;
    height: calc(100vh - 90px);
    height: calc(100dvh - 90px);
    max-height: calc(100vh - 90px);
    max-height: calc(100dvh - 90px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-layout::before {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: calc(var(--generator-total-height) + 60px);
    background: linear-gradient(to bottom, transparent 0%, rgba(10, 10, 14, 0.8) 40%, var(--color-bg-primary) 80%, var(--color-bg-primary) 100%);
    pointer-events: none;
    z-index: 50;
}

.chat-feed {
    position: relative; flex: 1; overflow-y: auto; overflow-x: hidden;
    padding: 32px 40px 0 40px;
    display: flex; flex-direction: column; align-items: center;
    gap: 32px; z-index: 1; scroll-behavior: smooth;
}

.chat-feed::before { content: ''; flex: 1 1 auto; width: 100%; min-height: 0; }

.chat-feed::after {
    content: '';
    display: block;
    height: var(--generator-total-height);
    min-height: var(--generator-total-height);
    width: 100%;
    flex-shrink: 0;
}

.chat-feed::-webkit-scrollbar { width: 6px; }
.chat-feed::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.02); border-radius: 10px; }
.chat-feed::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.1); border-radius: 10px; }
.chat-feed::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.2); }

.empty-state-wrapper {
    position: absolute; top: 40%; left: 50%; transform: translate(-50%, -50%);
    display: flex; flex-direction: column; align-items: center; gap: 20px;
    pointer-events: none; transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 10;
}
.empty-state-wrapper.hidden { opacity: 0; transform: translate(-50%, -65%); }
.empty-state-icon {
    width: 64px; height: 64px; color: var(--color-text-menu-muted);
    opacity: 0.8; filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.05));
    animation: float-icon 5s ease-in-out infinite;
}
.chat-welcome-message { color: var(--color-text-muted); text-align: center; font-size: 16px; font-weight: 500; opacity: 0.8; }

.generator-bottom-wrapper {
    position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
    width: calc(100% - 64px); max-width: 1024px; z-index: 100;
    display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
}

.generator-bottom-wrapper-tier {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    gap: 0;
}

.generator-tier-main {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    flex: 1 1 auto;
    min-width: 0;
}

.generator-tier-sidebar {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 4px;
    flex: 0 0 32px;
    z-index: 10;
    padding-bottom: 2px;
}

.generator-tier-tab {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    min-width: 32px;
    flex: 0 0 auto;
    padding: 12px 0;
    border: 1px solid rgba(255,255,255,0.12);
    border-right: none;
    border-radius: 12px 0 0 12px;
    background: rgba(15, 15, 20, 0.78);
    color: rgba(255,255,255,0.68);
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.generator-tier-tab-label {
    display: block;
    font-size: 9px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0.04em;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    user-select: none;
}

@media (max-width: 768px) {
    .generator-bottom-wrapper-tier {
        gap: 0;
    }

    .generator-tier-sidebar {
        flex: 0 0 28px;
        gap: 4px;
        padding-bottom: 2px;
    }

    .generator-tier-tab {
        width: 28px;
        min-width: 28px;
        border-radius: 10px 0 0 10px;
        border-right: none;
        padding: 10px 0;
    }

    .generator-tier-tab-label {
        font-size: 9px;
    }
}