/* ============================================
   Unified Swap Transaction Status Display
   ============================================ */

/* Single unified status card - positioned on left, matching wallet balances styling */
#swap-status-display {
    position: fixed;
    top: 75px; /* Match wallet balances top position */
    left: 55px; /* Opposite side of wallet balances (right: 55px) */
    margin-top: 20px;
    font-size: 13px;
    text-align: left;
    color: #eee;
    line-height: 1.35;
    z-index: 1000;
    min-width: 320px;
    max-width: 360px;
    background: rgba(0, 0, 0, 0.85);
    border: 1px solid rgba(0, 255, 255, 0.4); /* Tactical cyan border to match wallet balances */
    border-radius: 6px;
    padding: 10px 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6), 0 0 8px rgba(0, 255, 255, 0.2);
    display: none; /* Hidden by default - shown when transaction starts */
    font-family: 'Share Tech Mono', monospace;
    /* Card expands as status items are added */
    min-height: auto;
    transition: min-height 0.3s ease;
}

/* Status item - each step in the transaction process */
.swap-status-item {
    margin-bottom: 8px;
    padding: 6px 0;
    color: #00aaff; /* Cyan color to match tactical theme */
    text-shadow: 0 0 5px rgba(0, 170, 255, 0.5);
    font-size: 13px;
    line-height: 1.4;
    border-bottom: 1px solid rgba(0, 170, 255, 0.2);
}

.swap-status-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

/* Active/completed status items */
.swap-status-item.active {
    color: #00aaff;
    font-weight: bold;
}

.swap-status-item.completed {
    color: #00ff88; /* Green for completed steps */
    text-shadow: 0 0 5px rgba(0, 255, 136, 0.5);
}

/* Error status */
.swap-status-item.error {
    color: #ff4444;
    text-shadow: 0 0 5px rgba(255, 68, 68, 0.5);
}

/* TX Hash section - appears at the bottom */
.swap-tx-hash {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(0, 170, 255, 0.3);
    font-size: 12px;
    color: #888;
}

.swap-tx-hash-label {
    color: #00aaff;
    margin-bottom: 4px;
    font-size: 12px;
}

.swap-tx-hash-link {
    color: #00aaff;
    text-decoration: none;
    word-break: break-all;
    display: block;
    line-height: 1.5;
    text-shadow: 0 0 5px rgba(0, 170, 255, 0.5);
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.swap-tx-hash-link:hover {
    color: #00ff88;
    text-shadow: 0 0 8px rgba(0, 255, 136, 0.8);
    text-decoration: underline;
}

/* Close button - appears at the bottom */
.swap-close-button {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(0, 170, 255, 0.3);
    color: #00aaff;
    text-align: center;
    font-size: 13px;
    cursor: pointer;
    transition: color 0.3s ease, text-shadow 0.3s ease;
    text-shadow: 0 0 5px rgba(0, 170, 255, 0.5);
}

.swap-close-button:hover {
    color: #00ff88;
    text-shadow: 0 0 8px rgba(0, 255, 136, 0.8);
}

/* Legacy support - hide old cards if they exist */
.swap-status-card,
.swap-result-card {
    display: none !important;
}



