/* Bursa Malaysia Stocks Plugin Styles */

.bms-stock-table-wrapper {
    margin: 20px 0;
    overflow-x: auto;
}

.bms-stock-table {
    width: 100%;
    border-collapse: collapse;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.bms-stock-table thead {
    background-color: #2c3e50;
    color: white;
}

.bms-stock-table th {
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #34495e;
}

.bms-stock-table td {
    padding: 10px 15px;
    border-bottom: 1px solid #e0e0e0;
}

.bms-stock-table tbody tr:hover {
    background-color: #f8f9fa;
}

.bms-stock-table tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}

.bms-stock-name {
    font-weight: 600;
    color: #2c3e50;
}

.bms-stock-symbol {
    font-family: 'Courier New', monospace;
    color: #7f8c8d;
}

.bms-stock-price {
    font-weight: 600;
    font-size: 15px;
}

.bms-stock-change,
.bms-stock-change-percent {
    font-weight: 600;
}

.bms-change-positive {
    color: #27ae60;
}

.bms-change-negative {
    color: #e74c3c;
}

.bms-stock-volume {
    font-family: 'Courier New', monospace;
    color: #7f8c8d;
}

.bms-stock-footer {
    margin-top: 10px;
    text-align: right;
    font-size: 12px;
    color: #95a5a6;
}

/* Single Stock Widget */
.bms-single-stock {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    background-color: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.bms-stock-header h3 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 18px;
}

.bms-price-large {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 5px;
}

.bms-change-details {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
}

.bms-stock-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 10px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

.bms-meta-item {
    display: flex;
    flex-direction: column;
}

.bms-meta-label {
    font-size: 12px;
    color: #7f8c8d;
    margin-bottom: 3px;
}

.bms-meta-value {
    font-weight: 600;
    color: #2c3e50;
}

/* KLCI Widget */
.bms-klci-widget {
    border: 2px solid #3498db;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    background-color: white;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.2);
}

.bms-klci-header h3 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 18px;
}

.bms-klci-price {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 5px;
}

.bms-klci-change {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}

.bms-klci-volume {
    font-size: 14px;
    color: #7f8c8d;
    margin-top: 10px;
}

.bms-klci-footer {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid #e0e0e0;
    font-size: 12px;
    color: #95a5a6;
}

/* Ticker */
.bms-ticker {
    background-color: #2c3e50;
    color: white;
    padding: 10px 0;
    overflow: hidden;
    border-radius: 4px;
    margin: 20px 0;
}

.bms-ticker-content {
    display: flex;
    animation: ticker-scroll linear infinite;
    white-space: nowrap;
}

.bms-ticker-item {
    padding: 0 30px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-right: 1px solid rgba(255,255,255,0.1);
}

.bms-ticker-symbol {
    font-weight: 600;
    color: #3498db;
}

.bms-ticker-price {
    font-weight: 700;
    font-size: 16px;
}

.bms-ticker-change {
    font-weight: 600;
}

@keyframes ticker-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .bms-stock-table {
        font-size: 13px;
    }
    
    .bms-stock-table th,
    .bms-stock-table td {
        padding: 8px 10px;
    }
    
    .bms-price-large {
        font-size: 28px;
    }
    
    .bms-klci-price {
        font-size: 30px;
    }
    
    .bms-stock-meta {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .bms-stock-table {
        font-size: 12px;
    }
    
    .bms-stock-table th,
    .bms-stock-table td {
        padding: 6px 8px;
    }
    
    .bms-price-large {
        font-size: 24px;
    }
    
    .bms-klci-price {
        font-size: 26px;
    }
    
    .bms-stock-meta {
        grid-template-columns: 1fr;
    }
    
    .bms-ticker-item {
        padding: 0 15px;
        gap: 10px;
    }
}