.indices-panel {
    background-color: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.3s ease;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.panel-header .header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.indices-panel .panel-header button {
    padding: 0.625rem 1rem;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.indices-panel .panel-header button#createIndexBtn {
    background: var(--primary-color);
    color: white;
    border: none;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.indices-panel .panel-header button#createIndexBtn i {
    font-size: 0.875rem;
}

.indices-panel .panel-header button#createIndexBtn:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .indices-panel .panel-header button#createIndexBtn {
    background: var(--primary-color);
    color: white;
    border: none;
}

[data-theme="light"] .indices-panel .panel-header button#createIndexBtn:hover {
    background: var(--primary-hover);
}

.indices-panel .panel-header h2 {
    display: flex;
    align-items: center;
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.5;
}

.indices-panel .panel-header h2 i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.indices-panel .panel-toggle {
    display: inline-flex !important;
    position: relative !important;
    align-items: center !important;
    justify-content: center !important;
    width: 24px !important;
    height: 24px !important;
    padding: 0 !important;
    margin-right: 0.5rem !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 4px !important;
    background: transparent !important;
    color: var(--primary-color) !important;
    line-height: 1 !important;
    outline: none !important;
}

.indices-panel .panel-toggle i {
    font-size: 12px !important;
    position: static !important;
    display: inline !important;
    line-height: 1 !important;
    color: var(--primary-color) !important;
}

.indices-table-container {
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow-x: auto;
    width: 100%;
    max-width: 100%;
    display: block;
}

.indices-table-container.collapsed {
    max-height: 0;
    opacity: 0;
    padding: 0;
    margin: 0;
    overflow: hidden;
    pointer-events: none;
}

@media (max-width: 992px) {
    .indices-panel .panel-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .indices-panel .panel-header button {
        width: 100%;
    }
}