/* PumpFunTrader Dark Theme Styles */

/* Login Screen */
.login-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a0a0f 0%, #1a1a24 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.login-container {
    background: #1a1a24;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    width: 100%;
    max-width: 400px;
    border: 1px solid #3a3a48;
}

.login-container h1 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.8em;
    color: #e8e8f0;
}

.login-form .form-group {
    margin-bottom: 20px;
}

.login-form label {
    display: block;
    margin-bottom: 8px;
    color: #a8a8b8;
    font-weight: 500;
}

.login-form input[type="password"] {
    width: 100%;
    padding: 12px 16px;
    background: #252530;
    border: 1px solid #3a3a48;
    border-radius: 8px;
    color: #e8e8f0;
    font-size: 16px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.login-form input[type="password"]:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.login-btn {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    margin-top: 10px;
}

.login-error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid #ef4444;
    color: #ef4444;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 16px;
    text-align: center;
    font-size: 14px;
}

:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #1a1a24;
    --bg-tertiary: #252530;
    --text-primary: #e8e8f0;
    --text-secondary: #a8a8b8;
    --border-color: #3a3a48;
    --accent-primary: #6366f1;
    --accent-secondary: #8b5cf6;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 
                 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
header {
    background: var(--bg-secondary);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

header h1 {
    font-size: 2em;
    margin-bottom: 15px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.status-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.status-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.status-item .label {
    font-size: 0.85em;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-item .value {
    font-size: 1.2em;
    font-weight: 600;
}

.status-running {
    color: var(--success);
}

.status-stopped {
    color: var(--text-secondary);
}

.status-paused {
    color: var(--warning);
}

/* Navigation tabs */
.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0;
}

.tab-button {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 12px 24px;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
}

.tab-button:hover {
    color: var(--text-primary);
    background: var(--bg-tertiary);
}

.tab-button.active {
    color: var(--accent-primary);
    border-bottom-color: var(--accent-primary);
}

/* Tab content */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Sections */
section {
    background: var(--bg-secondary);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

section h2 {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: var(--text-primary);
}

/* Controls */
.controls {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 1em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: var(--success);
    color: white;
}

.btn-primary:hover {
    background: #0ea572;
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--border-color);
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
}

.btn-icon {
    font-size: 1.1em;
}

/* Tables */
.table-container {
    overflow-x: auto;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

thead {
    background: var(--bg-tertiary);
}

th {
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-size: 0.85em;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--border-color);
}

td {
    padding: 12px;
    border-bottom: 1px solid var(--border-color);
}

tbody tr:hover {
    background: var(--bg-tertiary);
}

tbody tr.empty-state {
    text-align: center;
    color: var(--text-secondary);
    font-style: italic;
}

/* Compact styling for monitored tokens table */
#monitored-table th {
    padding: 8px;
    font-size: 0.8em;
}

#monitored-table td {
    padding: 6px 8px;
    vertical-align: middle;
}

#monitored-table tbody tr {
    height: auto;
}

/* P&L colors */
.pnl-positive {
    color: var(--success);
    font-weight: 600;
}

.pnl-negative {
    color: var(--danger);
    font-weight: 600;
}

/* Action buttons in tables */
.action-btn {
    padding: 6px 12px;
    font-size: 0.9em;
    border-radius: 4px;
}

/* Monitoring stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.stat-card {
    background: var(--bg-tertiary);
    padding: 20px;
    border-radius: 6px;
    text-align: center;
    border: 1px solid var(--border-color);
}

.stat-value {
    font-size: 2.5em;
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.9em;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Trading metrics */
.trading-metrics {
    background: var(--bg-secondary);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.metrics-section {
    background: var(--bg-tertiary);
    padding: 15px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.metrics-section h3 {
    font-size: 1.1em;
    margin-bottom: 15px;
    color: var(--accent-primary);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
}

.metric-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(58, 58, 72, 0.3);
}

.metric-row:last-child {
    border-bottom: none;
}

.metric-label {
    font-size: 0.9em;
    color: var(--text-secondary);
}

.metric-value {
    font-size: 1.1em;
    font-weight: 600;
    color: var(--text-primary);
}

.filter-breakdown-list {
    max-height: 200px;
    overflow-y: auto;
}

.filter-breakdown-list .metric-row {
    padding: 6px 0;
}

.filter-breakdown-list .empty-state {
    padding: 20px;
    text-align: center;
}

/* Filter breakdown */
.filter-breakdown {
    margin-top: 15px;
}

.filter-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: var(--bg-tertiary);
    border-radius: 6px;
    margin-bottom: 10px;
}

