/* css/backend-terminal.css */
/* Styles adapted from Backend.html to create the terminal modal */

/* Style for the new trigger panel that replaces the old winners/payout panels */
.activity-log-trigger {
    cursor: pointer;
    transition: border-color 0.2s ease-out, box-shadow 0.2s ease-out;
}
.activity-log-trigger:hover {
    border-color: var(--primary-green-bright);
    box-shadow: 0 0 10px var(--primary-green-glow);
}

/* Main Terminal Styles */
.terminal-container {
    width: 95%;
    height: 95%;
    max-width: 1400px;
    background: radial-gradient(ellipse at center, #001100 0%, #000000 70%);
    position: relative;
    border: 2px solid #00ff41;
    display: flex;
    flex-direction: column;
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 14px;
}

.terminal-header {
    background: linear-gradient(135deg, #001a00 0%, #003300 100%);
    padding: 15px 25px;
    border-bottom: 2px solid #00ff41;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 0 20px #00ff4130;
    flex-shrink: 0;
}

.terminal-dots {
    display: flex;
    gap: 10px;
}

.dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1px solid #00ff41;
}

.dot.red { background: #ff3333; box-shadow: 0 0 10px #ff3333; cursor: pointer; }
.dot.yellow { background: #ffaa00; box-shadow: 0 0 10px #ffaa00; }
.dot.green { background: #00ff41; box-shadow: 0 0 10px #00ff41; }

.terminal-title {
    color: #00ff41;
    font-weight: 500;
    font-size: 18px;
    text-shadow: 0 0 10px #00ff4150;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.terminal-body {
    padding: 25px;
    flex-grow: 1;
    overflow-y: auto;
    background: linear-gradient(135deg, #000000 0%, #001a00 100%);
    border: 1px solid #00ff4120;
    margin: 2px;
    scrollbar-width: thin;
    scrollbar-color: #00ff41 #001a00;
}

.terminal-body::-webkit-scrollbar { width: 8px; }
.terminal-body::-webkit-scrollbar-track { background: #001a00; }
.terminal-body::-webkit-scrollbar-thumb { background-color: #00ff41; border-radius: 4px; border: 1px solid #00ff00; }


.ascii-art {
    color: #00ff41;
    text-align: center;
    margin-bottom: 30px;
    font-size: 24px;
    line-height: 1.4;
    text-shadow: 0 0 15px #00ff4180;
    border: 2px solid #00ff4130;
    padding: 20px;
    background: rgba(0, 255, 65, 0.05);
    border-radius: 8px;
    font-weight: bold;
    letter-spacing: 2px;
}

.ascii-subtitle {
    font-size: 14px;
    color: #666;
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: none;
}

.log-line {
    margin: 8px 0;
    opacity: 0;
    transform: translateX(-20px);
    animation: slideIn 0.3s ease-out forwards;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 5px 0;
    border-left: 2px solid transparent;
    transition: background-color 0.2s, border-left-color 0.2s;
}

.log-line:hover {
    border-left: 2px solid #00ff41;
    background: rgba(0, 255, 65, 0.05);
}

.timestamp {
    color: #666; /* Dim color */
    font-size: 12px;
    min-width: 120px; /* Adjust as needed to align your logs */
    font-family: monospace;
}

.level {
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    min-width: 60px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid;
}

.level.info { background: rgba(0, 255, 65, 0.1); color: #00ff41; border-color: #00ff41; }
.level.success { background: rgba(0, 255, 0, 0.1); color: #00ff00; border-color: #00ff00; }
.level.warning { background: rgba(255, 170, 0, 0.1); color: #ffaa00; border-color: #ffaa00; }
.level.process { background: rgba(0, 153, 255, 0.1); color: #0099ff; border-color: #0099ff; }
.level.error { background: rgba(255, 51, 51, 0.1); color: #ff3333; border-color: #ff3333; }

.message { flex: 1; word-break: break-word; }
.highlight { color: #00ff00; text-shadow: 0 0 5px #00ff0050; }
.address { color: #0099ff; font-weight: 500; }
.amount { color: #ffaa00; font-weight: 500; }
.cursor { display: none; width: 10px; height: 20px; background: #00ff41; animation: blink 1s infinite; margin-left: 5px; }

@keyframes slideIn { to { opacity: 1; transform: translateX(0); } }
@keyframes blink { 0%, 50% { opacity: 1; } 51%, 100% { opacity: 0; } }

/* Tweet & Transfer Preview styles (for dynamic logging later) */
.tweet-preview { background: linear-gradient(135deg, #001a00 0%, #002200 100%); border: 2px solid #00ff41; border-radius: 8px; padding: 20px; margin: 15px 0; color: #ccc; position: relative; overflow: hidden; box-shadow: 0 0 20px rgba(0, 255, 65, 0.3); }
.tweet-header { display: flex; align-items: center; gap: 12px; margin-bottom: 15px; padding-bottom: 10px; border-bottom: 1px solid #00ff4130; }
.profile-pic { width: 48px; height: 48px; border-radius: 50%; border: 2px solid #00ff41; box-shadow: 0 0 15px rgba(0, 255, 65, 0.5); background-image: url('../public/hatch-logo.png'); background-size: cover; background-position: center;}
.tweet-user-info { flex: 1; }
.tweet-username { color: #00ff41; font-weight: bold; font-size: 16px; }
.tweet-handle { color: #666; font-size: 14px; }
.tweet-content { font-size: 15px; line-height: 1.6; color: #e0e0e0; }

.public-key-highlight, .ca-highlight { padding: 2px 4px; border-radius: 3px; display: inline-block; border: 1px solid #00ff4150; }
.public-key-highlight { background: #00ff4120; }
.ca-highlight { background: #ffaa0020; border-color: #ffaa0050; }

.transfer-animation { background: linear-gradient(135deg, #001a00 0%, #002200 100%); border: 2px solid #00ff41; border-radius: 10px; padding: 25px; margin: 20px 0; text-align: center; position: relative; overflow: hidden; box-shadow: 0 0 30px rgba(0, 255, 65, 0.4); }
.transfer-title { color: #00ff41; font-size: 18px; font-weight: bold; margin-bottom: 20px; text-shadow: 0 0 15px #00ff4150; text-transform: uppercase; letter-spacing: 1px; border-bottom: 1px solid #00ff4130; padding-bottom: 10px; }
.sol-animation { display: flex; align-items: center; justify-content: center; gap: 30px; margin: 25px 0; }
.wallet-box { border: 2px solid #00ff41; border-radius: 8px; padding: 20px; background: rgba(0, 255, 65, 0.05); min-width: 180px; box-shadow: 0 0 15px rgba(0, 255, 65, 0.2); }
.wallet-label { color: #999; font-size: 12px; text-transform: uppercase; margin-bottom: 8px; }
.wallet-address { color: #00ff41; font-weight: bold; margin: 8px 0; word-break: break-all; font-size: 13px; }
.wallet-balance { color: #ffaa00; font-size: 14px; font-weight: 500; }
.transfer-arrow { color: #00ff41; font-size: 20px; animation: pulse 1.5s infinite; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.transfer-amounts { display: flex; flex-direction: column; gap: 8px; }
.sol-amount, .hatch-amount { font-size: 16px; font-weight: bold; border: 1px solid; padding: 4px 12px; border-radius: 4px; }
.sol-amount {
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    border-color: #ffaa00;
    background-color: rgba(255, 170, 0, 0.1);
    background-image: linear-gradient(45deg, #ffaa00, #ff6600);
}
.hatch-amount {
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    border-color: #00ff41;
    background-color: rgba(0, 255, 65, 0.1);
    background-image: linear-gradient(45deg, #00ff41, #00cc33);
}
.transaction-hash { background: #2a2a2a; border: 1px solid #00ff4150; border-radius: 5px; padding: 10px; margin: 10px 0; font-size: 12px; color: #00ff41; text-align: center; word-break: break-all; }
.status-indicator { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #00ff41; animation: pulse 2s infinite; margin-right: 10px; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }