/* Dev tab inside the admin portal — every other portal in iframes, already
   signed in. Sits inside a .card, so it only styles its own toolbar + frames. */

.dev-card {
    display: flex;
    flex-direction: column;
}

.dev-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 12px 0 4px;
}

.dev-tabs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.dev-tab {
    background: rgba(148, 163, 184, 0.12);
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 6px;
    color: inherit;
    opacity: 0.75;
    padding: 7px 16px;
    font-size: 0.88rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.dev-tab:hover {
    opacity: 1;
    background: rgba(37, 99, 235, 0.16);
    border-color: rgba(37, 99, 235, 0.5);
}

.dev-tab.active {
    background: linear-gradient(135deg, #2563eb, #1e3a8a);
    border-color: #2563eb;
    color: #fff;
    opacity: 1;
}

.dev-toolbar-actions {
    display: flex;
    gap: 8px;
}

.dev-ghost-btn {
    background: rgba(148, 163, 184, 0.12);
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 6px;
    color: inherit;
    padding: 7px 12px;
    font-size: 0.82rem;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dev-ghost-btn:hover {
    background: rgba(148, 163, 184, 0.22);
}

.dev-status {
    margin: 8px 0 12px;
    font-size: 0.82rem;
    opacity: 0.7;
}

.dev-status-error {
    color: #dc2626;
    opacity: 1;
}

/* The embedded portals are full apps — give them a real viewport. */
.dev-frames {
    position: relative;
    width: 100%;
    height: calc(100vh - 300px);
    min-height: 520px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 10px;
    overflow: hidden;
    background: #0a0e1a;
}

.dev-frame {
    display: none;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: #0a0e1a;
}

.dev-frame.active {
    display: block;
}

@media (max-width: 720px) {
    .dev-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }
    .dev-frames {
        height: calc(100vh - 340px);
        min-height: 420px;
    }
}
