/**
 * Styles for DEX Pairs Tracker
 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

.container {
    /* max-width: 1400px; */
    margin: 0 auto;
    padding: 20px;
}

header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

header .subtitle {
    font-size: 1.1em;
    opacity: 0.9;
}

.filters-section {
    background: white;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.filters-section h2 {
    margin-bottom: 20px;
    color: #667eea;
}

.filters-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    font-weight: 600;
    margin-bottom: 5px;
    color: #555;
}

.filter-group input,
.filter-group select {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

.filter-group input:focus,
.filter-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.filter-group select[multiple] {
    min-height: 140px;
    padding: 5px;
    cursor: pointer;
}

.filter-group select[multiple] option {
    padding: 8px;
    border-radius: 3px;
    margin-bottom: 2px;
}

.filter-group select[multiple] option:checked {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.filter-group small {
    margin-top: 5px;
    color: #888;
    font-size: 12px;
}

.filter-actions {
    grid-column: 1 / -1;
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #667eea;
    color: white;
}

.btn-primary:hover {
    background-color: #5568d3;
}

.btn-secondary {
    background-color: #e0e0e0;
    color: #333;
}

.btn-secondary:hover {
    background-color: #d0d0d0;
}

.btn-small {
    padding: 5px 10px;
    font-size: 12px;
}

.results-summary {
    background: white;
    padding: 15px 25px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.results-summary p {
    font-weight: 600;
    color: #555;
}

.error-message {
    background-color: #fee;
    color: #c33;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    border-left: 4px solid #c33;
}

.results-table {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead {
    background-color: #667eea;
    color: white;
}

thead th {
    padding: 15px 10px;
    text-align: left;
    font-weight: 600;
}

thead th a {
    color: white;
    text-decoration: none;
}

thead th a:hover {
    text-decoration: underline;
}

tbody tr {
    border-bottom: 1px solid #eee;
}

tbody tr:hover {
    background-color: #f9f9f9;
}

tbody td {
    padding: 15px 10px;
}

.asset-cell strong {
    color: #667eea;
    font-size: 1.1em;
}

.asset-cell small {
    color: #888;
}

.pair-tokens {
    color: #888;
}

.number-cell {
    text-align: right;
    font-family: 'Courier New', monospace;
}

.positive {
    color: #22c55e;
}

.negative {
    color: #ef4444;
}

.exchanges-cell {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.exchange-badge {
    background-color: #e0e7ff;
    color: #4338ca;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
    margin: 2px;
}

.no-data {
    color: #999;
    font-style: italic;
}

.no-results {
    text-align: center;
    padding: 40px;
    color: #999;
    font-style: italic;
}

.actions-cell {
    text-align: center;
}

.actions-cell .btn {
    margin: 2px;
}

.source-gecko {
    background-color: #10b981;
    color: white;
}

.source-gecko:hover {
    background-color: #059669;
}

.source-dexscreener {
    background-color: #3b82f6;
    color: white;
}

.source-dexscreener:hover {
    background-color: #2563eb;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.btn-pagination {
    padding: 8px 15px;
    background-color: white;
    color: #667eea;
    border: 1px solid #667eea;
}

.btn-pagination:hover {
    background-color: #667eea;
    color: white;
}

.btn-pagination.active {
    background-color: #667eea;
    color: white;
    font-weight: 600;
}

.btn-export {
    background-color: #10b981;
    color: white;
    margin-left: 10px;
}

.btn-export:hover {
    background-color: #059669;
}

/* DataTables customization */
.dataTables_wrapper {
    padding: 20px;
}

.dataTables_filter {
    float: right;
    margin-bottom: 10px;
}

.dataTables_filter input {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-left: 10px;
}

.dataTables_length {
    float: left;
    margin-bottom: 10px;
}

.dataTables_length select {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin: 0 10px;
}

.dataTables_info {
    padding-top: 10px;
    color: #555;
}

.dataTables_paginate {
    padding-top: 10px;
}

.dataTables_paginate .paginate_button {
    padding: 5px 10px;
    margin: 0 2px;
    border: 1px solid #ddd;
    border-radius: 3px;
    cursor: pointer;
    background-color: white;
}

.dataTables_paginate .paginate_button:hover {
    background-color: #667eea;
    color: white;
    border-color: #667eea;
}

.dataTables_paginate .paginate_button.current {
    background-color: #667eea;
    color: white;
    border-color: #667eea;
}

.dataTables_paginate .paginate_button.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.dt-buttons {
    margin-bottom: 10px;
}

.asset-symbol {
    color: #667eea;
    font-size: 1.1em;
}

footer {
    text-align: center;
    padding: 20px;
    color: #888;
    font-size: 14px;
}

/* Responsive design */
@media (max-width: 1200px) {
    table {
        font-size: 14px;
    }

    thead th, tbody td {
        padding: 10px 5px;
    }
}

@media (max-width: 768px) {
    .filters-form {
        grid-template-columns: 1fr;
    }

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

    table {
        font-size: 12px;
    }

    .btn {
        padding: 8px 15px;
        font-size: 12px;
    }
}

