/* /Components/Layout/MainLayout.razor.rz.scp.css */
.page[b-gqlc43cl5p] {
    position: relative;
    display: flex;
    flex-direction: column;
}

main[b-gqlc43cl5p] {
    flex: 1;
}

.top-row[b-gqlc43cl5p] {
    background-color: #f7f7f7;
    border-bottom: 1px solid #d6d5d5;
    justify-content: flex-end;
    height: 3.5rem;
    display: flex;
    align-items: center;
    z-index: 100;
}

    .top-row[b-gqlc43cl5p]  a, .top-row[b-gqlc43cl5p]  .btn-link {
        white-space: nowrap;
        margin-left: 1.5rem;
        text-decoration: none;
    }

        .top-row[b-gqlc43cl5p]  a:hover, .top-row[b-gqlc43cl5p]  .btn-link:hover {
            text-decoration: underline;
        }

        .top-row[b-gqlc43cl5p]  a:first-child {
            overflow: hidden;
            text-overflow: ellipsis;
        }

@media (max-width: 640.98px) {
    .top-row[b-gqlc43cl5p] {
        justify-content: space-between;
    }

        .top-row[b-gqlc43cl5p]  a, .top-row[b-gqlc43cl5p]  .btn-link {
            margin-left: 0;
        }
}

@media (min-width: 641px) {
    .page[b-gqlc43cl5p] {
        flex-direction: row;
    }

    .top-row[b-gqlc43cl5p] {
        position: sticky;
        top: 0;
        z-index: 100;
    }

        .top-row.auth[b-gqlc43cl5p]  a:first-child {
            flex: 1;
            text-align: right;
            width: 0;
        }

    .top-row[b-gqlc43cl5p], article[b-gqlc43cl5p] {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }
}

#blazor-error-ui[b-gqlc43cl5p] {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss[b-gqlc43cl5p] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }
/* /Components/Pages/GiveawayPage.razor.rz.scp.css */
/* ========================================
   GiveawayPage.razor.css - МИНИМАЛЬНЫЙ CSS
   Только критичные стили для grid resize
   ======================================== */

/* ========================================
   БАЗОВЫЙ КОНТЕЙНЕР
   ======================================== */

.page-container[b-zqifosv7fb] {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 3.5rem - 2rem);
    max-height: calc(100vh - 3.5rem - 2rem);
    overflow: hidden;
}

/* ========================================
   ИСТОРИЯ GIVEAWAYS (для ResizeObserver)
   ======================================== */

.history-container[b-zqifosv7fb] {
    display: flex;
    flex: 1;
    overflow: hidden;
    position: relative;
}

.history-items-wrapper[b-zqifosv7fb] {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow: hidden;
}

/* ========================================
   ОСНОВНОЙ КОНТЕНТ
   ======================================== */

.giveaway-content[b-zqifosv7fb] {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow: hidden;
    padding-top: 16px;
}

/* ========================================
   GRID LAYOUT (КРИТИЧНО ДЛЯ RESIZE!)
   ======================================== */

.giveaway-details-section[b-zqifosv7fb] {
    display: flex;
    flex: 1;
    min-height: 0;
    overflow: hidden;
    padding-top: 16px;
    position: relative;
}

.grid-container[b-zqifosv7fb] {
    display: grid;
    gap: 0;
    grid-template-columns: 1fr 20px 1fr 20px 2fr;
    grid-template-rows: 1fr;
    height: calc(100% - 20px);
    min-height: 0;
    position: relative;
    width: calc(100% - 40px);
}

.participants-column[b-zqifosv7fb],
.winners-column[b-zqifosv7fb],
.chat-column[b-zqifosv7fb] {
    display: grid;
    gap: 0;
    grid-template-rows: 3fr 20px 2fr;
    height: 100%;
    min-height: 0;
    position: relative;
}

/* ========================================
   SCROLL СЕКЦИИ
   ======================================== */

.scroll-section[b-zqifosv7fb] {
    background: var(--mud-palette-surface);
    border-radius: 8px;
    border: 1px solid var(--mud-palette-lines-default);
    display: flex;
    flex-direction: column;
    min-height: 50px;
    overflow: hidden;
}

.section-header[b-zqifosv7fb] {
    align-items: center;
    background: var(--mud-palette-background-grey);
    border-bottom: 1px solid var(--mud-palette-lines-default);
    color: var(--mud-palette-text-secondary);
    display: flex;
    font-size: 0.9rem;
    font-weight: 600;
    justify-content: space-between;
    padding: 6px 16px;
    min-height: 40px;
    box-sizing: border-box;
}

.scroll-area[b-zqifosv7fb] {
    flex: 1;
    margin: 1px 0;
    overflow-y: auto;
    padding: 4px 16px;
}

.scroll-area[b-zqifosv7fb]::-webkit-scrollbar {
    width: 6px;
}

.scroll-area[b-zqifosv7fb]::-webkit-scrollbar-thumb {
    background: var(--mud-palette-lines-default);
    border-radius: 4px;
}

.scroll-area[b-zqifosv7fb]::-webkit-scrollbar-thumb:hover {
    background: var(--mud-palette-primary);
}

.scroll-area[b-zqifosv7fb]::-webkit-scrollbar-track {
    background: var(--mud-palette-background);
    border-radius: 4px;
}

/* ========================================
   LIST ITEMS (height критична для Virtualize!)
   ======================================== */

.list-item[b-zqifosv7fb] {
    height: 24px;
    line-height: 24px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.item-index[b-zqifosv7fb] {
    color: var(--mud-palette-text-secondary);
    min-width: 30px;
}

.participant-roles[b-zqifosv7fb] {
    color: var(--mud-palette-primary);
}

/* ========================================
   SEPARATORS (КРИТИЧНО ДЛЯ RESIZE!)
   ======================================== */

.horizontal-separator[b-zqifosv7fb],
.vertical-separator[b-zqifosv7fb] {
    cursor: row-resize;
    position: relative;
    transition: background 0.2s;
}

.vertical-separator[b-zqifosv7fb] {
    cursor: col-resize;
}

.separator.inactive[b-zqifosv7fb] {
    cursor: default !important;
}

.separator:hover:not(.inactive)[b-zqifosv7fb] {
    background: var(--mud-palette-primary-lighten);
}

/* ========================================
   CONTROLS SECTION (в winners-column)
   ======================================== */

.controls-section[b-zqifosv7fb] {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    background: var(--mud-palette-surface);
    border-radius: 8px;
    border: 1px solid var(--mud-palette-lines-default);
}

/* ========================================
   EDIT CONTROLS (внизу chat-column)
   ======================================== */

.edit-controls-section[b-zqifosv7fb] {
    height: 60px;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 8px 12px;
    background: var(--mud-palette-surface);
    border-radius: 8px;
    border: 1px solid var(--mud-palette-lines-default);
}

.edit-controls-wrapper[b-zqifosv7fb] {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 640px) {
    .page-container[b-zqifosv7fb] {
        height: calc(100vh - 6rem - 3rem);
        max-height: calc(100vh - 6rem - 3rem);
    }
}
