
@media (min-width: 768px) {
    .chart_container{
        background-color:white;
        width:100%;
        padding:15px;
        box-sizing:border-box;
        overflow: hidden;
        border-radius: 20px;
    }

}
@media (max-width: 768px) {
    .chart_container{
        background-color:white;
        width:100%;
        padding:15px;
        box-sizing:border-box;
        overflow: hidden;
    }

    .hide_on_mobile_mode{
        display: none !important;
    }

}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.mnswmc-items{
font-weight: 600;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

.header {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.header h1 {
    color: #333;
    margin-bottom: 10px;
}

.status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 5px;
}

.status.connected {
    background: #d4edda;
    color: #155724;
}

.status.disconnected {
    background: #f8d7da;
    color: #721c24;
}

.status.loading {
    background: #fff3cd;
    color: #856404;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.status.connected .status-dot {
    background: #28a745;
}

.status.disconnected .status-dot {
    background: #dc3545;
}

.status.loading .status-dot {
    background: #ffc107;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.card-icon {
    width: 40px;
    height: 40px;
    background: #f8f9fa;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.card-title {
    flex: 1;
}

.card-title h3 {
    color: #333;
    font-size: 18px;
    margin-bottom: 4px;
}

.card-title .symbol {
    color: #666;
    font-size: 12px;
}

.tradable-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.tradable-badge.yes {
    background: #d4edda;
    color: #155724;
}

.tradable-badge.no {
    background: #e2e3e5;
    color: #383d41;
}

.price-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 15px;
}

.price-item {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 6px;
}

.price-label {
    font-size: 11px;
    color: #666;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.price-value {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.current-price {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.current-price .label {
    font-size: 12px;
    opacity: 0.9;
    margin-bottom: 5px;
}

.current-price .value {
    font-size: 24px;
    font-weight: 700;
}

.percentage {
    align-items: center;
    padding: 4px 10px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    justify-content: center;
    align-items: center;
}

.percentage.positive {
    background: #d4edda;
    color: #155724;
}

.percentage.negative {
    background: #f8d7da;
    color: #721c24;
}

.percentage.neutral {
    background: #e2e3e5;
    color: #383d41;
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.no-data {
    text-align: center;
    padding: 40px;
    color: #666;
}



.price-table {
    width: 100%;
    border-collapse: collapse;

}
.price-table th, .price-table td {
    padding: 8px 12px;
    border: 1px solid #ddd;
    text-align: center;
    font-weight: bold;
}
.price-table th {
    background-color: #f4f4f4;
}
.positive { color: green; }
.negative { color: red; }
.neutral { color: gray; }
.tradable.yes { color: #28a745; }
.tradable.no { color: #6c757d; }


#priceGrid{
    display: flex;
}


.buy_button a{
    color:green;
}


.buy_button {
    border:1px solid green;
}
.sell_button {
    border:1px solid red;
}