:root {
    --primary: #008cce; /* Azul semelhante ao do concorrente */
    --primary-dark: #0180bb;
    --secondary: #28a745; /* Verde para ações de sucesso/início */
    --secondary-dark: #218838;
    --bg-light: #f2f5ff;
    --text-dark: #333333;
    --text-light: #666666;
    --white: #ffffff;
    --border: #e0e0e0;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --radius: 8px;
    --transition: all 0.3s ease;
}


* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* --- Header --- */
header {
    background: var(--white);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo span {
    color: var(--text-dark);
}

/* --- Main Container --- */
main {
    flex: 1;
    padding: 2rem;
    max-width: 90%;
    margin: 0 auto;
    width: 100%;
}

/* --- View: Landing Page --- */
#landing-view {
    text-align: center;
    padding: 3rem 0;
    animation: fadeIn 0.5s ease;
}

.hero-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(0, 102, 204, 0.15);
}

.card-icon {
    width: 64px;
    height: 64px;
    background: #e6f0fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.card-icon svg {
    width: 32px;
    height: 32px;
    fill: currentColor;
}

.card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* --- View: Migration Tool --- */
#tool-view {
    display: none; /* Hidden by default */
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    animation: slideUp 0.4s ease;
}

.tool-header {
    background: var(--primary);
    color: var(--white);
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.back-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    transition: var(--transition);
}

.back-btn:hover {
    background: rgba(255,255,255,0.3);
    color: #FFF;
}

.tool-body {
    padding: 2rem;
}

/* Email Mode Toggle */
.mode-toggle {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    background: #f0f2f5;
    padding: 5px;
    border-radius: 50px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.mode-btn {
    padding: 0.6rem 1.5rem;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 40px;
    font-weight: 600;
    color: var(--text-light);
    transition: var(--transition);
}

.mode-btn.active {
    background: var(--white);
    color: var(--primary);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Grid for Source/Dest */
.migration-grid {
    display: grid;
    grid-template-columns: 1fr 60px 1fr;
    gap: 1rem;
    align-items: start;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .migration-grid {
        grid-template-columns: 1fr;
    }
    .arrow-separator {
        transform: rotate(90deg);
        margin: 1rem auto;
    }
}

.col-header {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-dark);
    margin-bottom: 0.4rem;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 0.7rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.arrow-separator {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    color: var(--text-light);
    padding-top: 2rem; /* Align with inputs */
}

/* Batch Upload Area */
#batch-area {
    display: none;
    margin-bottom: 2rem;
    text-align: center;
}

.drop-zone {
    border: 2px dashed var(--primary);
    border-radius: var(--radius);
    padding: 3rem;
    background: #f8fbff;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.drop-zone:hover, .drop-zone.dragover {
    background: #e6f0fa;
    border-color: var(--primary-dark);
}

.drop-zone-text {
    color: var(--primary);
    font-weight: 600;
    font-size: 1.1rem;
}

.drop-zone-sub {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.download-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--primary);
    text-decoration: underline;
    font-size: 0.9rem;
    cursor: pointer;
}

.batch-summary {
    margin-top: 1.25rem;
}

.batch-summary-card {
    background: #f8fbff;
    border: 1px solid #cfe3f7;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    text-align: left;
}

.batch-summary-label {
    color: var(--text-light);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.batch-summary-count {
    color: var(--primary);
    font-size: 1.8rem;
    font-weight: 700;
    margin-top: 0.15rem;
}

.batch-summary-file {
    color: var(--text);
    font-size: 0.95rem;
    margin-top: 0.35rem;
}

.batch-table-wrap {
    margin-top: 1rem;
    text-align: left;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.batch-table-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
    background: #f8fafc;
}

.batch-table-header h3 {
    margin: 0;
    color: var(--text);
    font-size: 1rem;
}

.batch-table-scroll {
    overflow-x: auto;
}

.batch-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
}

.batch-table th,
.batch-table td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid #eef2f7;
    font-size: 0.92rem;
    text-align: left;
}

.batch-table th {
    background: #f8fbff;
    color: var(--text-light);
    font-weight: 700;
}

.batch-table tbody tr:hover {
    background: #f8fbff;
}

.batch-table tbody tr:last-child td {
    border-bottom: none;
}

/* Actions Footer */
.tool-footer {
    background: #e9ecef;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border);
}

.security-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--secondary);
    font-weight: 600;
    font-size: 0.9rem;
}

