/* Migration banner: top strip. Fixed to the viewport top so it stays pinned while
   the page scrolls. The main <nav> in Main.css is itself position:fixed at top:0
   (z-index 1000), so we sit above it (z-index 1100) and rely on the body class
   below to push the nav, sidebar (#Menu) and in-flow page content down by the
   banner's height so nothing is obscured. */
.migration-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 10px 20px;
    font-size: 14px;
    height: 40px;
    box-sizing: border-box;
    z-index: 1100;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
}

/* Toggled by MigrationInvitation.ts when the banner is shown or hidden. Keeps
   the banner-height offset in one place so the dismissed state restores the
   page to its native layout. !important is necessary because Main.css has
   highly specific rules pinning `nav` and `#Menu` to top:0 with the body class
   `MenuPinned` etc., which would otherwise win specificity. */
body.migration-banner-visible {
    padding-top: 40px !important;
}

body.migration-banner-visible nav {
    top: 40px !important;
}

body.migration-banner-visible .PageFader #Menu,
body.migration-banner-visible #Menu {
    top: 40px !important;
    height: calc(100vh - 40px) !important;
}

.migration-banner-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.migration-banner-content i {
    font-size: 18px;
}

.migration-banner-dismiss {
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    padding: 0 4px;
    opacity: 0.8;
}

.migration-banner-dismiss:hover {
    opacity: 1;
}

/* Migration modal — overlay */
.migration-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1060;
    align-items: center;
    justify-content: center;
}

.migration-modal {
    background: #fff;
    border-radius: 12px;
    padding: 32px;
    max-width: 520px;
    width: 90%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.migration-modal h2 {
    margin-top: 0;
    font-size: 22px;
    color: #333;
}

.migration-modal h2 i {
    color: #667eea;
    margin-right: 8px;
}

.migration-modal ul {
    padding-left: 20px;
    line-height: 1.5;
}

.migration-modal ul li {
    margin-bottom: 12px;
    color: #666;
}

.migration-modal ul li strong {
    color: #333;
}

.migration-modal-beta-note {
    background: #f5f6fa;
    border-left: 3px solid #667eea;
    padding: 12px 14px;
    border-radius: 4px;
    font-size: 13px;
    color: #555;
    margin-top: 16px;
    line-height: 1.5;
}

.migration-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

.migration-modal-close:hover {
    color: #333;
}

.migration-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
}

