.qbitwatcher-container {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.qbitwatcher-header {
    text-align: center;
    margin-bottom: 30px;
}

.qbitwatcher-header h2 {
    color: #333;
    margin-bottom: 20px;
    font-size: 2rem;
}

.qbitwatcher-controls {
    display: inline-flex;
    background: #f8f9fa;
    border-radius: 25px;
    padding: 5px;
    margin-bottom: 20px;
}

.time-btn {
    background: transparent;
    border: none;
    color: #666;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.time-btn:hover,
.time-btn.active {
    background: #007cba;
    color: white;
}

.qbitwatcher-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
}

.stock-card {
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 20px;
    background: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stock-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.stock-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.stock-info h3 {
    margin: 0 0 5px 0;
    color: #333;
    font-size: 18px;
}

.stock-symbol {
    color: #666;
    font-size: 14px;
    font-weight: 500;
    background: #f0f0f0;
    padding: 2px 6px;
    border-radius: 4px;
}

.price-info {
    text-align: right;
}

.stock-price {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin: 0;
}

.change {
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 12px;
    margin-top: 5px;
    display: inline-block;
}

.change.positive {
    color: white;
    background: linear-gradient(45deg, #28a745, #20c997);
}

.change.negative {
    color: white;
    background: linear-gradient(45deg, #dc3545, #e91e63);
}

.chart-container {
    height: 250px;
    margin: 20px 0;
    position: relative;
}

.stock-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 15px;
    font-size: 14px;
    color: #555;
}

.detail-row {
    display: flex;
    justify-content: space-between;
}

.last-updated {
    color: #888;
    font-size: 12px;
    margin-top: 15px;
    text-align: right;
    font-style: italic;
}

.qbitwatcher-error {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #f5c6cb;
    text-align: center;
    margin: 20px 0;
}

@media (max-width: 768px) {
    .qbitwatcher-grid {
        grid-template-columns: 1fr;
    }
    
    .stock-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .price-info {
        text-align: left;
    }
    
    .chart-container {
        height: 200px;
    }
}