* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #0d1117;
    color: #c9d1d9;
    line-height: 1.6;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background: #161b22;
    border-radius: 8px;
    border: 1px solid #30363d;
}

h1 {
    color: #58a6ff;
    font-size: 28px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 30px;
}

.account-status {
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #6e7681;
}

.status-indicator.connected {
    background-color: #3fb950;
}

.status-indicator.disconnected {
    background-color: #f85149;
}

/* Toggle Container */
.toggle-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #30363d;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #3fb950;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

/* Sections */
section {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

h2 {
    color: #58a6ff;
    margin-bottom: 20px;
    font-size: 20px;
}

/* Buttons */
.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #238636;
    color: white;
}

.btn-primary:hover {
    background: #2ea043;
}

.btn-danger {
    background: #da3633;
    color: white;
}

.btn-danger:hover {
    background: #f85149;
}

.btn-secondary {
    background: #30363d;
    color: #c9d1d9;
}

.btn-secondary:hover {
    background: #484f58;
}

/* Tables */
.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

thead {
    background: #0d1117;
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #30363d;
}

th {
    color: #58a6ff;
    font-weight: 600;
}

tbody tr:hover {
    background: #1c2128;
}

.empty-message {
    text-align: center;
    color: #8b949e;
    font-style: italic;
}

/* PnL Colors */
.profit {
    color: #3fb950;
}

.loss {
    color: #f85149;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
}

.modal-content {
    background-color: #161b22;
    margin: 15% auto;
    padding: 30px;
    border: 1px solid #30363d;
    border-radius: 8px;
    width: 400px;
    max-width: 90%;
}

.modal-content h3 {
    color: #f85149;
    margin-bottom: 15px;
}

.modal-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    justify-content: flex-end;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    header {
        flex-direction: column;
        gap: 15px;
    }
    
    .header-right {
        flex-direction: column;
        gap: 15px;
    }
    
    table {
        font-size: 14px;
    }
    
    th, td {
        padding: 8px;
    }
}