/* Styles spécifiques pour la page Auto Trading */

.trading-controls {
    background-color: #1e2235;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.controls-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 15px;
}

.control-group {
    flex: 1;
    min-width: 200px;
}

.control-group label {
    display: block;
    margin-bottom: 8px;
    color: #b8c1ec;
    font-weight: 500;
}

.slider-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.slider-container input[type="range"] {
    flex: 1;
    height: 6px;
    background-color: #2c304d;
    border-radius: 3px;
    appearance: none;
    outline: none;
}

.slider-container input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 18px;
    height: 18px;
    background-color: #8a6fff;
    border-radius: 50%;
    cursor: pointer;
}

.slider-container span {
    min-width: 70px;
    text-align: right;
    color: #fff;
}

select {
    width: 100%;
    padding: 10px;
    background-color: #2c304d;
    border: 1px solid #3c4273;
    border-radius: 5px;
    color: #fff;
    font-size: 14px;
    outline: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 30px;
}

.control-group.buttons {
    display: flex;
    gap: 10px;
    justify-content: space-between;
}

.control-btn {
    flex: 1;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    background-color: #2c304d;
    color: #fff;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.control-btn i {
    font-size: 14px;
}

.control-btn:hover {
    background-color: #3c4273;
}

.control-btn.active {
    background-color: #8a6fff;
}

.control-btn.active:hover {
    background-color: #7659e4;
}

/* Live Trades Section */
.live-trades-section {
    background-color: #1e2235;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ff5c8d;
    font-weight: 600;
    font-size: 14px;
}

.pulse-dot {
    width: 10px;
    height: 10px;
    background-color: #ff5c8d;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 92, 141, 0.7);
    }
    
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(255, 92, 141, 0);
    }
    
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 92, 141, 0);
    }
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.trades-container {
    background-color: #171928;
    border-radius: 8px;
    overflow: hidden;
}

.trades-header {
    display: flex;
    background-color: #2c304d;
    padding: 12px 15px;
    font-weight: 600;
    font-size: 14px;
    color: #b8c1ec;
}

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

.trade-row {
    display: flex;
    padding: 12px 15px;
    border-bottom: 1px solid #242842;
    transition: background-color 0.2s ease;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.trade-row:hover {
    background-color: #212539;
}

.col {
    flex: 1;
    font-size: 14px;
}

.col.time {
    flex: 0.8;
}

.col.action {
    flex: 0.8;
    font-weight: 600;
}

.action.buy {
    color: #72f593;
}

.action.sell {
    color: #ff5c8d;
}

.col.token {
    flex: 1;
}

.col.amount {
    flex: 1;
    text-align: right;
}

.col.price {
    flex: 1;
    text-align: right;
}

.col.profit {
    flex: 1;
    text-align: right;
    font-weight: 600;
}

.profit-positive {
    color: #72f593;
}

.profit-negative {
    color: #ff5c8d;
}

.col.status {
    flex: 0.8;
    text-align: center;
}

.status-completed {
    color: #72f593;
}

.status-pending {
    color: #ffbb3c;
}

.status-failed {
    color: #ff5c8d;
}

/* Memecoin Watchlist */
.memecoin-watchlist {
    background-color: #1e2235;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.watchlist-container {
    background-color: #171928;
    border-radius: 8px;
    overflow: hidden;
}

.watchlist-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.watchlist-table th {
    background-color: #2c304d;
    padding: 12px 15px;
    font-weight: 600;
    font-size: 14px;
    color: #b8c1ec;
}

.watchlist-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #242842;
    font-size: 14px;
}

.watchlist-table tr:hover td {
    background-color: #212539;
}

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

.token-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.price-change.up {
    color: #72f593;
}

.price-change.down {
    color: #ff5c8d;
}

.ai-score {
    display: flex;
    align-items: center;
    gap: 5px;
}

.score-indicator {
    display: inline-block;
    width: 60px;
    height: 6px;
    background-color: #2c304d;
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.score-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    border-radius: 3px;
}

.score-bar.high {
    background-color: #72f593;
}

.score-bar.medium {
    background-color: #ffbb3c;
}

.score-bar.low {
    background-color: #ff5c8d;
}

.rug-risk {
    font-weight: 600;
}

.risk-low {
    color: #72f593;
}

.risk-medium {
    color: #ffbb3c;
}

.risk-high {
    color: #ff5c8d;
}

.action-button {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    background-color: #8a6fff;
    color: #fff;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.action-button:hover {
    background-color: #7659e4;
}

.action-button.disabled {
    background-color: #3c4273;
    cursor: not-allowed;
}

/* Trade Notification */
.trade-notification {
    position: fixed;
    top: 30px;
    right: 30px;
    background-color: #1e2235;
    border-left: 4px solid #8a6fff;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transform: translateY(-120%);
    transition: transform 0.3s ease;
    z-index: 1000;
}

.trade-notification.show {
    transform: translateY(0);
}

.notification-icon {
    background-color: rgba(138, 111, 255, 0.2);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-icon i {
    color: #8a6fff;
    font-size: 20px;
}

.notification-content h3 {
    margin: 0 0 5px 0;
    font-size: 16px;
    color: #fff;
}

.notification-content p {
    margin: 0;
    font-size: 14px;
    color: #b8c1ec;
}
