/* Polymarket Web应用样式 */

/* 全局样式 */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f8f9fa;
}

/* 导航栏样式 */
.navbar-brand {
    font-weight: 600;
}

.navbar-nav .nav-link {
    font-weight: 500;
}

/* 卡片样式增强 */
.card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: box-shadow 0.15s ease-in-out;
}

.card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.card-header {
    background-color: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
}

/* 统计卡片样式 */
.card.text-white .card-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

/* 表格样式 */
.table {
    margin-bottom: 0;
}

.table th {
    border-top: none;
    font-weight: 600;
    color: #495057;
    background-color: #f8f9fa;
}

.table td {
    vertical-align: middle;
}

/* 状态徽章 */
.badge {
    font-size: 0.75em;
}

/* 状态指示器 */
.status-active {
    color: #198754;
    font-weight: 600;
}

.status-inactive {
    color: #dc3545;
    font-weight: 600;
}

.status-closed {
    color: #6c757d;
    font-weight: 600;
}

/* 价格样式 */
.price {
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    font-weight: 600;
}

.price-up {
    color: #198754;
}

.price-down {
    color: #dc3545;
}

/* 市场标题样式 */
.market-title {
    font-weight: 600;
    color: #212529;
    line-height: 1.3;
}

.market-title:hover {
    color: #0d6efd;
    text-decoration: none;
}

/* 分类标签 */
.category-badge {
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
    border-radius: 1rem;
}

.category-politics { background-color: #dc3545; }
.category-sports { background-color: #198754; }
.category-crypto { background-color: #fd7e14; }
.category-finance { background-color: #0d6efd; }
.category-other { background-color: #6c757d; }

/* 分页样式 */
.pagination {
    margin-bottom: 0;
}

.page-link {
    color: #0d6efd;
    border-color: #dee2e6;
}

.page-link:hover {
    color: #0a58ca;
    background-color: #e9ecef;
    border-color: #dee2e6;
}

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

/* 加载动画 */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* 搜索框样式 */
.search-container {
    position: relative;
}

.search-container .form-control {
    padding-left: 2.5rem;
}

.search-container .search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    z-index: 5;
}

/* 筛选器样式 */
.filter-section {
    background-color: #f8f9fa;
    border-radius: 0.375rem;
    padding: 1rem;
    margin-bottom: 1rem;
}

/* 按钮样式增强 */
.btn {
    font-weight: 500;
    border-radius: 0.375rem;
}

.btn-outline-primary:hover {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

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

.form-select:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container-fluid {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .card-body {
        padding: 1rem;
    }

    .table-responsive {
        font-size: 0.875rem;
    }

    .btn-group {
        flex-direction: column;
    }

    .btn-group .btn {
        margin-bottom: 0.5rem;
    }
}

/* 市场详情模态框样式 */
.modal-header {
    background-color: #0d6efd;
    color: white;
}

.modal-header .btn-close {
    filter: brightness(0) invert(1);
}

/* 导出按钮样式 */
.export-buttons {
    position: sticky;
    bottom: 1rem;
    background: white;
    padding: 1rem;
    border-radius: 0.375rem;
    box-shadow: 0 -0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

/* 工具提示样式 */
.tooltip {
    font-size: 0.875rem;
}

/* 进度条样式 */
.progress {
    height: 0.5rem;
}

/* 标签样式 */
.tag {
    display: inline-block;
    padding: 0.125rem 0.375rem;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1;
    color: #6c757d;
    background-color: #e9ecef;
    border-radius: 0.25rem;
    margin-right: 0.25rem;
    margin-bottom: 0.25rem;
}

/* 时间显示样式 */
.time-display {
    font-size: 0.875rem;
    color: #6c757d;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
}

/* 成功/错误状态样式 */
.success-message {
    color: #198754;
    background-color: #d1e7dd;
    border: 1px solid #badbcc;
    border-radius: 0.375rem;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
}

.error-message {
    color: #842029;
    background-color: #f8d7da;
    border: 1px solid #f5c2c7;
    border-radius: 0.375rem;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
}

/* 无数据状态样式 */
.no-data {
    text-align: center;
    padding: 3rem 1rem;
    color: #6c757d;
}

.no-data i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #dee2e6;
}

/* 设置页面特定样式 */
.settings-section {
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.settings-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.status-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 0.5rem;
}

.status-online { background-color: #198754; }
.status-offline { background-color: #dc3545; }
.status-warning { background-color: #ffc107; }

/* 打印样式 */
@media print {
    .no-print {
        display: none !important;
    }

    .table {
        font-size: 0.75rem;
    }

    .card {
        box-shadow: none;
        border: 1px solid #dee2e6;
    }
}