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

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

.sidebar[b-o8ebbo4cuv] {
    background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
}

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

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

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

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

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

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

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

    .sidebar[b-o8ebbo4cuv] {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

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

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

    .top-row[b-o8ebbo4cuv], article[b-o8ebbo4cuv] {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }
}
/* /Pages/Home.razor.rz.scp.css */

.app-wrapper[b-x0y829poco] {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 1rem;
}

.info[b-x0y829poco] {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: min(600px, 100% - 2rem);
    flex-shrink: 1;
}


.panel[b-x0y829poco] {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--color-grid-lines);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    gap: 20px;
}

.section-title[b-x0y829poco] {
    border-bottom: 2px solid var(--color-grid-lines);
    width: 100%;
    padding: 10px;
    margin: 0;
}

.section-title.inline[b-x0y829poco] {
    border-bottom: none;
    padding: 0;
    display: inline;
}

.menu-section[b-x0y829poco] {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    padding: 0 12px 12px;
}

.input-group[b-x0y829poco] {
    display: flex;
    flex-direction: column;
    gap: 6fpx;
    width: 100%;
}

.description[b-x0y829poco] {
    font-size: .8em;
    color: grey;
    margin: 0;
}


.instructions[b-x0y829poco] {
    padding: 0 0 12px;
}

.instructions p[b-x0y829poco] {
    padding: 0 12px;
    margin: 0;
}


.maze-input[b-x0y829poco] {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.action-buttons[b-x0y829poco] {
    display: flex;
    flex-direction: row;
    gap: 10px;
    flex-wrap: wrap;
    color: white;
}


.optimization-settings[b-x0y829poco] {
    padding: 0 0 12px;
    text-align: center;
}

.optimization-settings summary[b-x0y829poco] {
    list-style: none;
    cursor: pointer;
    padding: 10px 12px;    
}

.optimization-settings summary[b-x0y829poco]::-webkit-details-marker {
    display: none;
}

.optimization-settings summary[b-x0y829poco]::before {
    content: "▸";
    display: inline-block;
    margin-right: 8px;
    transition: transform 0.15s ease;
}

.optimization-settings[open] summary[b-x0y829poco]::before {
    transform: rotate(90deg);
}

.optimization-settings summary .description[b-x0y829poco] {
    margin-top: 4px;
}


button[b-x0y829poco] {
    font-family: inherit;
    cursor: pointer;
    border: none;
    border-radius: 8px;
    padding: 10px 16px;
    font-weight: 600;
    color: white;
    transition: background-color 0.15s ease, transform 0.1s ease, opacity 0.15s ease;
}

button:disabled[b-x0y829poco] {
    opacity: 0.4;
    cursor: not-allowed;
    color: white;
}

button:not(:disabled):hover[b-x0y829poco] {
    transform: translateY(-1px);
}

button:not(:disabled):active[b-x0y829poco] {
    transform: translateY(0);
}

.selection-button[b-x0y829poco] {
    border-radius: 12px;
    background: var(--color-empty);
    color: #fff;
}

.selection-button.active[b-x0y829poco] {
    background-color: var(--color-active-selection);
}

.clear-button[b-x0y829poco], .stop-button[b-x0y829poco] {
    background-color: #E24C4C;
}

.solve-button[b-x0y829poco] {
    background-color: var(--color-start);
}

.skip-button[b-x0y829poco] {
    background-color: var(--color-frontier);
}


input[type=range][b-x0y829poco] {
    accent-color: var(--color-active-selection);
}

input[type=checkbox][b-x0y829poco] {
    align-self: self-start;
}

.maze-grid[b-x0y829poco] {
    display: grid;
    gap: 1px;
    background-color: var(--color-wall);
    grid-template-columns: repeat(var(--cols), 1fr);
    grid-template-rows: repeat(var(--rows), 1fr);
    user-select: none;
    flex: 1;
    min-width: 0;
    aspect-ratio: var(--cols) / var(--rows);
    max-width: calc(var(--cols) * 40px);
    max-height: 80vh;
}

.cell[b-x0y829poco] {
    background: var(--color-empty);
    transition: background-color 0.15s ease, transform 0.15s ease;
}

.cell.wall[b-x0y829poco] { background: var(--color-wall); }
.cell.start[b-x0y829poco] { background: var(--color-start) !important; }
.cell.end[b-x0y829poco] { background: var(--color-end) !important; }

.cell.frontier[b-x0y829poco] {
    background: var(--color-frontier);
    animation: pulse-b-x0y829poco 0.3s ease;
}

.cell.visited[b-x0y829poco] {
    background: var(--color-visited);
    animation: pulse-b-x0y829poco 0.3s ease;
}

.cell.path[b-x0y829poco] {
    background: var(--color-path);
    animation: pop-b-x0y829poco 0.25s ease;
}

.cell.start[b-x0y829poco], .cell.end[b-x0y829poco] {
    animation: glow-b-x0y829poco 2s ease-in-out infinite;
}


@keyframes pulse-b-x0y829poco {
    0% { transform: scale(1); }
    50% { transform: scale(1.10); }
    100% { transform: scale(1); }
}

@keyframes pop-b-x0y829poco {
    0% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@keyframes glow-b-x0y829poco {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.1); }
    50% { box-shadow: 0 0 8px 2px rgba(255, 255, 255, 0.25); }
}


.mobile-warning[b-x0y829poco] { display: none; }

@media (max-width: 900px), (pointer: coarse), (hover: none) {
    .app-wrapper[b-x0y829poco] { display: none; }
    .mobile-warning[b-x0y829poco] {
        display: block;
    }
}
