/* Dashboard - full viewport iframe (taskbar/menu live inside iframe) */
.dashboard-wrap {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.dashboard-wrap iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Dashboard: loading overlay above iframe */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    z-index: 10001;
}

.loading-screen.hidden { display: none !important; }

/* One-time banner after first claim from handover */
.first-claim-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10002;
    background: var(--panel-bg, rgba(30, 41, 59, 0.95));
    border-bottom: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
    color: var(--text-color, #e2e8f0);
    padding: 0.65rem 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.first-claim-banner-inner {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: space-between;
}

.first-claim-banner-text {
    flex: 1 1 240px;
    line-height: 1.45;
    font-size: 0.95rem;
}

.first-claim-banner-dismiss {
    flex-shrink: 0;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--tile-border);
    border-top-color: var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin { to { transform: rotate(360deg); } }

.loading-screen p { margin: 4px 0; }
.loading-screen .detail { font-size: 13px; color: var(--secondary-text); margin-top: 8px; }

.load-error {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid var(--status-danger);
    color: var(--status-danger);
    padding: 16px;
    border-radius: 8px;
    margin: 16px;
    text-align: center;
}

/* Admin preview mode banner */
.preview-banner {
    background: var(--accent-color, #4a90d9);
    color: #fff;
    padding: 10px 16px;
    text-align: center;
    font-size: 14px;
    flex-shrink: 0;
}
