/* 
 * RUG AI - Tab Navigation Stylesheet
 * Styles for the tab-based navigation system
 */

/* Tab Navigation Container */
.tab-navigation {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    position: relative;
    z-index: 10;
}

.tabs-list {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    background: rgba(20, 20, 25, 0.7);
    border-radius: 8px;
    border: 1px solid rgba(255, 165, 0, 0.3);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.tab-item {
    position: relative;
}

.tab-link {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

.tab-link i {
    margin-right: 8px;
    font-size: 14px;
}

.tab-item.active .tab-link {
    color: var(--accent-primary);
    border-bottom: 2px solid var(--accent-primary);
    background: rgba(255, 165, 0, 0.1);
}

.tab-item:hover .tab-link {
    color: var(--accent-primary);
    background: rgba(255, 165, 0, 0.05);
}

/* Active Tab Indicator */
.tab-item.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-primary);
    box-shadow: 0 0 8px var(--accent-primary);
    animation: tab-pulse 2s infinite;
}

@keyframes tab-pulse {
    0%, 100% {
        opacity: 0.8;
    }
    50% {
        opacity: 0.4;
    }
}

/* Mobile Navigation Toggle */
.mobile-nav-toggle {
    display: none;
    align-items: center;
    padding: 10px;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
}

.mobile-nav-toggle i {
    margin-right: 5px;
}

/* Content Container */
.content-container {
    position: relative;
    min-height: 500px;
}

/* Tab Content */
.tab-content {
    opacity: 0;
    transform: translateY(10px);
    animation: fade-in 0.3s forwards;
}

@keyframes fade-in {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading Indicator */
.tab-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.tab-loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 165, 0, 0.3);
    border-top: 3px solid var(--accent-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

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

/* Settings Tab Specific Styles */
.settings-container {
    display: flex;
    gap: 20px;
}

.settings-sidebar {
    width: 200px;
    flex-shrink: 0;
}

.settings-nav-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    margin-bottom: 5px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.settings-nav-item i {
    margin-right: 10px;
    width: 16px;
    text-align: center;
}

.settings-nav-item.active {
    background: rgba(255, 165, 0, 0.15);
    color: var(--accent-primary);
}

.settings-nav-item:hover:not(.active) {
    background: rgba(255, 255, 255, 0.05);
}

.settings-content {
    flex-grow: 1;
}

.settings-section {
    display: none;
}

.settings-section.active {
    display: block;
    animation: fade-in 0.3s forwards;
}

.settings-section-title {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 18px;
    color: var(--text-color);
}

.settings-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.option-label {
    font-size: 14px;
    color: var(--text-color);
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.2);
    transition: .4s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: var(--accent-primary);
}

input:checked + .toggle-slider:before {
    transform: translateX(26px);
}

/* Pools Tab Specific Styles */
.tier-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.tier-table th,
.tier-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tier-table th {
    background: rgba(0, 0, 0, 0.3);
    color: var(--text-color);
    font-weight: 500;
}

.tier-junior {
    background: rgba(255, 255, 255, 0.03);
}

.tier-main {
    background: rgba(255, 165, 0, 0.05);
}

.tier-black {
    background: rgba(255, 106, 0, 0.1);
}

.status-open {
    color: #4CAF50;
}

.status-limited {
    color: #FFC107;
}

.status-closed {
    color: #F44336;
}

/* Token Activity Tab Specific Styles */
.token-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

.token-name-display {
    display: flex;
    align-items: center;
}

.token-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 18px;
}

.token-ticker {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-color);
}

.token-fullname {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.token-price-change {
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 4px;
}

.token-price-change.positive {
    background: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
}

.token-price-change.negative {
    background: rgba(244, 67, 54, 0.2);
    color: #F44336;
}

.market-metrics {
    margin-bottom: 20px;
}

.metric-panel {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.metric-panel.primary {
    background: rgba(255, 165, 0, 0.1);
    border: 1px solid rgba(255, 165, 0, 0.2);
}

.metric-header {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 5px;
}

.metric-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-color);
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

/* Live Extraction Tab Specific Styles */
.timeline-container {
    position: relative;
    padding: 20px 0;
}

.timeline-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    height: 100%;
    width: 2px;
    background: rgba(255, 165, 0, 0.3);
}

.timeline-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 30px;
}

.timeline-icon {
    position: absolute;
    left: 0;
    top: 0;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 165, 0, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
    z-index: 1;
}

.timeline-item.active .timeline-icon {
    background: rgba(255, 165, 0, 0.2);
    border-color: var(--accent-primary);
    box-shadow: 0 0 15px rgba(255, 165, 0, 0.5);
}

.timeline-content h4 {
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--text-color);
}

.console-output {
    background: rgba(0, 0, 0, 0.3);
    padding: 8px 12px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: rgba(255, 255, 255, 0.8);
}

.live-status {
    display: flex;
    align-items: center;
    margin-top: 10px;
}

.status-pulse {
    width: 10px;
    height: 10px;
    background: var(--accent-primary);
    border-radius: 50%;
    margin-right: 8px;
    animation: pulse 2s infinite;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .tabs-list {
        width: 100%;
        justify-content: space-between;
    }
    
    .tab-link {
        padding: 10px 15px;
    }
    
    .tab-link span {
        font-size: 14px;
    }
    
    .settings-container {
        flex-direction: column;
    }
    
    .settings-sidebar {
        width: 100%;
        margin-bottom: 20px;
    }
    
    .settings-nav {
        display: flex;
        overflow-x: auto;
        padding-bottom: 10px;
    }
    
    .settings-nav-item {
        flex-shrink: 0;
    }
    
    .metrics-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .tab-link span {
        display: none;
    }
    
    .tab-link i {
        margin-right: 0;
        font-size: 16px;
    }
    
    .tab-link {
        padding: 10px 15px;
    }
}

@media (max-width: 576px) {
    .tabs-list {
        display: none;
    }
    
    .mobile-nav-toggle {
        display: flex;
    }
    
    .tabs-list.mobile-visible {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 100;
    }
    
    .tabs-list.mobile-visible .tab-link span {
        display: inline;
    }
    
    .tabs-list.mobile-visible .tab-item {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
}