.filter-name {
    font-weight: 500;
}

.filter-count {
    color: var(--text-secondary);
    font-size: 0.9em;
}

.filter-bar {
    flex: 1;
    height: 8px;
    background: var(--bg-primary);
    border-radius: 4px;
    margin: 0 15px;
    overflow: hidden;
}

.filter-bar-fill {
    height: 100%;
    background: var(--accent-primary);
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* Settings */
.info-message {
    background: var(--bg-tertiary);
    border-left: 4px solid var(--info);
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 20px;
    color: var(--text-secondary);
}

.config-display {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 20px;
}

.config-display pre {
    color: var(--text-primary);
    overflow-x: auto;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9em;
    line-height: 1.5;
}

.settings-actions {
    display: flex;
    gap: 15px;
}

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

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    max-width: 800px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2em;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--text-primary);
}

#evaluation-details {
    margin-top: 20px;
}

.eval-section {
    margin-bottom: 20px;
}

.eval-section h3 {
    color: var(--accent-primary);
    margin-bottom: 10px;
}

.eval-item {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    background: var(--bg-tertiary);
    border-radius: 4px;
    margin-bottom: 8px;
}

.eval-pass {
    color: var(--success);
    font-weight: 600;
}

.eval-fail {
    color: var(--danger);
    font-weight: 600;
}

/* Toast notifications */
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px 20px;
    min-width: 300px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideIn 0.3s ease;
}

.toast.success {
    border-left: 4px solid var(--success);
}

.toast.error {
    border-left: 4px solid var(--danger);
}

.toast.warning {
    border-left: 4px solid var(--warning);
}

.toast.info {
    border-left: 4px solid var(--info);
}

.toast-icon {
    font-size: 1.5em;
}

.toast-message {
    flex: 1;
}

.toast-close {
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 1.2em;
}

