.crypto-row:hover {
    background-color: #f9fafb;
    transition: all 0.2s ease;
}

.crypto-row.cursor-pointer:hover {
    background-color: #f9fafb;
}

.crypto-row:nth-child(even) {
    background-color: transparent;
}

.crypto-row:nth-child(even):hover {
    background-color: #f9fafb;
}

#crypto-table-body tr,
#crypto-table-body td {
    border-style: none !important;
}

.price-up {
    color: #059669;
    font-weight: 600;
}

.price-down {
    color: #dc2626;
    font-weight: 600;
}

.price-neutral {
    color: #6b7280;
    font-weight: 600;
}

.crypto-table table {
    border-collapse: collapse;
    border-spacing: 0;
    width: 100%;
    table-layout: fixed;
}

.crypto-table table tbody tr {
    height: auto;
    margin: 0;
    padding: 0;
}

.crypto-table table tbody tr td,
.crypto-table table thead tr th {
    vertical-align: middle;
}

.market-data-header {
    margin-bottom: 1rem;
}

.market-data-grid {
    display: grid;
    grid-template-columns: calc((100% - 4.5rem) / 4) calc((100% - 4.5rem) / 4) calc((100% - 4.5rem) / 4) calc((100% - 4.5rem) / 4);
    gap: 1.5rem;
    width: 100%;
}

.market-stat-item {
    min-width: 0;
    max-width: 100%;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    padding: 11px 0;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #eff2f5;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 92px;
}

.market-stat-item:hover {
    background-color: #f9fafb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.market-stat-item .stat-label {
    font-family: 'PingFang SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 17px;
    color: #777;
    margin-bottom: 4px;
}

.market-stat-item .stat-value-large {
    font-family: 'PingFang SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    color: #000;
    margin-bottom: 8px;
}

.market-stat-item .stat-value-medium {
    font-family: 'PingFang SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    color: #777;
}

.fear-greed-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
}

.fear-greed-gauge-wrapper {
    position: relative;
    width: 130px;
    height: 80px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.fear-greed-value-wrapper {
    position: absolute;
    bottom: 0;
    width: 100%;
    text-align: center;
    margin-bottom: 2.5px;
}

#fear-greed-value {
    color: #ea8c00;
    font-size: 1.5rem;
    font-weight: 700;
}

.crypto-table {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 24px 0 rgba(88, 102, 126, 0.08), 0 1px 2px 0 rgba(88, 102, 126, 0.12);
    border: 1px solid #eff2f5;
    overflow: hidden;
    margin-bottom: 1rem;
}

.table-header-controls {
    padding: 16px 24px;
    background: #fff;
    border-bottom: 1px solid #f3f4f6;
}

.table-title-row {
    display: flex;
    align-items: center;
}

.table-title {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 0 8px;
}

.table-title-line {
    height: 20px;
    width: auto;
    display: inline-block;
}

.table-container {
    overflow-x: auto;
    width: 100%;
}

.crypto-table table thead th {
    font-family: 'PingFang SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    color: #666;
    padding: 7px 0;
    text-align: left;
    border-bottom: 0.8px solid #e6e6e6;
    background-color: rgba(252, 205, 74, 0.1);
    height: 40px;
}

.crypto-table table thead th.text-right {
    text-align: right;
}

.crypto-table table thead th.text-center {
    text-align: center;
}

.crypto-table table tbody td {
    font-family: 'PingFang SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    color: #000;
    padding: 7.5px 18px;
    border-bottom: 0.8px solid #e6e6e6;
    height: 35px;
    vertical-align: middle;
}

.crypto-table table tbody tr:last-child td {
    border-bottom: none;
}

.crypto-table table tbody tr:hover {
    background-color: #f9fafb;
}

.sortable {
    cursor: pointer;
    user-select: none;
    position: relative;
}

.sortable:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

.sort-icon {
    display: inline-block;
    margin-left: 0.25rem;
    vertical-align: middle;
    position: relative;
}

.sort-icon svg {
    width: 1rem;
    height: 1rem;
    color: #9ca3af;
    transition: all 0.2s;
}

.sort-icon svg path {
    fill: #9ca3af;
    opacity: 0.4;
    transition: all 0.2s;
}

.sortable.active .sort-icon svg {
    color: #374151;
}

.sortable.active.asc .sort-icon svg path:first-child {
    fill: #374151 !important;
    opacity: 1 !important;
}

.sortable.active.asc .sort-icon svg path:last-child {
    fill: #9ca3af !important;
    opacity: 0.2 !important;
}

.sortable.active.desc .sort-icon svg path:first-child {
    fill: #9ca3af !important;
    opacity: 0.2 !important;
}

