.instrument-tabs {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: #333;
    max-width: 100%;
    margin: 20px 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

.tabs {
    display: flex;
    gap: 0;
    margin-bottom: 0;
    flex-wrap: wrap;
    background: #f8f9fa;
    border-bottom: 2px solid #e9ecef;
}

.tab {
    background-color: #6c757d;
    color: white;
    border: none;
    padding: 12px 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    border-radius: 0;
    flex: 1;
    min-width: 120px;
    text-align: center;
}

.tab.active {
    background-color: #e30613;
    color: #fff;
    box-shadow: inset 0 -3px 0 #fff;
}

.tab:hover {
    background-color: #e30613;
    transform: translateY(-1px);
}

.tab-content {
    display: none;
    padding: 20px;
    background: #fff;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.instrument-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    font-size: 14px;
    background: #fff;
}

.instrument-table th,
.instrument-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.instrument-table th {
    background-color: #343a40;
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.instrument-table tbody tr {
    transition: background-color 0.2s ease;
}

.instrument-table tbody tr:hover {
    background-color: #f8f9fa;
    transform: scale(1.01);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.instrument-table tbody tr:nth-child(even) {
    background-color: #fdfdfd;
}

.stock-icon {
    margin-right: 8px;
    font-size: 16px;
}

.positive {
    color: #28a745;
    font-weight: 600;
}

.negative {
    color: #dc3545;
    font-weight: 600;
}

.positive::before {
    content: "▲ ";
    font-size: 10px;
}

.negative::before {
    content: "▼ ";
    font-size: 10px;
}

.last-updated {
    text-align: center;
    padding: 15px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    color: #6c757d;
    font-size: 12px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .tabs {
        flex-direction: column;
    }

    .tab {
        flex: none;
        margin: 0;
        border-radius: 0;
    }

    .instrument-table {
        font-size: 12px;
    }

    .instrument-table th,
    .instrument-table td {
        padding: 8px 10px;
    }

    .instrument-tabs {
        margin: 10px 0;
        border-radius: 4px;
    }

    .tab-content {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .instrument-table th:nth-child(3),
    .instrument-table td:nth-child(3) {
        display: none;
    }

    .instrument-table {
        font-size: 11px;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #e30613;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Enhanced visual indicators */
.instrument-table .positive {
    background: linear-gradient(90deg, rgba(40, 167, 69, 0.1) 0%, transparent 100%);
}

.instrument-table .negative {
    background: linear-gradient(90deg, rgba(220, 53, 69, 0.1) 0%, transparent 100%);
}

/* Print styles */
@media print {
    .tabs {
        display: none;
    }

    .tab-content {
        display: block !important;
        break-inside: avoid;
    }

    .instrument-table {
        font-size: 10px;
    }
}