/* Top ABC Analysis CSS Styles */

.abc-chart-container {
    position: relative;
    height: 500px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px;
    background-color: #fff;
}

.abc-controls {
    margin-bottom: 15px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 5px;
    border: 1px solid #ddd;
}

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

.abc-table th {
    background-color: #f2f2f2;
    padding: 8px 12px;
    text-align: left;
    border-bottom: 2px solid #ddd;
    font-weight: bold;
}

.abc-table td {
    padding: 8px 12px;
    border-bottom: 1px solid #ddd;
}

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

.abc-class-a {
    background-color: rgba(255, 99, 132, 0.1);
}

.abc-class-b {
    background-color: rgba(54, 162, 235, 0.1);
}

.abc-class-c {
    background-color: rgba(255, 206, 86, 0.1);
}

.abc-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
}

.abc-badge-a {
    background-color: rgba(255, 99, 132, 0.7);
    color: white;
}

.abc-badge-b {
    background-color: rgba(54, 162, 235, 0.7);
    color: white;
}

.abc-badge-c {
    background-color: rgba(255, 206, 86, 0.7);
    color: black;
}

.abc-tabs {
    display: flex;
    margin-bottom: 15px;
    border-bottom: 1px solid #dee2e6;
}

.abc-tab {
    padding: 10px 15px;
    cursor: pointer;
    border: 1px solid transparent;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    margin-right: 5px;
    transition: all 0.3s;
}

.abc-tab.active {
    border-color: #dee2e6 #dee2e6 #fff;
    border-bottom: none;
    background-color: #fff;
    color: #007bff;
}

.abc-tab:not(.active):hover {
    background-color: #f8f9fa;
}

.abc-tab-content {
    background-color: #fff;
    padding: 15px;
    border-radius: 0 0 5px 5px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .abc-controls .form-row {
        flex-direction: column;
    }
    
    .abc-controls .form-group {
        width: 100%;
    }
}
