/* Dashboard子页面专用样式 */

/* 通用卡片样式增强 */
.card {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    border: none;
}

.card-header {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.08), rgba(13, 110, 253, 0.04));
    border-bottom: 1px solid rgba(13, 110, 253, 0.15);
    border-radius: 0.5rem 0.5rem 0 0 !important;
    padding: 1.25rem 1.5rem;
}

.card-body {
    padding: 1.5rem;
}

/* 钱包页面样式 */
.bg-primary {
    background: linear-gradient(135deg, #0d6efd, #0a58ca) !important;
}

.bg-success {
    background: linear-gradient(135deg, #198754, #157347) !important;
}

.bg-info {
    background: linear-gradient(135deg, #0dcaf0, #0aa2c0) !important;
}

.bg-warning {
    background: linear-gradient(135deg, #ffc107, #e5ac00) !important;
}

/* 令牌页面样式 */
.code-example-container {
    position: relative;
    margin-top: 10px;
    min-height: 200px;
}

.code-example-container pre {
    background: #f8f9fa !important;
    border: 1px solid #e9ecef !important;
    padding: 15px !important;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.5;
    overflow-x: auto;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    min-height: 200px;
}

.code-example-container code {
    color: #495057 !important;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    background: transparent !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.tab-pane {
    padding: 1rem 0;
}

/* 强制显示选项卡内容 */
#python-example {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

#curl-example {
    display: none;
}

#curl-example.active {
    display: block !important;
}

/* 服务页面聊天样式增强 */
.chat-messages {
    height: 500px;
    overflow-y: auto;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    padding: 1rem;
    scrollbar-width: thin;
    scrollbar-color: #c1c1c1 #f1f1f1;
}

.message {
    display: flex;
    margin-bottom: 1rem;
    align-items: flex-start;
    max-width: 100%;
    animation: fadeInUp 0.3s ease-out;
}

.user-message {
    justify-content: flex-end;
}

.assistant-message {
    justify-content: flex-start;
}

.message-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin: 0 10px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.user-message .message-avatar {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    order: 2;
}

.assistant-message .message-avatar {
    background: linear-gradient(135deg, #28a745, #1e7e34);
    color: white;
    order: 1;
}

.message-content {
    max-width: 70%;
    word-wrap: break-word;
}

.user-message .message-content {
    order: 1;
    text-align: right;
}

.assistant-message .message-content {
    order: 2;
}

.message-text {
    background: white;
    padding: 12px 16px;
    border-radius: 18px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    position: relative;
    line-height: 1.4;
    word-break: break-word;
}

.user-message .message-text {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    margin-left: auto;
}

.assistant-message .message-text {
    background: white;
    color: #333;
    border: 1px solid #e9ecef;
}

/* 订单页面样式 */
.table {
    margin-bottom: 0;
}

.table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

.pagination .page-link {
    color: #0d6efd;
    background-color: #fff;
    border: 1px solid #dee2e6;
}

.pagination .page-item.active .page-link {
    background-color: #0d6efd;
    border-color: #0d6efd;
    color: #fff;
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
} 