/* Binance Section Styles */
.binance-container {
    padding: 1rem;
}

.binance-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, rgba(247, 147, 26, 0.1) 0%, rgba(247, 154, 26, 0.05) 100%);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(247, 147, 26, 0.2);
}

.binance-header h2 {
    font-size: 1.5rem;
    margin: 0;
    color: #f7931a;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.status-display {
    display: flex;
    align-items: center;
}

.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

.status-indicator.connected {
    background: rgba(0, 255, 136, 0.2);
    color: #00FF88;
}

.status-indicator.disconnected {
    background: rgba(255, 59, 48, 0.2);
    color: #FF3B30;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* Binance Tabs */
.binance-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
}

.binance-tab-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    position: relative;
}

.binance-tab-btn.active {
    color: #00FF88;
}

.binance-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1.05rem;
    left: 0;
    right: 0;
    height: 2px;
    background: #00FF88;
}

.binance-tab-btn:hover:not(.active) {
    color: white;
}

.binance-tab-content {
    display: none;
}

.binance-tab-content.active {
    display: block;
}

/* Settings Grid */
.settings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

@media (max-width: 768px) {
    .settings-grid {
        grid-template-columns: 1fr;
    }
}

.settings-card {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1.5rem;
}

.settings-card h3 {
    color: #00FF88;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Form Elements */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group select {
    width: 100%;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    font-family: 'JetBrains Mono', monospace;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #00FF88;
    box-shadow: 0 0 0 2px rgba(0, 255, 136, 0.2);
}

.help-text {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 0.25rem;
}

/* IP Display */
.ip-display {
    background: rgba(0, 0, 0, 0.5);
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    border: 1px solid rgba(0, 255, 136, 0.3);
}

.ip-display .label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.ip-display .ip-address {
    color: #00FF88;
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.copy-btn {
    background: rgba(0, 255, 136, 0.2);
    border: 1px solid #00FF88;
    color: #00FF88;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.copy-btn:hover {
    background: rgba(0, 255, 136, 0.3);
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.2);
    transition: .4s;
    border-radius: 34px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 24px;
    width: 24px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: #00FF88;
}

input:checked + .toggle-slider:before {
    transform: translateX(30px);
}

/* Risk Slider */
.risk-slider {
    width: 100%;
    margin: 1rem 0;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
    opacity: 0.7;
    transition: opacity 0.2s;
    border-radius: 3px;
}

.risk-slider:hover {
    opacity: 1;
}

.risk-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: #00FF88;
    cursor: pointer;
    border-radius: 50%;
}

.risk-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #00FF88;
    cursor: pointer;
    border-radius: 50%;
}

/* Account Info Card */
.account-info-card {
    background: rgba(0, 255, 136, 0.05);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1rem;
}

.account-info-card h4 {
    color: #00FF88;
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
    font-family: 'Orbitron', monospace;
}

.account-info-card .info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.account-info-card .info-row:last-child {
    border-bottom: none;
}

.account-info-card .info-row .label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.account-info-card .info-row .value {
    color: #fff;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.95rem;
    text-align: right;
}

.risk-value {
    display: flex;
    justify-content: space-between;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, #00FF88 0%, #00D4FF 100%);
    color: #0A0A0B;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 255, 136, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #00FF88;
    border: 1px solid #00FF88;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-secondary:hover {
    background: rgba(0, 255, 136, 0.1);
}

/* Alert Messages */
.alert {
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    display: none;
}

.alert.show {
    display: block;
}

.alert.success {
    background: rgba(0, 255, 136, 0.2);
    border: 1px solid #00FF88;
    color: #00FF88;
}

.alert.error {
    background: rgba(255, 59, 48, 0.2);
    border: 1px solid #FF3B30;
    color: #FF3B30;
}

.alert.warning {
    background: rgba(255, 149, 0, 0.2);
    border: 1px solid #FF9500;
    color: #FF9500;
}

/* Portfolio Stats */
.portfolio-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.stat-card {
    background: rgba(0, 0, 0, 0.3);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-card .label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

.stat-card .value {
    color: white;
    font-size: 1.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
}

.stat-card .value.positive {
    color: #00FF88;
}

.stat-card .value.negative {
    color: #FF3B30;
}