/* Trading Interface Styles */

.fullscreen-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #0a0a0b 0%, #1a1a1d 100%);
    color: #ffffff;
}

.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: rgba(16, 16, 20, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    background: linear-gradient(45deg, #FFD700, #FFA500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
}

.token-info h1 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.token-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
}

.token-stats .price {
    color: #4CAF50;
    font-weight: bold;
}

.token-stats .market-cap {
    color: #2196F3;
}

.token-stats .volume {
    color: #FF9800;
}

.trading-main {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 1rem;
    padding: 1rem 2rem;
    height: calc(100vh - 80px);
}

.trading-left {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chart-container {
    background: rgba(16, 16, 20, 0.8);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    flex: 1;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.chart-timeframes {
    display: flex;
    gap: 0.5rem;
}

.timeframe {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.timeframe.active,
.timeframe:hover {
    background: rgba(255, 215, 0, 0.1);
    border-color: #FFD700;
    color: #FFD700;
}

.chart-area {
    height: 300px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chart-placeholder {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

.trades-container {
    background: rgba(16, 16, 20, 0.8);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    height: 300px;
}

.trades-list {
    height: 250px;
    overflow-y: auto;
}

.trading-right {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.trading-panel {
    background: rgba(16, 16, 20, 0.8);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
}

.trade-tabs {
    display: flex;
    margin-bottom: 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 0.25rem;
}

.trade-tab {
    flex: 1;
    background: none;
    border: none;
    color: #ffffff;
    padding: 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.trade-tab.active {
    background: rgba(255, 215, 0, 0.1);
    color: #FFD700;
}

.trade-panel {
    display: none;
}

.trade-panel.active {
    display: block;
}

.input-group {
    margin-bottom: 1rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
}

.input-group input {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 0.75rem;
    color: #ffffff;
    font-size: 1rem;
}

.input-group input:focus {
    outline: none;
    border-color: #FFD700;
    box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.2);
}

.quick-amounts {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.quick-amounts button {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
}

.quick-amounts button:hover {
    background: rgba(255, 215, 0, 0.1);
    border-color: #FFD700;
}

.balance-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.balance-info button {
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid #FFD700;
    color: #FFD700;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.75rem;
}

.trade-info {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.info-row:last-child {
    margin-bottom: 0;
}

.trade-button {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.buy-btn {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
}

.buy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
}

.sell-btn {
    background: linear-gradient(135deg, #f44336, #d32f2f);
    color: white;
}

.sell-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(244, 67, 54, 0.3);
}

.token-details {
    background: rgba(16, 16, 20, 0.8);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.detail-item:last-child {
    margin-bottom: 0;
}

.detail-item label {
    color: rgba(255, 255, 255, 0.6);
}

.copyable {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.copyable:hover {
    color: #FFD700;
}

.copy-icon {
    font-size: 0.8rem;
}

.detail-item a {
    color: #2196F3;
    text-decoration: none;
}

.detail-item a:hover {
    text-decoration: underline;
}

/* Toast notifications */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(16, 16, 20, 0.95);
    color: #ffffff;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    transform: translateX(400px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.toast.show {
    transform: translateX(0);
}

.toast-success {
    border-left: 4px solid #4CAF50;
}

.toast-error {
    border-left: 4px solid #f44336;
}

.toast-info {
    border-left: 4px solid #2196F3;
}

/* Responsive design */
@media (max-width: 1200px) {
    .trading-main {
        grid-template-columns: 1fr 300px;
        padding: 1rem;
    }
}

@media (max-width: 768px) {
    .trading-main {
        grid-template-columns: 1fr;
        height: auto;
    }
    
    .trading-right {
        order: -1;
    }
    
    .top-nav {
        padding: 1rem;
    }
    
    .nav-left {
        gap: 1rem;
    }
    
    .token-stats {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .token-info h1 {
        font-size: 1.2rem;
    }
}

/* Loading states */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Scrollbar styling */
.trades-list::-webkit-scrollbar {
    width: 6px;
}

.trades-list::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 3px;
}

.trades-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.trades-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}