/* Search Gateway - Custom Styles */

/* Navigation */
.nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.75rem;
    border-radius: 0.5rem;
    color: #94a3b8;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
    text-decoration: none;
}
.nav-link:hover {
    color: #ffffff;
    background-color: #1e293b;
}
.nav-link.active {
    background-color: rgba(59, 130, 246, 0.1);
    color: #60a5fa;
    border-left: 2px solid #3b82f6;
}
.nav-link svg {
    flex-shrink: 0;
}

/* Period buttons */
.period-btn, .stats-period-btn {
    color: #94a3b8;
    transition: color 0.15s, background-color 0.15s;
    cursor: pointer;
    border: none;
    background: none;
}
.period-btn:hover, .stats-period-btn:hover {
    color: #ffffff;
}
.period-btn.active, .stats-period-btn.active {
    background-color: #3b82f6;
    color: #ffffff;
}

/* Service badges */
.service-badge {
    padding: 0.125rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
}
.service-google {
    background-color: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
}
.service-news {
    background-color: rgba(16, 185, 129, 0.2);
    color: #34d399;
}
.service-x {
    background-color: rgba(139, 92, 246, 0.2);
    color: #a78bfa;
}

/* Type badges */
.type-badge {
    padding: 0.125rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
}
.type-searxng {
    background-color: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
}
.type-nitter {
    background-color: rgba(139, 92, 246, 0.2);
    color: #a78bfa;
}

/* Stat cards hover effect */
.stat-card {
    transition: all 0.2s;
}
.stat-card:hover {
    border-color: #475569;
    box-shadow: 0 10px 15px -3px rgba(2, 6, 23, 0.5);
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

/* Table row transitions */
table tbody tr {
    transition: background-color 0.15s;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

.stat-card {
    animation: fadeIn 0.3s ease-out;
}

/* Toggle switch base styles for non-tailwind */
button[class*="inline-flex"] {
    cursor: pointer;
}
