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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 100%;
}

h1 {
    text-align: center;
    color: #333;
    margin-bottom: 20px;
    font-size: 24px;
}

.chart-container {
    margin-bottom: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    height: 300px;
}

#chart {
    width: 100%;
    height: 100%;
}

.price-container {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

.price-label {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}

.price {
    font-size: 48px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
}

.open-btn {
    background: #667eea;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
    transition: background 0.3s;
    min-width: 200px;
}

.open-btn:hover {
    background: #5568d3;
}

.open-btn:active {
    background: #4557c2;
}

.open-btn.close {
    background: #ff6b6b;
}

.open-btn.close:hover {
    background: #ee5a5a;
}

.open-btn.close:active {
    background: #dd4949;
}

.balance {
    margin-top: 15px;
    font-size: 24px;
    font-weight: 700;
    color: #333;
    padding: 10px;
    background: white;
    border-radius: 8px;
}

.change {
    font-size: 18px;
    font-weight: 500;
}

.change.up {
    color: #d94f4f;
}

.change.down {
    color: #3b82f6;
}

.info {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 5px;
}

.label {
    color: #666;
    font-weight: 500;
}

.status {
    text-align: center;
    padding: 10px;
    background: #e3f2fd;
    border-radius: 5px;
    color: #1976d2;
    font-size: 14px;
}

.status.connected {
    background: #e8f5e9;
    color: #2e7d32;
}

.status.error {
    background: #ffebee;
    color: #c62828;
}
