.finance-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.finance-container header {
    text-align: center;
    margin-bottom: 30px;
}

.finance-container h1 {
    font-size: 2.5em;
    color: #2c3e50;
    margin-bottom: 10px;
}

.subtitle {
    color: #7f8c8d;
    font-size: 1.1em;
}

.refresh-section {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

.last-update {
    color: #7f8c8d;
    font-size: 0.9em;
}

.market-section {
    margin-bottom: 40px;
}

.section-title {
    font-size: 1.5em;
    color: #34495e;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #3498db;
}

.indices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.index-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.index-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

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

.index-header h3 {
    font-size: 1.2em;
    color: #2c3e50;
    margin: 0;
}

.index-code {
    background: #ecf0f1;
    color: #7f8c8d;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.85em;
    font-weight: bold;
}

.index-value {
    font-size: 2em;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 10px;
}

.index-change {
    font-size: 1.1em;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.index-change.positive {
    color: #e74c3c;
}

.index-change.negative {
    color: #27ae60;
}

.index-change.neutral {
    color: #7f8c8d;
}

.btn {
    padding: 10px 25px;
    border: none;
    border-radius: 5px;
    font-size: 1em;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-primary {
    background: #3498db;
    color: white;
}

.btn-primary:hover {
    background: #2980b9;
}

.info-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    color: #7f8c8d;
    line-height: 1.8;
}

.info-section p {
    margin: 5px 0;
}

@media (max-width: 768px) {
    .finance-container h1 {
        font-size: 1.8em;
    }
    
    .indices-grid {
        grid-template-columns: 1fr;
    }
    
    .refresh-section {
        flex-direction: column;
    }
}
