/* Wallet Discovery Styles */

/* Filter Section */
.filter-section {
    background-color: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.filter-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #00f0ff;
    margin-bottom: 1rem;
}

/* Timeframe Tabs */
.timeframe-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.timeframe-tab {
    padding: 0.5rem 1rem;
    background-color: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 6px;
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
    font-weight: 500;
}

.timeframe-tab:hover {
    background-color: rgba(30, 41, 59, 0.9);
    border-color: rgba(59, 130, 246, 0.5);
    color: #e2e8f0;
}

.timeframe-tab.active {
    background: linear-gradient(90deg, #00f0ff 0%, #00a8ff 100%);
    border-color: #00f0ff;
    color: #000000;
}

/* Filter Inputs Grid */
.filter-inputs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.filter-input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #60a5fa;
    font-weight: 600;
    letter-spacing: 0.025em;
}

.filter-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.filter-input {
    width: 100%;
    padding: 0.625rem 0.75rem;
    background-color: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 6px;
    color: #ffffff;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.filter-input:focus {
    outline: none;
    border-color: #00f0ff;
    background-color: rgba(30, 41, 59, 0.8);
}

.filter-input::placeholder {
    color: #64748b;
}

.filter-input-suffix {
    position: absolute;
    right: 0.75rem;
    color: #64748b;
    font-size: 0.875rem;
    pointer-events: none;
}

/* Filter Buttons */
.filter-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.625rem 1.5rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.filter-btn-primary {
    background: linear-gradient(90deg, #00f0ff 0%, #00a8ff 100%);
    color: #000000;
}

.filter-btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.filter-btn-secondary {
    background-color: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #ffffff;
}

.filter-btn-secondary:hover {
    background-color: rgba(30, 41, 59, 0.9);
    border-color: rgba(59, 130, 246, 0.5);
}

/* Table Container */
.discovery-table-container {
    width: 100%;
    max-height: calc(100vh - 450px);
    min-height: 400px;
    overflow-x: auto;
    overflow-y: auto;
    position: relative;
}

/* Table Styles */
.discovery-table {
    width: 100%;
    min-width: 1800px;
    border-collapse: separate;
    border-spacing: 0;
}

/* Table Header */
.discovery-table thead {
    position: sticky;
    top: 0;
    z-index: 10;
}

.discovery-table thead tr {
    display: grid;
    grid-template-columns: 0.4fr 1fr 0.7fr 0.7fr 0.8fr 0.9fr 0.7fr 0.9fr 0.8fr 1fr 0.7fr;
}

/* Table Body */
.discovery-table tbody tr {
    display: grid;
    grid-template-columns: 0.4fr 1fr 0.7fr 0.7fr 0.8fr 0.9fr 0.7fr 0.9fr 0.8fr 1fr 0.7fr;
}

/* Table Cells */
.discovery-table th,
.discovery-table td {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 0.5rem;
    border-right: 1px solid rgba(59, 130, 246, 0.25);
    border-bottom: 1px solid rgba(59, 130, 246, 0.38);
}

.discovery-table th:last-child,
.discovery-table td:last-child {
    border-right: none;
}

/* Header Cells */
.discovery-table th {
    background-color: rgba(15, 23, 42, 0.8);
    font-weight: 600;
}

/* Body Cells */
.discovery-table tbody tr {
    background-color: rgba(15, 23, 42, 0.8);
    transition: background-color 0.2s ease;
}

.discovery-table tbody tr:hover {
    background-color: rgba(30, 41, 59, 0.9);
}

/* Text Colors */
.text-rebrand-white {
    color: #ffffff;
}

.text-rebrand-green {
    color: #10b981;
}

.text-rebrand-red {
    color: #ef4444;
}

.text-rebrand-light-blue {
    color: #60a5fa;
}

.text-rebrand-accent {
    color: #00f0ff;
}

/* Button Styles */
.bg-rebrand-grad {
    background: linear-gradient(90deg, #00f0ff 0%, #00a8ff 100%);
}

/* Hover Effects */
a:hover {
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

/* Loading State */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(15, 23, 42, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(0, 240, 255, 0.2);
    border-top-color: #00f0ff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-state-icon {
    margin: 0 auto 1rem;
    color: #60a5fa;
    opacity: 0.5;
}

.empty-state-title {
    font-size: 1.125rem;
    color: #60a5fa;
    margin-bottom: 0.5rem;
}

.empty-state-text {
    font-size: 0.875rem;
    color: #94a3b8;
    max-width: 28rem;
    margin: 0 auto;
}

/* Pagination */
.pagination-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background-color: rgba(15, 23, 42, 0.8);
    border-top: 1px solid rgba(59, 130, 246, 0.4);
    position: sticky;
    bottom: 0;
    z-index: 5;
}

.pagination-info {
    font-size: 0.875rem;
    color: #60a5fa;
    text-align: center;
}

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

.pagination-btn {
    background-color: rgba(30, 41, 59, 0.8);
    border: 2px solid rgba(59, 130, 246, 1);
    color: #00f0ff;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.pagination-btn:hover:not(:disabled) {
    background-color: rgba(30, 41, 59, 1);
    border-color: #60a5fa;
}

.pagination-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    border-color: rgba(59, 130, 246, 0.4);
    color: rgba(255, 255, 255, 0.4);
}

.pagination-page-info {
    font-size: 0.875rem;
    color: #ffffff;
    padding: 0 0.75rem;
    font-weight: 500;
}

.pagination-page-number {
    color: #00f0ff;
    font-weight: 700;
}

/* Responsive */
@media (max-width: 768px) {
    .discovery-table {
        min-width: 1400px;
    }
    
    .filter-inputs {
        grid-template-columns: 1fr;
    }
    
    .timeframe-tabs {
        justify-content: center;
    }
    
    .pagination-container {
        flex-direction: column;
    }
    
    .pagination-btn span {
        display: none;
    }
}

@media (min-width: 640px) {
    .pagination-container {
        flex-direction: row;
    }
    
    .pagination-btn span {
        display: inline;
    }
}

