/* Ujjina Player Studio - Dashboard */

#dashboard-screen {
    flex-direction: column;
    min-height: 100vh;
}

/* Header */
.dash-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    background: var(--header-bg);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    gap: 12px;
    flex-wrap: wrap;
}

.dash-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.dash-logo {
    height: 28px;
    width: auto;
}

.dash-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.dash-header-center {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    justify-content: center;
    min-width: 0;
}

.player-selector {
    padding: 6px 10px;
    background: var(--input-bg);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 13px;
    font-family: inherit;
    max-width: 220px;
    min-width: 140px;
    outline: none;
}

.player-selector:focus {
    border-color: var(--accent);
}

.dash-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.dash-user {
    font-size: 12px;
    color: var(--text-muted);
}

/* Layout principal - vertical */
.dash-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

/* Preview panel - arriba, siempre visible */
.preview-panel {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

/* Editor panel - abajo, scroll */
.editor-panel {
    background: var(--bg-secondary);
    flex: 1;
}

.editor-scroll {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    padding: 16px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.editor-section {
    margin-bottom: 0;
    background: var(--surface);
    border-radius: 10px;
    padding: 16px;
    border: 1px solid var(--border);
}

.editor-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: transparent;
    border: none;
    padding: 0;
    justify-content: flex-end;
}

/* Responsive */

@media (max-width: 1024px) {
    .dash-title {
        display: none;
    }

    .editor-scroll {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        padding: 12px;
        gap: 12px;
    }
}

@media (max-width: 768px) {
    .dash-header {
        padding: 8px 12px;
    }

    .dash-header-center {
        order: 3;
        flex-basis: 100%;
        justify-content: center;
    }

    .dash-user {
        display: none;
    }

    .dash-title {
        display: none;
    }

    .editor-scroll {
        grid-template-columns: 1fr;
        padding: 10px;
        gap: 10px;
    }

    .editor-section {
        padding: 14px;
    }
}

@media (max-width: 480px) {
    .dash-logo {
        height: 24px;
    }

    .dash-header {
        padding: 6px 8px;
    }

    .player-selector {
        font-size: 12px;
        min-width: 120px;
    }

    .editor-scroll {
        padding: 8px;
    }

    .editor-section {
        padding: 12px;
    }

    .radio-group {
        gap: 6px;
    }

    .radio-card-content {
        padding: 10px;
        font-size: 12px;
    }

    .radio-icon {
        font-size: 22px;
    }
}