.toast-close:hover {
    color: var(--text-primary);
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Empty states */
.empty-state {
    color: var(--text-secondary);
    font-style: italic;
    text-align: center;
}

/* Health Tab Styles */
.health-overview {
    background: var(--bg-secondary);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.health-status-card {
    background: var(--bg-tertiary);
    padding: 25px;
    border-radius: 8px;
    border: 2px solid var(--border-color);
}

.health-status-main {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 20px;
}

.health-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
}

.health-badge {
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 1.3em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.health-badge.status-healthy {
    background: var(--success);
    color: white;
}

.health-badge.status-degraded {
    background: var(--warning);
    color: white;
}

.health-badge.status-unhealthy {
    background: var(--danger);
    color: white;
}

.health-badge.status-unknown {
    background: var(--text-secondary);
    color: white;
}

.health-details-text {
    text-align: center;
    font-size: 1.1em;
    color: var(--text-primary);
    padding: 15px;
    background: var(--bg-primary);
    border-radius: 6px;
    border-left: 4px solid var(--accent-primary);
}

.health-timestamp {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.9em;
}

.health-metrics {
    background: var(--bg-secondary);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.health-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.health-metric-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.health-metric-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.health-metric-card .metric-icon {
    font-size: 2.5em;
    line-height: 1;
}

.health-metric-card .metric-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.health-metric-card .metric-label {
    font-size: 0.85em;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.health-metric-card .metric-value {
    font-size: 1.3em;
    font-weight: 600;
    color: var(--text-primary);
}

/* Health status colors */
.status-warning {
    color: var(--warning);
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    header h1 {
        font-size: 1.5em;
    }
    
    .status-bar {
        grid-template-columns: 1fr 1fr;
    }
    
    .controls {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    table {
        font-size: 0.85em;
    }
    
    th, td {
        padding: 8px;
    }
}

@media (max-width: 480px) {
    .status-bar {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .tabs {
        overflow-x: auto;
    }

    .tab-button {
        font-size: 0.9em;
        padding: 10px 16px;
    }
}

/* Entry Criteria Cells */
.criteria-cell {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 4px 6px;
    border-radius: 4px;
    min-width: 80px;
    background: var(--bg-tertiary);
    white-space: nowrap;
}

.criteria-cell.passed {
    border-left: 2px solid var(--success-color);
    background: rgba(76, 175, 80, 0.1);
}

.criteria-cell.close {
    border-left: 2px solid #ff9800;
    background: rgba(255, 152, 0, 0.1);
}

.criteria-cell.not-passed {
    border-left: 2px solid var(--danger-color);
    background: rgba(244, 67, 54, 0.1);
}

.criteria-icon {
    font-size: 0.95em;
    font-weight: bold;
    float: right;
    margin-left: 4px;
}

.criteria-cell.passed .criteria-icon {
    color: var(--success-color);
}

.criteria-cell.close .criteria-icon {
    color: #ff9800;
}

.criteria-cell.not-passed .criteria-icon {
    color: var(--danger-color);
}

.criteria-value {
    font-size: 0.8em;
    color: var(--text-primary);
    font-weight: 500;
}

.criteria-progress {
    width: 100%;
    height: 3px;
    background: var(--bg-secondary);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 2px;
}

.criteria-progress-bar {
    height: 100%;
    transition: width 0.3s ease;
    border-radius: 2px;
}

.criteria-cell.passed .criteria-progress-bar {
    background: linear-gradient(90deg, var(--success-color), #66bb6a);
}

.criteria-cell.close .criteria-progress-bar {
    background: linear-gradient(90deg, #ff9800, #ffb74d);
}

.criteria-cell.not-passed .criteria-progress-bar {
    background: linear-gradient(90deg, var(--danger-color), #ef5350);
}

.time-badge {
    display: inline-block;
    padding: 2px 8px;
    background: var(--bg-tertiary);
    border-radius: 10px;
    font-size: 0.8em;
    font-weight: 500;
    color: var(--accent-color);
    border: 1px solid var(--border-color);
    white-space: nowrap;
}

/* Mint Address Link */
.mint-link {
    color: #64b5f6;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-block;
}

.mint-link:hover {
    color: #90caf9;
    text-decoration: none;
}

.mint-link code {
    font-size: 0.75em;
    padding: 2px 6px;
    background: rgba(100, 181, 246, 0.12);
    border-radius: 3px;
    border: 1px solid rgba(100, 181, 246, 0.3);
    transition: all 0.2s ease;
    color: #90caf9;
    font-weight: 500;
    white-space: nowrap;
}

.mint-link:hover code {
    background: rgba(100, 181, 246, 0.2);
    border-color: #64b5f6;
    color: #bbdefb;
    box-shadow: 0 0 8px rgba(100, 181, 246, 0.3);
}

/* ==============================================
   Wallet Management Section
   ============================================== */
.wallet-management {
    margin-top: 2rem;
}

.wallet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.wallet-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 1.5rem;
    color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.wallet-card h3 {
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
    opacity: 0.9;
}

.wallet-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.wallet-info:last-child {
    margin-bottom: 0;
}

.wallet-info .label {
    font-size: 0.9rem;
    opacity: 0.8;
}

.wallet-info .value {
    font-weight: bold;
    font-size: 1.1rem;
}

.wallet-info .value.address {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    cursor: help;
}

.wallet-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ==============================================
   Transfer Modal
   ============================================== */
.transfer-modal {
    max-width: 500px;
}

.transfer-form {
    margin-top: 1.5rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.form-group input[type="number"] {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1.1rem;
    transition: border-color 0.3s;
}

.form-group input[type="number"]:focus {
    outline: none;
    border-color: #667eea;
}

.form-hint {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #666;
}

.error-message {
    padding: 0.75rem;
    background-color: #fee;
    border: 1px solid #fcc;
    border-radius: 6px;
    color: #c33;
    margin-bottom: 1rem;
}

.success-message {
    padding: 0.75rem;
    background-color: #efe;
    border: 1px solid #cfc;
    border-radius: 6px;
    color: #3c3;
    margin-bottom: 1rem;
}

.success-message a {
    color: #3c3;
    text-decoration: underline;
}

.success-message a:hover {
    color: #2a2;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

.modal-actions .btn {
    flex: 1;
    max-width: 200px;
}

/* Remove spinners from number input */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
}

/* ==============================================
   Execution Status Panel
   ============================================== */
.execution-status-panel {
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    display: none;
    animation: slideDown 0.3s ease;
}

.execution-status-panel.active {
    display: block;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.execution-status-panel h3 {
    color: var(--accent-primary);
    margin-bottom: 15px;
    font-size: 1.3em;
}

/* Connection Indicator */
.connection-indicator {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
    animation: pulse 2s infinite;
}

.connection-indicator.connected {
    background: var(--success);
}

.connection-indicator.disconnected {
    background: var(--danger);
    animation: none;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.status-queued {
    background: rgba(100, 181, 246, 0.2);
    color: #64b5f6;
    border: 1px solid #64b5f6;
}

.status-submitted {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
    border: 1px solid #ffc107;
    animation: pulse-status 1.5s infinite;
}

.status-confirmed {
    background: rgba(76, 175, 80, 0.2);
    color: var(--success);
    border: 1px solid var(--success);
}

.status-failed {
    background: rgba(244, 67, 54, 0.2);
    color: var(--danger);
    border: 1px solid var(--danger);
}

@keyframes pulse-status {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.4);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(255, 193, 7, 0);
    }
}

/* Transaction Details */
.transaction-details {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 15px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(58, 58, 72, 0.3);
    font-size: 0.95em;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-row .label {
    color: var(--text-secondary);
    font-weight: 500;
    flex: 0 0 150px;
}

.detail-row .value {
    color: var(--text-primary);
    font-weight: 600;
    flex: 1;
    text-align: right;
    word-break: break-all;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9em;
}

.detail-row .value.address {
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: help;
}

.detail-row .value.link {
    color: #64b5f6;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s ease;
}

.detail-row .value.link:hover {
    color: #90caf9;
    text-decoration: underline;
}

.detail-row .value.pnl-positive {
    color: var(--success);
}

.detail-row .value.pnl-negative {
    color: var(--danger);
}

/* Event Timeline */
.event-timeline {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 15px;
}

.event-timeline h4 {
    color: var(--accent-primary);
    margin-bottom: 12px;
    font-size: 1.1em;
}

.timeline-events {
    max-height: 300px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.timeline-event {
    display: flex;
    gap: 10px;
    padding: 8px;
    background: var(--bg-secondary);
    border-left: 3px solid var(--accent-primary);
    border-radius: 4px;
    font-size: 0.9em;
}

.timeline-event.buy-submitted {
    border-left-color: #64b5f6;
}

.timeline-event.buy-confirmed {
    border-left-color: var(--success);
}

.timeline-event.buy-failed {
    border-left-color: var(--danger);
}

.timeline-event.sell-queued {
    border-left-color: #ffc107;
}

.timeline-event.sell-submitted {
    border-left-color: #ffc107;
}

.timeline-event.sell-confirmed {
    border-left-color: var(--success);
}

.timeline-event.sell-failed {
    border-left-color: var(--danger);
}

.timeline-event .event-type {
    font-weight: 600;
    color: var(--accent-primary);
    flex: 0 0 120px;
    text-transform: uppercase;
    font-size: 0.8em;
    letter-spacing: 0.5px;
}

.timeline-event .event-time {
    color: var(--text-secondary);
    font-size: 0.85em;
    flex: 0 0 80px;
    text-align: right;
}

.timeline-event .event-data {
    color: var(--text-secondary);
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Error Message */
.execution-error {
    background: rgba(239, 68, 68, 0.1);
    border: 2px solid var(--danger);
    border-radius: 6px;
    padding: 12px;
    color: var(--danger);
    margin-top: 15px;
    display: none;
    animation: slideDown 0.3s ease;
}

.execution-error.active {
    display: block;
}

.execution-error strong {
    font-weight: 600;
}

/* Responsive adjustments for execution status panel */
@media (max-width: 768px) {
    .execution-status-panel {
        padding: 15px;
    }

    .detail-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .detail-row .label {
        flex: none;
    }

    .detail-row .value {
        text-align: left;
        width: 100%;
    }

    .timeline-events {
        max-height: 250px;
    }
}

@media (max-width: 480px) {
    .execution-status-panel {
        padding: 10px;
    }

    .status-badge {
        font-size: 0.75em;
        padding: 4px 8px;
    }

    .timeline-event {
        flex-direction: column;
        gap: 5px;
    }

    .timeline-event .event-type,
    .timeline-event .event-time {
        flex: none;
        text-align: left;
    }
}
