:root {
    --bg-dark: #0f0f0f;
    --card-bg: #1a1a1a;
    --border-color: #2a2a2a;
    --text-main: #ffffff;
    --text-muted: #888888;
    --accent-green: #4ade80;
    --accent-red: #f87171;
    --accent-blue: #3b82f6;
    --accent-orange: #f97316;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif, -apple-system;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
}

.dashboard-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 60px;
    background-color: var(--bg-dark);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    position: fixed;
    height: 100%;
}

.icon-brand { color: var(--accent-green); margin-bottom: 30px; }
.nav-links { display: flex; flex-direction: column; gap: 25px; flex-grow: 1; color: var(--text-muted); }
.nav-links i:hover { color: white; cursor: pointer; }
.bottom-nav { display: flex; flex-direction: column; gap: 20px; color: var(--text-muted); padding-bottom: 20px; }
.user-avatar { width: 30px; height: 30px; background: #333; border-radius: 50%; display: flex; align-items: center; justify-content: center; }

/* Main Content */
.main-content {
    margin-left: 60px;
    padding: 24px;
    width: 100%;
    max-width: 1200px;
    margin-right: auto;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
}

.breadcrumb { color: var(--text-muted); font-size: 13px; margin-bottom: 4px; }
h1 { font-size: 24px; margin-bottom: 4px; }
.subtitle { color: var(--text-muted); font-size: 14px; }

.header-right { display: flex; gap: 10px; align-items: center; }
.status-badge { background: #064e3b; color: var(--accent-green); padding: 4px 12px; border-radius: 20px; font-size: 12px; }
.pair-badge { background: #1e3a8a; color: #93c5fd; padding: 4px 12px; border-radius: 20px; font-size: 12px; }
.mode-badge { color: var(--text-muted); font-size: 12px; }
.btn-create { background: #222; border: 1px solid #444; color: white; padding: 6px 14px; border-radius: 8px; cursor: pointer; }
.btn-share { background: white; color: black; border: none; padding: 6px 14px; border-radius: 8px; cursor: pointer; font-weight: 500; }

/* Summary Grid */
.summary-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--card-bg);
    padding: 16px;
    border-radius: 12px;
}

.stat-card label { color: var(--text-muted); font-size: 12px; display: block; margin-bottom: 8px; }
.stat-card .value { font-size: 20px; font-weight: 600; }

/* Table Section */
.table-container {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 8px;
    margin-bottom: 24px;
}

.strategy-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.strategy-table th { color: var(--text-muted); font-size: 12px; font-weight: normal; padding: 12px; border-bottom: 1px solid var(--border-color); text-transform: uppercase; }
.strategy-table td { padding: 12px; font-size: 14px; border-bottom: 1px solid #222; }

.row-best { background: rgba(74, 222, 128, 0.05); }
.row-best.active { border: 1px solid var(--accent-green); }

.progress-container { display: flex; align-items: center; gap: 10px; width: 100%; }
.progress-bar { height: 4px; border-radius: 2px; background: var(--accent-blue); }
.progress-bar.best { background: var(--accent-green); }
.progress-bar.losing { background: var(--accent-red); }
.status-tag { font-size: 11px; color: var(--text-muted); }

/* Details Section */
.detail-section {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 100px; /* Space for footer */
}

.detail-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.btn-copy { background: transparent; border: 1px solid #444; color: white; padding: 6px 12px; border-radius: 8px; font-size: 13px; }

.detail-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

.detail-card {
    background: rgba(255,255,255,0.03);
    padding: 12px;
    border-radius: 8px;
}

.detail-card label { color: var(--text-muted); font-size: 11px; display: block; margin-bottom: 4px; }
.detail-card p { font-size: 15px; font-weight: 500; }

.recent-deals { margin-top: 24px; }
.recent-deals .label { color: var(--text-muted); font-size: 12px; margin-bottom: 12px; }
.deal-cards { display: flex; gap: 12px; }
.deal-item {
    background: rgba(255,255,255,0.03);
    padding: 12px;
    border-radius: 8px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.deal-id { font-size: 13px; font-weight: 600; }
.deal-time { font-size: 11px; color: var(--text-muted); }

/* Footer Input Area */
.footer-input {
    position: fixed;
    bottom: 20px;
    left: 80px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.coin-selector {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 14px 20px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
}

.chat-bar {
    background: #252525;
    border: 1px solid #333;
    padding: 12px 20px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.model-name { font-size: 14px; color: var(--text-muted); display: flex; align-items: center; gap: 5px; }
.btn-send { background: var(--accent-orange); border: none; width: 32px; height: 32px; border-radius: 8px; color: white; display: flex; align-items: center; justify-content: center; }

/* Colors */
.positive { color: var(--accent-green); }
.negative { color: var(--accent-red); }