.sortable.active.desc .sort-icon svg path:last-child {
    fill: #374151 !important;
    opacity: 1 !important;
}

.sortable:hover:not(.active) .sort-icon svg path {
    opacity: 0.6;
}

.crypto-table .crypto-logo {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-right: 8px;
    border: 1px solid #e5e7eb;
    vertical-align: middle;
}

.crypto-table .crypto-name {
    font-family: 'PingFang SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 400;
    color: #000;
    font-size: 14px;
    line-height: 20px;
    margin-bottom: 0;
    width: 74px;
    max-width: 74px;
    min-width: 74px;
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    vertical-align: middle;
    cursor: default;
}

.crypto-table .crypto-symbol {
    font-family: 'PingFang SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 400;
    color: #777;
    font-size: 12px;
    line-height: 17px;
    display: block;
    margin-top: 2px;
}

.crypto-table .change-positive {
    color: #20bc80;
    font-weight: 400;
}

.crypto-table .change-negative {
    color: #fa3a3a;
    font-weight: 400;
}

.crypto-table .change-neutral {
    color: #000;
    font-weight: 400;
}

.crypto-table table thead th:first-child,
.crypto-table table tbody td:first-child {
    width: 50px;
    min-width: 50px;
    text-align: center;
}

.crypto-table table thead th:nth-child(2),
.crypto-table table tbody td:nth-child(2) {
    width: 120px;
    min-width: 120px;
}

.crypto-table table thead th:nth-child(n+3):nth-child(-n+8),
.crypto-table table tbody td:nth-child(n+3):nth-child(-n+8) {
    width: auto;
    min-width: 0;
}

.crypto-table table thead th:last-child,
.crypto-table table tbody td:last-child {
    width: 112px;
    min-width: 112px;
    text-align: center;
}

.change-positive {
    color: #20bc80;
    font-weight: 400;
}

.change-negative {
    color: #fa3a3a;
    font-weight: 400;
}

.kline-chart-container {
    width: 91px;
    height: 40px;
    margin: 0 auto;
}

.pagination-container {
    background-color: #f9fafb;
    padding: 1rem 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.pagination-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination-buttons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#page-numbers {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pagination-btn,
#page-numbers button {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #6b7280;
    background-color: #fff;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.25rem;
    box-sizing: border-box;
}

.pagination-btn:hover:not(:disabled),
#page-numbers button:hover {
    background-color: #f9fafb;
    border-color: #9ca3af;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-btn svg {
    width: 1rem;
    height: 1rem;
}

#page-numbers button.pagination-active,
.pagination-active {
    background-color: #fbc630 !important;
    color: #fff !important;
    border-color: #fbc630 !important;
}

#page-numbers span {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.table-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 2rem;
}

.loading-spinner {
    width: 1.5rem;
    height: 1.5rem;
    border: 2px solid #3b82f6;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.price-change-distribution {
    min-height: 80px;
}

.price-change-distribution-clickable {
    cursor: pointer;
}

.distribution-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.distribution-label {
    font-size: 0.875rem;
    color: #4b5563;
}

.distribution-value {
    font-weight: 600;
}

.distribution-value.rise {
    color: #059669;
}

.distribution-value.fall {
    color: #dc2626;
}

.distribution-bar {
    width: 100%;
    height: 1rem;
    background-color: #e5e7eb;
    border-radius: 9999px;
    overflow: hidden;
    position: relative;
}

.distribution-bar-rise {
    height: 100%;
    background-color: #10b981;
    float: left;
    transition: width 0.5s;
}

.distribution-bar-fall {
    height: 100%;
    background-color: #ef4444;
    float: right;
    transition: width 0.5s;
}

.distribution-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: #6b7280;
}

.market-data-notice {
    margin: 1rem 0;
}

.market-data-notice .column-box {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
}

.market-data-notice .column-box-title {
    margin-bottom: 12px;
}

.market-data-notice .column-box-title h3 {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin: 0;
}

.market-data-notice-content {
    color: #666;
    font-size: 14px;
    line-height: 1.8;
}

.crypto-table-state-cell {
    padding: 2rem;
    text-align: center;
}

.crypto-table-error-cell {
    padding: 2rem;
    text-align: center;
    color: #dc2626;
}

.crypto-table-empty-cell {
    padding: 2rem;
    text-align: center;
    color: #6b7280;
}

.table-loading-text {
    color: #6b7280;
}

.coin-sidebar-card {
    margin-bottom: 2rem;
}

.coin-column-box-title {
    display: flex;
}

.coin-sidebar-card-body {
    padding: 1rem;
}
