:root {
    --focb-itm-color: #d4edda;
    --focb-atm-color: #fff3cd;
    --focb-otm-color: #f8d7da;
    --focb-highlight-color: #ffeb3b;
    --focb-highlight-1: #ff5252;
    --focb-highlight-2: #ff9800;
    --focb-highlight-3: #ffeb3b;
}

.focb-wrapper {
    max-width: 100%;
    margin: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

.focb-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}

.focb-tab-btn {
    padding: 10px 20px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-weight: 500;
    color: #666;
    transition: all 0.3s ease;
}

.focb-tab-btn:hover {
    color: #333;
}

.focb-tab-btn.active {
    color: #2196F3;
    border-bottom-color: #2196F3;
}

.focb-tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.focb-tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.focb-chart-container {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    height: 300px;
}

.focb-analytics-table-container {
    background: white;
    border-radius: 8px;
    overflow-x: auto;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.focb-analytics-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.focb-analytics-table th {
    background: #f5f5f5;
    padding: 12px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #e0e0e0;
    color: #333;
    white-space: nowrap;
}

.focb-analytics-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #f0f0f0;
}

.focb-analytics-table tr:hover {
    background: #fafafa;
}

.focb-positive {
    color: #4CAF50;
    font-weight: 600;
}

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

.focb-controls {
    background: #f8f9fa;
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.focb-control-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-end;
}

.focb-control {
    display: flex;
    flex-direction: column;
    min-width: 140px;
}

.focb-control span {
    font-weight: 600;
    font-size: 12px;
    color: #666;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.focb-control select {
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
    cursor: pointer;
}

.focb-control select:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.2);
}

.focb-kpi-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.focb-kpi-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 15px 20px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

.focb-kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.focb-kpi-card h4 {
    margin: 0 0 8px 0;
    font-size: 12px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.focb-kpi-value {
    font-size: 22px;
    font-weight: 700;
    color: #333;
}

.focb-table-container {
    overflow-x: auto;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.focb-loading {
    padding: 40px;
    text-align: center;
    color: #666;
    font-style: italic;
}

.focb-error {
    padding: 40px;
    text-align: center;
    color: #dc3545;
}

.focb-table {
    width: 100%;
    min-width: 1400px;
    border-collapse: collapse;
}

.focb-table th,
.focb-table td {
    border: 1px solid #e0e0e0;
    padding: 10px 12px;
    text-align: center;
    font-size: 12px;
}

.focb-table thead th {
    background: #f5f5f5;
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 10;
}

.focb-header-main th {
    font-size: 14px;
    padding: 12px;
}

.focb-call-header {
    background: #e8f5e9 !important;
    color: #2e7d32;
}

.focb-put-header {
    background: #ffebee !important;
    color: #c62828;
}

.focb-strike-header {
    background: #f5f5f5 !important;
    font-size: 14px !important;
}

.focb-call-col {
    background: #f1f8e9;
}

.focb-put-col {
    background: #fce4ec;
}

.focb-strike-col {
    background: #f5f5f5 !important;
    font-weight: 700;
    font-size: 14px;
}

.focb-itm-row {
    background-color: var(--focb-itm-color) !important;
}

.focb-atm-row {
    background-color: var(--focb-atm-color) !important;
}

.focb-otm-row {
    background-color: var(--focb-otm-color) !important;
}

.focb-highlight-1 {
    background-color: var(--focb-highlight-1) !important;
    color: #fff;
    font-weight: 700;
}

.focb-highlight-2 {
    background-color: var(--focb-highlight-2) !important;
    font-weight: 700;
}

.focb-highlight-3 {
    background-color: var(--focb-highlight-3) !important;
    font-weight: 700;
}

.focb-legends {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
}

.focb-legend-item {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.focb-itm-legend {
    background: var(--focb-itm-color);
    color: #155724;
}

.focb-atm-legend {
    background: var(--focb-atm-color);
    color: #856404;
}

.focb-otm-legend {
    background: var(--focb-otm-color);
    color: #721c24;
}

@media (max-width: 768px) {
    .focb-control-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .focb-control {
        width: 100%;
    }
    
    .focb-kpi-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .focb-table th,
    .focb-table td {
        padding: 6px 8px;
        font-size: 10px;
    }
}
