/* assets/css/custom.css (Final Version with All Fixes) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

body {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
}

/* **重要修复**: 恢复固定宽度并居中，保证两侧留白 */
.container-xl {
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
}

.table-responsive {
    overflow-x: auto;
}

.header-top {
    position: sticky;
    top: 0;
    z-index: 1020;
    backdrop-filter: saturate(180%) blur(5px);
    background-color: rgba(255, 255, 255, .8);
    border-bottom: 1px solid rgba(138, 155, 171, .2);
}

/* --- 表格排序箭头样式 (最终修复版，采用您提供的SVG) --- */
.table>thead>tr>th.sortable {
    cursor: pointer;
    position: relative;
    padding-right: 1.5rem !important;
}

.table>thead>tr>th.sortable::after {
    content: '';
    position: absolute;
    right: 0.5rem;
    top: 50%;
    width: 1rem;
    height: 1rem;
    transform: translateY(-50%);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' width='16' height='16' fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='1'%3e%3cpath d='M5 7l3 -3l3 3'/%3e%3cpath d='M5 10l3 3l3 -3'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 1rem;
    opacity: 0.3;
}

.table>thead>tr>th.sortable:hover::after {
    opacity: 0.6;
}

.table>thead>tr>th.sortable.asc::after,
.table>thead>tr>th.sortable.desc::after {
    opacity: 1;
}

.table>thead>tr>th.sortable.asc::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' width='16' height='16' fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='1'%3e%3cpath d='M5 7l3 -3l3 3'/%3e%3c/svg%3e");
}

.table>thead>tr>th.sortable.desc::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' width='16' height='16' fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='1'%3e%3cpath d='M5 10l3 3l3 -3'/%3e%3c/svg%3e");
}

/* 其他样式保持不变 */
.table-custom-hover tbody tr:hover {
    background-color: rgba(73, 163, 241, 0.1) !important;
}

.badge-buy {
    color: #1a8a6d;
    background-color: rgba(45, 206, 137, 0.1);
    border-color: #1a8a6d;
}

.badge-sell {
    color: #da5252;
    background-color: rgba(244, 67, 54, 0.1);
    border-color: #da5252;
}

.badge-buy,
.badge-sell {
    display: inline-block;
    padding: 0.35em 0.65em;
    font-size: .75em;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.375rem;
    width: 50px;
    border: 1px solid transparent;
}

.chart-sm {
    height: 2.5rem;
}


.radio-option {
    margin-right: 2px;
    position: relative;
    top: 2px;
}

.radio-options {
    display: flex;
    flex-wrap: nowrap;
    /* gap: 12px; */
}

.radio-option {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.radio-option:hover {
    transform: scale(1.05);
}

.radio-option input {
    display: none;
}

.radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #bdc3c7;
    border-radius: 50%;
    margin-right: 4px;
    position: relative;
    transition: all 0.3s;
}

.radio-option input:checked+.radio-custom {
    border-color: #3498db;
    background-color: #3498db;
}

.radio-option input:checked+.radio-custom::after {
    content: "";
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.radio-label {
    font-size: 12px;
    color: #34495e;
    font-weight: 500;
    margin-right: 10px;
}

.row {
    margin-top: 10px;
}

.form-label {
    font-size: 14px;
    margin-right: 6px;
}

.filter-group {
    display: flex;
}
.btn{
    margin-right: 10px;
}
.usernameBox{
    font-size: 16px;
    margin-right: 4px;
}
.logobox{
    width: 60px;
    height: 60px;
    border-radius: 4px;
}
.toast-container {
    margin-top: 70px; /* 避免被导航栏遮挡 */
}

.toast {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin-bottom: 10px;
}

.toast-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}
.hotbox{
    width: 20px;
    height: 20px;
}
#orders-pagination{
    margin-top: 10px !important;
}
.header-logo img{
    border-radius: 4px;
}