.btn {
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-notify {
    background: var(--white);
    border: 1px solid var(--primary);
    color: var(--primary);
    margin-right: 1rem;
}

.btn-notify:hover {
    background: #f0f8ff;
    color: #FFF;
}

.btn-start {
    background: var(--secondary);
    color: var(--white);
    text-decoration: none;
}

.btn-start:hover {
    background: var(--secondary-dark);
}

/* --- Modal --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.modal {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    width: 90%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    animation: zoomIn 0.3s ease;
    text-align: center;
}

.modal h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
}

.modal p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

/* --- Toast Notification --- */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--text-dark);
    color: var(--white);
    padding: 1rem 1.5rem;
    border-radius: 6px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 2000;
    display: flex;
    align-items: center;
    gap: 10px;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast.success { background: #167a54; }
.toast.info { background: #075f91; }

/* Animations */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes zoomIn { from { transform: scale(0.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* Utility */
.hidden { display: none !important; }

/* Toggle Switch (SSL) */
.switch-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 5px;
}
.switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 24px;
}
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}
.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}
input:checked + .slider { background-color: var(--primary); }
input:checked + .slider:before { transform: translateX(16px); }

/* --- LANDING & TOOL VIEW (Resumido para focar na nova tela) --- */
.card { background: var(--white); padding: 2rem; border-radius: 8px; box-shadow: 0 4px 10px rgba(0,0,0,0.05); text-align: center; cursor: pointer; transition: 0.3s; display: flex; width: 200px; margin: 10px; }
.card:hover { transform: translateY(-5px); border-color: var(--primary); }
.btn { padding: 0.8rem 1.5rem; border-radius: 6px; border: none; font-weight: 600; cursor: pointer; background: var(--secondary); color: var(--white); }
.btn:hover { background-color: #218838; }
.hidden { display: none !important; }

/* =========================================
    NOVA TELA: STATUS DA MIGRAÇÃO
    ========================================= */

.status-container {
    display: flex; flex-direction: column; gap: 1.5rem;
}

/* Info Bar: Token & URL */
.info-bar {
    background: var(--white); padding: 1.5rem; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem;
}

.info-item { display: flex; flex-direction: column; gap: 4px; }
.info-label { font-size: 0.8rem; text-transform: uppercase; color: var(--text-light); font-weight: 700; letter-spacing: 0.5px; }
.info-value { font-family: 'Courier New', monospace; font-size: 1rem; color: var(--primary-dark); font-weight: 600; display: flex; align-items: center; gap: 10px; }

.copy-btn {
    background: #f0f2f5; border: 1px solid #ddd; padding: 4px 8px; border-radius: 4px; cursor: pointer; font-size: 0.8rem; color: #555; transition: 0.2s;
}
.copy-btn:hover { background: #e2e6ea; color: #000; }

.auto-update-badge {
    background: #e6f0fa; color: var(--primary); padding: 6px 12px; border-radius: 20px; font-size: 0.85rem; font-weight: 600; display: flex; align-items: center; gap: 6px;
}
.spinner {
    width: 12px; height: 12px; border: 2px solid var(--primary); border-top-color: transparent; border-radius: 50%; animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Progress Section */
.progress-section { background: var(--white); padding: 1.5rem; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.progress-header { display: flex; justify-content: space-between; margin-bottom: 10px; font-weight: 600; }
.progress-track { height: 10px; background: #e9ecef; border-radius: 5px; overflow: hidden; }
.progress-fill { height: 100%; width: 0%; background: linear-gradient(90deg, var(--secondary), #34d058); transition: none; }

/* Terminal Window */
.terminal-wrapper {
    background: #2d2d2d; border-radius: 8px; overflow: hidden; box-shadow: 0 8px 20px rgba(0,0,0,0.3); font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
}
.terminal-header {
    background: #3e3e3e; padding: 8px 15px; display: flex; align-items: center; gap: 6px; border-bottom: 1px solid #444;
}
.dot { width: 12px; height: 12px; border-radius: 50%; }
.red { background: #ff5f56; }
.yellow { background: #ffbd2e; }
.green { background: #27c93f; }
.terminal-title { margin-left: 10px; color: #999; font-size: 0.8rem; }

.terminal-body {
    background: var(--terminal-bg); color: var(--terminal-text); padding: 15px; height: 400px; overflow-y: auto; font-size: 0.9rem; line-height: 1.5;
}

/* Log Colors */
.log-line { margin-bottom: 2px; word-break: break-all; }
.log-time { color: #666; margin-right: 10px; user-select: none; }
.log-cmd { color: var(--terminal-green); font-weight: bold; }
.log-info { color: #d4d4d4; }
.log-warn { color: #ffbd2e; }
.log-error { color: #ff5f56; }
.log-highlight { color: var(--terminal-blue); }

/* Cursor blinking effect */
.cursor::after {
    content: '▋'; animation: blink 1s step-start infinite; color: var(--terminal-green); margin-left: 2px;
}
@keyframes blink { 50% { opacity: 0; } }

/* Action Bar */
.action-bar { text-align: right; margin-top: 10px; }
.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text-dark); margin-right: 10px; }
.btn-outline:hover { background: #f8f9fa; }
.btn-danger { background: #dc3545; }
.btn-danger:hover { background: #c82333; }

/* Steps (Origem/Destino) */
.steps { display: grid; gap: 8px; margin: 12px 0 }
.step { display: flex; align-items: center; gap: 10px; background:#fff; padding:10px 12px; border-radius:8px; box-shadow:var(--shadow) }
.step-icon { width: 12px; height: 12px; border-radius: 50%; background: #94a3b8 }
.step-text .step-title { font-weight: 600; color: #0f172a }
.step-text .step-sub { font-size: 12px; color: #64748b }
.step.step--running .step-icon { background:#f59e0b; animation:pulse 1.5s infinite }
.step.step--done .step-icon { background:#10b981 }
.step.step--pending .step-icon { background:#94a3b8 }
.step.step--failed .step-icon { background:#ef4444 }
@keyframes pulse { 0% { opacity: .6 } 50% { opacity: 1 } 100% { opacity: .6 } }

/* History (Home) */
.history-section { margin-top: 24px }
.history-filters { display:flex; gap:10px; align-items:center; margin-bottom:12px }
.history-list { display:grid; grid-template-columns: 1fr; gap:12px }
.history-empty { color:#64748b; font-size:.95rem }
.history-item {
    background: var(--white);
    padding: 14px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    display: grid;
    gap: 8px;
    border: 1px solid var(--border);
}
.history-row { display:flex; align-items: flex-start; gap:10px; flex-direction: column; justify-content: space-between; }
.history-left { display:flex; align-items:center; gap:10px }
.history-icon {
    width: 34px; height:34px; border-radius:10px; background:#e6f0fa; color: var(--primary);
    display:grid; place-items:center; flex:0 0 auto;
}
.history-title { font-weight:700; color:#0f172a }
.history-token { font-family: 'Courier New', monospace; font-size:.9rem; color:#475569 }
.history-meta { display:flex; align-items:center; gap:8px; color:#64748b; font-size:.85rem }
.status-pill {
    padding:2px 8px; border-radius:999px; font-weight:700; font-size:.75rem; color:#fff;
}
.status-pill.is-running { background:#f59e0b }
.status-pill.is-pending { background:#64748b }
.status-pill.is-done { background:#10b981 }
.status-pill.is-failed { background:#ef4444 }
.status-pill.is-invalid { background:#6b7280 }
.btn-link {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}
.btn-link:hover {
    background: #f0f8ff;
}

select {
    padding: 0.5rem;
    border: 1px solid #eee;
    border-radius: 6px;
    font-size: 0.95rem;
    transition: var(--transition);
}
select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

/* DB Type Selector */
#db-type-selector { margin-bottom: 12px; }
.db-type-title { font-weight: 700; color: var(--primary); margin: 6px 0 8px }
.db-type-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px }
.db-card { position:relative; background: transparent; border: 2px solid #e0e7ff; border-radius: 12px; padding: 16px; cursor: pointer; transition: transform .1s, border-color .2s, background-color .2s }
.db-card:hover { transform: translateY(-2px); border-color: var(--primary) }
.db-card.selected { border-color: var(--primary); background:#eaf3ff; box-shadow: 0 2px 12px rgba(30, 64, 175, .15) }
.db-card.selected::after {
    content: '✓';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: .8rem;
}
.db-card-icon { display:inline-flex; align-items:center; justify-content:center; min-width:84px; height:36px; padding:0 12px; border-radius: 10px; color:#fff; font-weight:700; font-size:.85rem; margin: 8px auto 10px }
.db-card-icon.mysql { background:#0ea5e9 }
.db-card-icon.postgres { background:#334155 }
.db-card-icon.mssql { background:#ef4444 }
.db-card-icon.mongodb { background:#16a34a }
.db-card-icon.sqlite { background:#6b7280 }
.db-card-icon.firebird { background:#f97316 }
.db-card-title { font-weight:700; color:#0f172a; text-align:center }
.db-card-sub { color:#64748b; font-size:.85rem; text-align:center }
.db-card.disabled { opacity:.6; border-color:#e5e7eb; background:#f3f4f6; cursor:not-allowed; filter:grayscale(.1) }
.db-card.disabled:hover { transform:none; border-color:#e5e7eb; box-shadow:none }

/* Track Page Layout */
.status-container { max-width: 100%; margin: 0 auto; display: grid; grid-template-columns: 1fr; gap: 16px }
.info-bar { display:flex; gap:16px; align-items:flex-end; background:#fff; padding:14px; border-radius:10px; box-shadow: var(--shadow) }
.info-item { flex:1 }
.info-label { display:block; font-size:.85rem; color:#64748b; margin-bottom:6px }
.info-value { display:flex; align-items:center; gap:8px; font-weight:700; color:#0f172a; overflow:auto }
.copy-btn { padding:6px 10px; border:1px solid #cbd5e1; background:#f8fafc; border-radius:8px; cursor:pointer }
.auto-update-badge { margin-left:auto; display:flex; align-items:center; gap:6px; background:#e0f2fe; color:#0369a1; border:1px solid #bae6fd; padding:6px 10px; border-radius:20px; font-weight:700 }
.spinner { width:10px; height:10px; border:2px solid #7dd3fc; border-top-color:transparent; border-radius:50%; animation:spin 1s linear infinite }
@keyframes spin { to { transform: rotate(360deg) } }
.progress-section { background:#fff; padding:14px; border-radius:10px; box-shadow: var(--shadow) }
.current-progress-card { padding:12px; border-top:1px solid #1f2937; background:#0b1220 }
.current-progress-header { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-bottom:8px; color:#e2e8f0; font-size:.92rem }
.current-progress-track { height:8px; background:#1e293b; border-radius:999px; overflow:hidden }
.current-progress-fill { height:100%; width:0; background:linear-gradient(90deg,#22c55e,#06b6d4); border-radius:999px; transition:none }
.current-progress-sub { margin-top:8px; font-size:.82rem; color:#94a3b8 }
.progress-header { display:flex; align-items:center; justify-content:space-between; color:#0f172a; font-weight:700; margin-bottom:8px }
.progress-track { height:10px; background:#e2e8f0; border-radius:8px; overflow:hidden }
.progress-fill { height:10px; width:0; background:#10b981; transition:none }
.terminal-wrapper { background:#0f172a; border-radius:10px; box-shadow:0 2px 12px rgba(0,0,0,.25); overflow:hidden }
.terminal-header { padding:8px 12px; background:#111827; color:#e5e7eb; display:flex; align-items:center; gap:6px; border-bottom:1px solid #1f2937 }
.terminal-header .dot { width:10px; height:10px; border-radius:50% }
.terminal-header .red { background:#ef4444 }
.terminal-header .yellow { background:#f59e0b }
.terminal-header .green { background:#22c55e }
.terminal-title { margin-left:6px; font-weight:700 }
.terminal-body { max-height: 460px; overflow:auto; padding:12px; color:#e2e8f0; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; font-size:.9rem }
.log-line { white-space: pre-wrap; line-height: 1.35 }
.log-time { color:#94a3b8 }
.log-line.cursor { width:100%; height:18px; background:linear-gradient(90deg, rgba(255,255,255,.04), rgba(255,255,255,0)); animation:cursorPulse 1.4s infinite }
@keyframes cursorPulse { 0% {opacity:.2} 50% {opacity:.6} 100% {opacity:.2} }
.action-bar { display:flex; gap:10px; justify-content:flex-end }
.btn.btn-outline { background:#fff; border:1px solid #cbd5e1; color:#0f172a }
.btn.btn-outline:hover { background:#f8fafc }
.modal-wide { width:min(92vw,980px) }
.table-report-summary { margin-top:10px; padding:10px 12px; background:#f8fafc; border:1px solid #e2e8f0; border-radius:10px; color:#334155; font-weight:600 }
.table-report-content { margin-top:12px; max-height:55vh; overflow:auto; border:1px solid #e2e8f0; border-radius:10px }
.table-report-table { width:100%; border-collapse:collapse; font-size:.92rem; background:#fff }
.table-report-table th, .table-report-table td { padding:10px 12px; border-bottom:1px solid #e2e8f0; text-align:left }
.table-report-table th { position:sticky; top:0; background:#f8fafc; z-index:1; color:#0f172a }
.table-report-table td.num, .table-report-table th.num { text-align:right; white-space:nowrap }
.table-report-empty { padding:16px; color:#64748b }

/* Two-column layout on wide screens */
@media (min-width: 1100px) {
  .status-container { grid-template-columns: 380px 1fr }
  .info-bar, .progress-section { grid-column: 1 / -1 }
  .steps { grid-column: 1; align-self:start }
  .terminal-wrapper { grid-column: 2; align-self:start; position: sticky; top: 12px }
  .action-bar { grid-column: 2 }
}

/* Impeccable redesign — central de transferência */
@font-face {
    font-family: 'Manrope MVO';
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url('https://fonts.gstatic.com/s/manrope/v19/xn7gYHE41ni1AdIRggexSvfedN4.woff2') format('woff2');
}

:root {
    --navy-950: #061627;
    --navy-900: #0a2037;
    --navy-800: #10304f;
    --mvo-blue: #008fd3;
    --mvo-blue-dark: #0074ad;
    --cyan-soft: #dff5ff;
    --mint: #21c985;
    --ink: #102235;
    --muted: #5d6c7c;
    --line: #d8e2ea;
    --canvas: #f4f7f9;
    --panel: #ffffff;
    --radius: 14px;
    --shadow: 0 18px 50px rgba(7, 28, 47, .10);
    --transition: 180ms cubic-bezier(.22, 1, .36, 1);
}

html { scroll-behavior: smooth; }
* { font-family: 'Manrope MVO', 'Segoe UI', sans-serif; }
body {
    background: var(--canvas);
    color: var(--ink);
    letter-spacing: -.01em;
}
body::before {
    content: none;
}
::selection { background: var(--mvo-blue); color: #fff; }
* { scrollbar-color: var(--mvo-blue) #dce6ec; scrollbar-width: thin; }

header {
    position: relative;
    max-width: 1240px;
    width: calc(100% - 48px);
    margin: 0 auto;
    padding: 24px 0;
    background: transparent;
    border-bottom: 1px solid rgba(255,255,255,.13);
    background: var(--navy-950);
    box-shadow: 0 0 0 100vmax var(--navy-950);
    clip-path: inset(0 -100vmax);
}
.logo img { width: 132px; height: auto; filter: brightness(0) invert(1); }
.header-status {
    color: #c7dae7;
    font-size: .78rem;
    font-weight: 700;
    display: flex;
    gap: 9px;
    align-items: center;
}
.header-status span {
    width: 8px; height: 8px; border-radius: 50%; background: var(--mint);
    box-shadow: 0 0 0 5px rgba(33,201,133,.12);
}
main { max-width: 1240px; padding: 0 0 72px; }

#landing-view { text-align: left; padding: 0; animation: none; }
.hero-copy {
    min-height: 350px;
    color: #fff;
    padding: 56px 0 48px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(520px, .9fr);
    gap: 64px;
    align-items: center;
    position: relative;
    isolation: isolate;
}
.hero-copy::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 50%;
    width: 100vw;
    transform: translateX(-50%);
    background: linear-gradient(130deg, var(--navy-950) 0%, var(--navy-900) 68%, #073b59 100%);
    z-index: -1;
}
.hero-signal { display: none; }
.hero-title {
    grid-column: 1;
    font-size: clamp(2.5rem, 4vw, 4.2rem);
    line-height: 1.02;
    letter-spacing: -.04em;
    color: #fff;
    margin: 0;
    max-width: 760px;
}
.hero-title span { color: #75d4ff; }
.hero-subtitle {
    grid-column: 1;
    color: #c7d9e6;
    max-width: 62ch;
    margin: 24px 0 0;
    font-size: 1.05rem;
    line-height: 1.7;
}
.transfer-rail {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: stretch;
    display: grid;
    align-content: center;
    border-left: 1px solid rgba(255,255,255,.16);
    padding-left: 42px;
}
.transfer-rail div { position: relative; display: grid; grid-template-columns: 42px 1fr; column-gap: 16px; }
.transfer-rail small {
    grid-row: 1 / span 2; width: 38px; height: 38px; display: grid; place-items: center;
    border-radius: 50%; border: 1px solid rgba(117,212,255,.6); color: #75d4ff;
    font-weight: 800; font-variant-numeric: tabular-nums;
}
.transfer-rail strong { font-size: .95rem; color: #fff; }
.transfer-rail span { color: #91aabb; font-size: .78rem; margin-top: 3px; }
.transfer-rail i { height: 22px; width: 1px; background: rgba(117,212,255,.28); margin: 7px 0 7px 19px; }

.cards-container {
    margin: 0;
    padding: 18px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    background: var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
    transform: translateY(24px);
}
.card {
    appearance: none;
    min-width: 0;
    min-height: 230px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: var(--panel);
    padding: 30px;
    align-items: flex-start;
    text-align: left;
    gap: 0;
    color: var(--ink);
    position: relative;
    overflow: hidden;
    width: auto;
    margin: 0;
}
.card:first-child { border-radius: 10px 0 0 0; }
.card:nth-child(2) { border-radius: 0 10px 0 0; }
.card:nth-child(3) { border-radius: 0 0 0 10px; }
.card:last-child { border-radius: 0 0 10px 0; }
.card:hover { transform: none; border-color: transparent; box-shadow: none; background: #f7fcff; }
.card::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--mvo-blue); transform: scaleX(0); transform-origin: left; transition: transform var(--transition); }
.card:hover::after, .card:focus-visible::after { transform: scaleX(1); }
.card:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible { outline: 3px solid #5ecbff; outline-offset: 3px; }
.card-icon {
    width: 46px; height: 46px; border-radius: 12px; margin: 0 0 24px;
    background: var(--cyan-soft); color: var(--mvo-blue-dark);
}
.card-icon svg { width: 23px; height: 23px; }
.card h3 { font-size: 1.3rem; letter-spacing: -.025em; margin: 0 0 10px; }
.card p { color: var(--muted); line-height: 1.62; max-width: 48ch; font-size: .88rem; }
.card-action { margin-top: auto; padding-top: 24px; color: var(--mvo-blue-dark); font-size: .8rem; font-weight: 800; }
.card-action b { display: inline-block; margin-left: 7px; transition: transform var(--transition); }
.card:hover .card-action b { transform: translateX(4px); }

.network-panel, .history-section { margin-top: 88px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 20px; }
.section-heading h2 { color: var(--ink); font-size: clamp(1.45rem, 2.3vw, 2rem); letter-spacing: -.035em; }
.section-heading p { color: var(--muted); margin-top: 7px; line-height: 1.6; }
.section-heading > span { color: var(--mvo-blue-dark); font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.network-grid {
    background: var(--navy-900);
    color: #d9e7f0;
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 36px;
    align-items: center;
    padding: 28px 30px;
    border-radius: var(--radius);
    box-shadow: 0 16px 42px rgba(6,22,39,.13);
}
.ip-chip {
    display: inline-flex; padding: 9px 12px; border-radius: 9px; margin: 4px 6px 4px 0;
    background: rgba(117,212,255,.12); color: #8edcff; border: 1px solid rgba(117,212,255,.26);
    font-weight: 800; font-size: .85rem; font-variant-numeric: tabular-nums;
}
.port-list { display: grid; gap: 8px; color: #a9becd; font-size: .84rem; line-height: 1.55; }
.port-list strong { color: #fff; }

.history-section { text-align: left; }
.history-filters {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 20px;
    padding: 18px 20px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    border-radius: var(--radius) var(--radius) 0 0;
}
.filter-group { display: flex; gap: 14px; align-items: end; }
.history-filters label { color: var(--muted); font-weight: 700; font-size: .76rem; display: grid; gap: 7px; }
.history-filters select { appearance: auto; min-width: 150px; height: 42px; line-height: 1.2; border: 1px solid var(--line); border-radius: 9px; padding: 0 11px; background: #fff; color: var(--ink); }
.history-empty { display: block; background: #fff; border-radius: 0 0 var(--radius) var(--radius); }
.history-empty p { color: var(--muted); padding: 36px 24px; text-align: center; border: 0; }
.btn-link { color: var(--mvo-blue-dark); background: transparent; font-weight: 800; }

#tool-view {
    margin-top: 42px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    background: #fff;
}
.tool-header { background: var(--navy-900); padding: 22px 28px; }
.tool-header h2 { letter-spacing: -.03em; }
.back-btn { background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.18); border-radius: 9px; }
.tool-body { padding: 32px; }
.migration-grid { grid-template-columns: 1fr 72px 1fr; gap: 18px; }
.col { padding: 24px; background: #f7f9fb; border-radius: 12px; }
.col-header { color: var(--navy-800); }
.arrow-separator { color: var(--mvo-blue); }
.form-control { border: 1px solid #cbd8e1; border-radius: 9px; padding: .78rem .85rem; color: var(--ink); background: #fff; }
.form-control::placeholder { color: #718092; }
.tool-footer { padding: 22px 28px; border-top: 1px solid var(--line); background: #fbfcfd; }
.security-badge { color: #1a7453; }
.btn { min-height: 42px; border-radius: 9px; font-weight: 800; line-height: 1.1; transition: background var(--transition), transform var(--transition); }
.btn:active { transform: translateY(1px); }
.btn-start { background: var(--mvo-blue-dark); }
.btn-start:hover { background: #005f90; }
.btn-notify { background: #e5eef4; color: var(--navy-800); }
.modal-overlay { backdrop-filter: blur(6px); z-index: 1000; }
.modal { border-radius: 14px; box-shadow: 0 24px 80px rgba(0,0,0,.25); padding: 26px; }
.toast { border-radius: 10px; box-shadow: 0 14px 36px rgba(0,0,0,.2); }

@media (prefers-reduced-motion: no-preference) {
    .transfer-rail small { animation: railPulse 4s ease-in-out infinite; }
    .transfer-rail div:nth-of-type(2) small { animation-delay: .45s; }
    .transfer-rail div:nth-of-type(3) small { animation-delay: .9s; }
    @keyframes railPulse { 0%, 18%, 100% { box-shadow: 0 0 0 0 rgba(117,212,255,0); } 9% { box-shadow: 0 0 0 7px rgba(117,212,255,.09); } }
}

@media (max-width: 900px) {
    header, main { width: calc(100% - 32px); }
    .hero-copy { grid-template-columns: 1fr; gap: 32px; padding-top: 42px; }
    .hero-title, .hero-subtitle, .transfer-rail { grid-column: 1; }
    .transfer-rail { grid-row: auto; border-left: 0; border-top: 1px solid rgba(255,255,255,.14); padding: 26px 0 0; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: start; }
    .transfer-rail div { display: grid; grid-template-columns: 34px 1fr; }
    .transfer-rail small { width: 32px; height: 32px; font-size: .67rem; }
    .transfer-rail i { height: 1px; width: 20px; margin: 16px 6px 0; }
    .transfer-rail span { display: none; }
    .cards-container { transform: translateY(10px); }
}

@media (max-width: 640px) {
    header, main { width: calc(100% - 24px); }
    header { padding: 18px 0; }
    .logo img { width: 108px; }
    .header-status { font-size: 0; }
    .hero-copy { min-height: 0; padding: 40px 0 32px; }
    .hero-title { font-size: clamp(2.25rem, 12vw, 3.4rem); }
    .hero-subtitle { font-size: .95rem; line-height: 1.6; }
    .transfer-rail { gap: 6px; }
    .transfer-rail div { grid-template-columns: 1fr; gap: 7px; }
    .transfer-rail strong { font-size: .7rem; }
    .transfer-rail i { width: 12px; }
    .cards-container { grid-template-columns: 1fr; padding: 10px; }
    .card { min-height: 205px; padding: 24px; border-radius: 0 !important; }
    .card:first-child { border-radius: 8px 8px 0 0 !important; }
    .card:last-child { border-radius: 0 0 8px 8px !important; }
    .network-panel, .history-section { margin-top: 64px; }
    .section-heading { display: block; }
    .section-heading > span { display: block; margin-top: 12px; }
    .network-grid { grid-template-columns: 1fr; gap: 20px; padding: 24px 20px; }
    .history-filters, .filter-group { align-items: stretch; flex-direction: column; }
    .history-filters select { width: 100%; }
    .migration-grid { grid-template-columns: 1fr; }
    .arrow-separator { transform: rotate(90deg); margin: 2px auto; }
    .tool-body { padding: 20px; }
    .tool-footer { align-items: stretch; gap: 14px; flex-direction: column; }
    .tool-footer > div:last-child { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
}

