/*
 * Dark Theme Design System
 * Shared components for the progressive dark theme migration.
 * Color palette: GitHub-inspired dark (see CLAUDE.md Design System v2)
 */

/* =============================================
   Status Badges
   ============================================= */
.status-badge {
    display: inline-block;
    padding: 3px 8px;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    border-radius: 4px;
    white-space: nowrap;
}
.status-badge i {
    margin-right: 3px;
    font-size: 0.625rem;
}
.status-badge--success {
    background: rgba(63, 185, 80, 0.15);
    color: #3fb950;
}
.status-badge--warning {
    background: rgba(210, 153, 34, 0.15);
    color: #d29922;
}
.status-badge--danger {
    background: rgba(248, 81, 73, 0.15);
    color: #f85149;
}
.status-badge--info {
    background: rgba(88, 166, 255, 0.15);
    color: #58a6ff;
}
.status-badge[title] {
    cursor: help;
    border-bottom: 1px dotted currentColor;
}

/* =============================================
   Dark Card
   ============================================= */
.dark-card {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 8px;
    overflow: hidden;
}
.dark-card-header {
    padding: 20px 24px;
    border-bottom: 1px solid #30363d;
}
.dark-card-title {
    color: #e6edf3;
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0 0 4px;
}
.dark-card-subtitle {
    color: #8b949e;
    font-size: 0.8125rem;
    margin: 0;
}

/* =============================================
   DataTables Dark Theme
   Wrap your table container with .dark-dt
   ============================================= */
.dark-dt .dataTables_wrapper {
    padding: 0 16px 12px;
}
.dark-dt-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0 4px;
}
.dark-dt .dataTables_filter,
.dark-dt .dataTables_length {
    padding: 0;
    margin: 0;
    float: none !important;
}
.dark-dt-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.dark-dt .dataTables_filter label,
.dark-dt .dataTables_length label,
.dark-dt .dataTables_info {
    color: #8b949e;
    font-size: 0.8125rem;
}
.dark-dt .dataTables_filter input,
.dark-dt .dataTables_length select {
    background: #21262d;
    border: 1px solid #30363d;
    color: #e6edf3;
    border-radius: 6px;
    padding: 4px 10px;
    outline: none;
}
.dark-dt .dataTables_filter input:focus,
.dark-dt .dataTables_length select:focus {
    border-color: #58a6ff;
}
.dark-dt .dataTables_paginate {
    padding: 12px 0 4px;
}
.dark-dt .dataTables_paginate .paginate_button {
    background: #21262d !important;
    border: 1px solid #30363d !important;
    color: #8b949e !important;
    border-radius: 4px;
    padding: 4px 10px;
    margin: 0 2px;
    font-size: 0.8125rem;
    cursor: pointer;
}
.dark-dt .dataTables_paginate .paginate_button:hover {
    background: rgba(88, 166, 255, 0.1) !important;
    border-color: #58a6ff !important;
    color: #58a6ff !important;
}
.dark-dt .dataTables_paginate .paginate_button.current {
    background: rgba(88, 166, 255, 0.15) !important;
    border-color: #58a6ff !important;
    color: #58a6ff !important;
    font-weight: 600;
}
.dark-dt .dataTables_paginate .paginate_button.disabled {
    opacity: 0.4;
    cursor: default;
}
.dark-dt .dataTables_empty {
    color: #8b949e;
}

/* =============================================
   Fees Page
   ============================================= */
.fees-page {
    background: #0d1117;
    padding: 8px 16px;
}
.fees-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Table */
.fees-table-wrap {
    overflow-x: auto;
}
.fees-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}
.fees-table thead th {
    background: #161b22;
    color: #8b949e;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 10px 16px;
    border-bottom: 1px solid #30363d;
    position: sticky;
    top: 0;
}
.fees-table tbody tr {
    border-bottom: 1px solid #21262d;
    transition: background 0.1s;
}
.fees-table tbody tr:hover {
    background: rgba(88, 166, 255, 0.04);
}
.fees-table tbody td {
    padding: 10px 16px;
    color: #e6edf3;
    vertical-align: middle;
}
.fees-table .text-center {
    text-align: center;
}

/* Coin link */
.fees-coin-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
}
.fees-coin-link:hover .fees-coin-name {
    color: #58a6ff;
}
.fees-market-link {
    text-decoration: none;
}

/* Coin cell */
.fees-coin-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}
.fees-coin-cell img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    flex-shrink: 0;
}
.fees-coin-name {
    display: block;
    color: #e6edf3;
    font-weight: 500;
    font-size: 0.8125rem;
    line-height: 1.2;
}
.fees-coin-code {
    display: block;
    color: #6e7681;
    font-size: 0.75rem;
    font-family: 'SFMono-Regular', Consolas, monospace;
}

@media (max-width: 640px) {
    .fees-page { padding: 12px 8px; }
    .dark-card-header { padding: 16px; }
    .fees-table thead th,
    .fees-table tbody td { padding: 8px 10px; }
    .fees-coin-name { font-size: 0.75rem; }
}
