/* 全局样式 */
body {
    background-color: #f8f9fa;
    font-family: 'Arial', sans-serif;
}

.container {
    max-width: 800px;
}

/* 卡片样式 */
.card {
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: none;
}

/* 表单样式 */
.form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* 多级卖出配置样式 */
.level-card {
    border-left: 4px solid #0d6efd;
    transition: all 0.3s ease;
}

.level-card:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* 按钮样式 */
.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

.btn-outline-danger {
    color: #dc3545;
    border-color: #dc3545;
}

.btn-outline-danger:hover {
    background-color: #dc3545;
    color: white;
}

/* 模态框优化样式 */
.modal-dialog {
    margin: 1.75rem auto;
}

.modal-lg {
    max-width: 800px;
}

.modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.modal-header {
    border-radius: 12px 12px 0 0;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #e9ecef;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    border-radius: 0 0 12px 12px;
    padding: 1rem 1.5rem;
    border-top: 1px solid #e9ecef;
}

/* 私钥输入框样式优化 */
#privateKeyInput {
    resize: vertical;
    min-height: 100px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

#privateKeyInput:focus {
    border-color: #ffc107;
    box-shadow: 0 0 0 0.25rem rgba(255, 193, 7, 0.25);
}

/* 安全提醒样式 */
.alert-warning {
    background-color: #fff3cd;
    border-color: #ffeaa7;
    color: #856404;
}

.alert-warning .alert-heading {
    color: #856404;
    font-weight: 600;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .level-card .row {
        flex-direction: column;
    }
    
    .level-card .col-md-2 {
        margin-top: 15px;
    }
    
    .remove-level-btn {
        width: 100%;
    }
    
    /* 移动端模态框调整 */
    .modal-dialog {
        margin: 0.5rem;
        max-width: calc(100% - 1rem);
    }
    
    .modal-lg {
        max-width: calc(100% - 1rem);
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .modal-header,
    .modal-footer {
        padding: 1rem;
    }
    
    /* 移动端表单调整 */
    .row .col-md-8,
    .row .col-md-4 {
        margin-bottom: 1rem;
    }
}

/* 暗色模式支持 */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #212529;
        color: #f8f9fa;
    }
    
    .card {
        background-color: #343a40;
        border-color: #495057;
    }
    
    .card-header {
        background-color: #343a40;
    }
    
    .form-control {
        background-color: #495057;
        border-color: #6c757d;
        color: #f8f9fa;
    }
    
    .input-group-text {
        background-color: #495057;
        border-color: #6c757d;
        color: #f8f9fa;
    }
    
    .text-muted {
        color: #adb5bd !important;
    }
}
