:root {
    --primary-color: #8A2BE2; /* Violet/purple */
    --secondary-color: #00BFFF; /* Cyan/blue */
    --dark-bg: #121212;
    --medium-bg: #1E1E1E;
    --light-bg: #2A2A2A;
    --text-primary: #FFFFFF;
    --text-secondary: #B3B3B3;
    --accent-green: #00FF9D;
    --accent-red: #FF4D6D;
    --gradient: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--dark-bg);
    color: var(--text-primary);
    min-height: 100vh;
}

.container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Styles */
.sidebar {
    width: 280px;
    background-color: var(--medium-bg);
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    margin-bottom: 30px;
}

.logo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin-bottom: 15px;
    box-shadow: 0 0 20px rgba(138, 43, 226, 0.6);
}

.logo-container h1 {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 5px;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.tagline {
    font-size: 12px;
    color: var(--text-secondary);
    letter-spacing: 1px;
    font-weight: bold;
}

.menu ul {
    list-style: none;
}

.menu li {
    padding: 15px 30px;
    margin: 5px 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.menu li:hover {
    background-color: rgba(138, 43, 226, 0.2);
    border-left: 3px solid var(--primary-color);
}

.menu li.active {
    background-color: rgba(138, 43, 226, 0.3);
    border-left: 3px solid var(--primary-color);
    font-weight: bold;
}

.menu li i {
    margin-right: 15px;
    font-size: 18px;
}

.bot-status {
    margin-top: auto;
    padding: 15px 30px;
    display: flex;
    align-items: center;
    background-color: rgba(0, 255, 157, 0.1);
    margin: 20px;
    border-radius: 10px;
}

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

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 255, 157, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(0, 255, 157, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 255, 157, 0);
    }
}

/* Main Content Styles */
.content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background-color: var(--medium-bg);
    border-radius: 10px;
    margin-bottom: 25px;
}

.search-bar {
    display: flex;
    align-items: center;
    background-color: var(--light-bg);
    border-radius: 20px;
    padding: 8px 15px;
    width: 300px;
}

.search-bar i {
    margin-right: 10px;
    color: var(--text-secondary);
}

.search-bar input {
    background: transparent;
    border: none;
    color: var(--text-primary);
    outline: none;
    width: 100%;
}

.user-info {
    display: flex;
    align-items: center;
}

.balance {
    margin-right: 20px;
    background-color: var(--light-bg);
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: bold;
}

.user-name {
    margin-right: 10px;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.date-time {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Stats Cards */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

/* Styles pour les notifications */
.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 8px;
    color: white;
    font-size: 14px;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(100px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: 1000;
}

.notification.show {
    transform: translateY(0);
    opacity: 1;
}

.notification i {
    margin-right: 10px;
    font-size: 16px;
}

.notification.success {
    background-color: #14F195;
}

.notification.error {
    background-color: #ff5555;
}

.notification.info {
    background-color: #3498db;
}

.stat-card {
    background-color: var(--medium-bg);
    border-radius: 10px;
    padding: 20px;
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    background-color: rgba(138, 43, 226, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 22px;
}

.stat-icon.profit {
    background-color: rgba(0, 255, 157, 0.2);
    color: var(--accent-green);
}

.stat-info h3 {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.stat-value {
    font-size: 22px;
    font-weight: bold;
}

.stat-value.profit {
    color: var(--accent-green);
}

.stat-value.online {
    color: var(--accent-green);
}

/* Market Section */
.market-section {
    background-color: var(--medium-bg);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 25px;
}

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

.refresh-btn {
    background-color: var(--light-bg);
    border: none;
    color: var(--text-primary);
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.refresh-btn i {
    margin-right: 8px;
}

.refresh-btn:hover {
    background-color: var(--primary-color);
}

.coin-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.coin-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--light-bg);
    padding: 15px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.coin-item:hover {
    background-color: rgba(138, 43, 226, 0.2);
}

.coin-info {
    display: flex;
    align-items: center;
}

.coin-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 15px;
    background-color: var(--primary-color);
}

.coin-details h3 {
    font-size: 16px;
    margin-bottom: 3px;
}

.coin-details p {
    font-size: 12px;
    color: var(--text-secondary);
}

.coin-price {
    text-align: right;
}

.price {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 3px;
}

.change {
    font-size: 14px;
    border-radius: 15px;
    padding: 2px 8px;
}

.change.up {
    color: var(--accent-green);
    background-color: rgba(0, 255, 157, 0.1);
}

.change.down {
    color: var(--accent-red);
    background-color: rgba(255, 77, 109, 0.1);
}

.coin-actions {
    display: flex;
    gap: 10px;
}

.action-btn {
    background-color: var(--light-bg);
    border: none;
    color: var(--text-primary);
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-btn.buy {
    background-color: var(--primary-color);
}

.action-btn:hover {
    opacity: 0.8;
}

/* AI Section */
.ai-section {
    background-color: var(--medium-bg);
    border-radius: 10px;
    padding: 20px;
}

.ai-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.ai-info {
    background-color: var(--light-bg);
    border-radius: 10px;
    padding: 20px;
}

.ai-status {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.pulse-animation {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--gradient);
    margin-right: 15px;
    position: relative;
}

.pulse-animation::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--gradient);
    opacity: 0.7;
    animation: pulse-animation 2s infinite;
}

@keyframes pulse-animation {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.5);
        opacity: 0.3;
    }
    100% {
        transform: scale(1);
        opacity: 0.7;
    }
}

.ai-recommendations {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 15px;
}

.ai-recommendations h3 {
    margin-bottom: 15px;
    color: var(--text-primary);
}

.ai-recommendations ul {
    list-style: none;
}

.ai-recommendations li {
    margin-bottom: 10px;
    padding: 8px 12px;
    border-radius: 8px;
    font-weight: 500;
}

.ai-recommendations li.buy {
    background-color: rgba(0, 255, 157, 0.1);
    color: var(--accent-green);
    border-left: 3px solid var(--accent-green);
}

.ai-recommendations li.sell {
    background-color: rgba(255, 77, 109, 0.1);
    color: var(--accent-red);
    border-left: 3px solid var(--accent-red);
}

.ai-recommendations li.hold {
    background-color: rgba(255, 255, 255, 0.1);
    border-left: 3px solid var(--text-secondary);
}

.ai-console {
    background-color: #000;
    border-radius: 10px;
    overflow: hidden;
}

.console-header {
    background-color: #333;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.console-controls {
    display: flex;
    gap: 8px;
}

.control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.control.red {
    background-color: #FF5F56;
}

.control.yellow {
    background-color: #FFBD2E;
}

.control.green {
    background-color: #27C93F;
}

.console-body {
    padding: 15px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.6;
    height: 200px;
    overflow-y: auto;
}

.console-body p {
    color: #00FF9D;
    margin-bottom: 8px;
}

.blink {
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.3;
    }
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
    .ai-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 992px) {
    .container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        padding: 10px;
    }
    
    .logo-container {
        flex-direction: row;
        justify-content: flex-start;
        padding: 10px;
    }
    
    .logo {
        width: 60px;
        height: 60px;
        margin-right: 15px;
        margin-bottom: 0;
    }
    
    .menu ul {
        display: flex;
        flex-wrap: wrap;
    }
    
    .menu li {
        padding: 10px 15px;
    }
    
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .stats-container {
        grid-template-columns: 1fr;
    }
    
    .coin-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .coin-price, .coin-actions {
        width: 100%;
    }
    
    .coin-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
}
