.instrument-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.instrument-image {
    max-width: 100px;
    margin-bottom: 10px;
}

.instrument-title {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #333;
}

.filter-section {
    margin-bottom: 10px;
}

.date-con {
    display: flex;
    flex-direction: row;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.date-input {
    display: flex;
    flex-direction: row;
    gap: 5px;
    align-items: baseline;
}

.date-title {
    font-weight: bold;
}

.form-control {
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 3px;
}

.btn-filter, .btn-primary, .download-chart {
    padding: 5px 15px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-right: 5px;
}

.btn-filter:hover, .btn-primary:hover, .download-chart:hover {
    background-color: #0056b3;
}

.download-btn {
    display: block;
    margin-bottom: 10px;
}

.currency-converter {
    display: flex;
    flex-direction: row;
    gap: 5px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.currency-select {
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 3px;
}

.currency-input {
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 3px;
    width: 100px;
}

.currency-equal {
    padding: 5px;
    align-self: center;
}

.data-layout {
    display: flex;
    flex-direction: row;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
}

.table-container {
    flex: 1;
    min-width: 300px;
    max-width: 48%;
    overflow-x: auto;
}

.chart-container {
    flex: 1;
    min-width: 300px;
    max-width: 48%;
    position: relative;
}

.chart-canvas {
    max-width: 100%;
    height: 300px !important;
}

.chart-analysis {
    margin-top: 10px;
    font-size: 0.9em;
    color: #444;
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.table th, .table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: center;
}

.table th {
    background-color: #f2f2f2;
    font-weight: bold;
}

.table tbody tr:hover {
    background-color: #f5f5f5;
}

.data-source {
    font-size: 0.9em;
    color: #666;
    margin-top: 20px;
}

.loading {
    text-align: center;
    color: #007bff;
    font-style: italic;
}

.error {
    text-align: center;
    color: #dc3545;
    font-weight: bold;
}

@media (max-width: 768px) {
    .instrument-card {
        margin: 10px 0;
    }
    .date-con, .currency-converter, .data-layout {
        flex-direction: column;
    }
    .date-input, .currency-select, .currency-input {
        width: 100%;
    }
    .table-container, .chart-container {
        max-width: 100%;
    }
    .chart-container {
        margin-top: 20px;
    }
    .chart-canvas {
        height: 200px !important;
    }
}