/* =======================================================================
   ETH Bot Pro Dark Theme - style.css
   ======================================================================= */

:root {
    --bg-main: #0b0e11;
    --bg-card: #181a20;
    --bg-input: #2b3139;
    --text-main: #eaecef;
    --text-muted: #848e9c;
    --primary: #f0b90b;   /* Binance Yellow */
    --success: #02c076;   /* Crypto Green */
    --danger: #cf304a;    /* Crypto Red */
    --border: #2b2f36;
}

/* --- 1. BASE STYLES --- */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    margin: 0;
    padding: 20px;
    line-height: 1.5;
}

.container {
    max-width: 1300px;
    margin: auto;
}

/* --- 2. GRID SYSTEM --- */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
    align-items: start;
}

.market-info { grid-column: 1 / 3; }
.account-section { grid-column: 3 / 4; display: flex; flex-direction: column; gap: 16px; }
.create-strategy { grid-column: 1 / 2; }
.active-strategies { grid-column: 2 / 3; }
.token-list { grid-column: 3 / 4; }
.trading-history { grid-column: 1 / 4; }

/* --- 3. CARDS --- */
.card {
    background-color: var(--bg-card);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.card h2 {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    margin: 0 0 15px 0;
    letter-spacing: 1px;
}

/* --- 4. PRICE & CHART --- */
.price-display {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 10px;
}

.price-display h1 {
    font-size: 32px;
    color: var(--success);
    margin: 0;
}

.symbol-label {
    color: var(--text-muted);
    font-size: 14px;
}

.chart-container {
    height: 250px;
    width: 100%;
    background-color: #181a20;
    border-radius: 8px;
    overflow: hidden; /* Penting agar grafik tetap di dalam kotak */
}

/* --- 5. WALLET UI --- */
.wallet-text { font-size: 13px; margin: 5px 0; }
.user-assets-brief {
    margin-top: 15px;
    font-size: 13px;
    border-top: 1px solid var(--border);
    padding-top: 10px;
}

#connect-wallet-btn {
    background: var(--primary);
    width: 100%;
    color: black;
    border-radius: 6px;
    padding: 10px;
    font-weight: bold;
    cursor: pointer;
    border: none;
    transition: 0.2s;
}

#connect-wallet-btn:hover { background: #fcd535; }

#logout-wallet-btn {
    background: var(--bg-input);
    width: 100%;
    color: var(--text-muted);
    border-radius: 4px;
    padding: 8px;
    margin-top: 10px;
    cursor: pointer;
    border: 1px solid var(--border);
}

/* --- 6. FORMS & INPUTS --- */
.form-group { margin-bottom: 12px; }
.form-group label {
    font-size: 12px;
    color: var(--text-muted);
    display: block;
    margin-bottom: 5px;
}

.form-group input, .form-group select {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border);
    padding: 10px;
    border-radius: 6px;
    color: white;
    box-sizing: border-box;
    font-size: 14px;
}

.form-group input:focus { border-color: var(--primary); outline: none; }

.btn-primary {
    background: var(--primary);
    color: black;
    width: 100%;
    padding: 12px;
    font-weight: bold;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    margin-top: 10px;
}

/* --- 7. LISTS & CONTAINERS --- */
.list-container {
    max-height: 380px;
    overflow-y: auto;
    padding-right: 8px;
}

.token-item, .strategy-item, .trade-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 6px;
    border-bottom: 1px solid var(--border);
    transition: background 0.2s;
    border-radius: 6px;
}

.token-item:hover, .strategy-item:hover { background: rgba(255, 255, 255, 0.03); }

.token-symbol { color: var(--primary); font-weight: bold; }
.empty-msg { font-size: 12px; color: var(--text-muted); text-align: center; padding: 20px; }

/* Status Colors */
.status.executed { color: var(--success); font-weight: bold; }
.status.active { color: var(--primary); }
.status.error { color: var(--danger); }

/* Strategy Buttons */
.execute-now-btn {
    background: var(--success);
    color: white;
    border: none;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 11px;
    cursor: pointer;
    margin-right: 5px;
}

.delete-btn {
    background: #3b3d42;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 11px;
    cursor: pointer;
}

.delete-btn:hover { background: var(--danger); }

/* --- 8. CUSTOM SCROLLBAR --- */
.list-container::-webkit-scrollbar { width: 4px; }
.list-container::-webkit-scrollbar-track { background: transparent; }
.list-container::-webkit-scrollbar-thumb { background: var(--border); border-radius: 10px; }
.list-container::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* --- 9. MODAL & UI --- */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0; top: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(4px);
}

.modal-content {
    background: var(--bg-card);
    margin: 15% auto;
    padding: 25px;
    border-radius: 16px;
    width: 320px;
    text-align: center;
    border: 1px solid var(--border);
}

.wallet-option {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
    padding: 15px;
    margin: 12px 0;
    background: var(--bg-input);
    color: white;
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    transition: 0.2s;
}

.wallet-option:hover { border-color: var(--primary); background: #323842; }

.btn-cancel {
    background: transparent;
    color: var(--text-muted);
    border: none;
    margin-top: 10px;
    cursor: pointer;
    font-size: 13px;
}

/* --- 10. NOTIFICATIONS --- */
.notification-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 3000;
}

.notification {
    background: var(--bg-card);
    border-left: 4px solid var(--primary);
    color: white;
    padding: 15px 20px;
    margin-top: 10px;
    border-radius: 4px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.5);
    font-size: 13px;
    animation: slideIn 0.3s ease-out forwards;
}

@keyframes slideIn { from { transform: translateX(120%); } to { transform: translateX(0); } }
.fadeout { opacity: 0; transition: opacity 0.5s; }

/* --- 11. RESPONSIVE --- */
@media (max-width: 1000px) {
    .dashboard-grid { grid-template-columns: 1fr; }
    .market-info, .account-section, .create-strategy, .active-strategies, .token-list, .trading-history {
        grid-column: 1 / 2;
    }
}

.token-item {
    cursor: pointer;
    transition: all 0.2s;
}

.token-item:active {
    background: var(--primary) !important;
    color: black !important;
}

.token-item:hover {
    background: rgba(240, 185, 11, 0.1); /* Warna kuning transparan */
}

/* Toolbar Styling */
.chart-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 15px;
}

.interval-group, .toggle-group {
    display: flex;
    gap: 5px;
}

.t-btn {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-muted);
    font-size: 11px;
    padding: 4px 8px;
    cursor: pointer;
    border-radius: 4px;
    transition: 0.2s;
}

.t-btn:hover {
    background: var(--bg-input);
    color: var(--text-main);
}

.t-btn.active {
    background: var(--bg-input);
    color: var(--primary);
    border-color: var(--border);
}

/* Rapikan Price Display */
.price-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}